Trying to make a script that gives a player an item when they level, here's what I have so far:
Why doesn't this work?
Code:
function onAdvance(cid, skill, oldLevel, newLevel)
if(oldLevel==9) or newLevel==10 then
doPlayerAddItem(cid, 2151, 1)
end
return true
end
Why doesn't this work?