script is
what i want the script to do is when the player get level 100 he gets 5 sword skill.
what i want the script to do is when the player get level 100 he gets 5 sword skill.
LUA:
function onAdvance(cid, skill, oldLevel, newLevel)
if getPlayerLevel(cid) >= 104 then
if getPlayerStorageValue(cid, 6002) == -1 then
doCreatureSetStorage(cid, 6002, 1)
doPlayerAddSkill(cid, SKILL_SWORD, 5)
end
end
return true
end