• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

need one action for add skills!!!

ninexin

insane.sytes.net
Joined
Jun 10, 2007
Messages
213
Reaction score
3
Location
Brazil
need to create an item that add +1 skill of sword and if skills of player is == 255 then you not use more this item!!!!

need this for
sword
axe
club
distance
shield
magic level


plxx help me
 
Not tested yet.

Lua:
function onUse(cid, item, frompos, item2, topos)

local maxSkill = getPlayerSkill(cid, 2)
local skillGain = 1

if maxSkill == 255 then
doPlayerSendCancel(cid, "You can not go higher then 255")
else
doPlayerAddSkill(cid, 2, skillGain)
doRemoveItem(cid, item.uid, 1)
end
end

I did swordskill as example.
 
Last edited:
Back
Top