Hey, so my problem is that i have script, but i don't know how to add 'Exhaust on use' as it is with potions.
I will be thankful if someone may help me, Thanks.(rep+)
Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= 10 and getPlayerLevel(cid) < 12 then
doRemoveItem(item.uid, 1)
doSendMagicEffect(topos,8)
doPlayerSay(cid," 1000 experiance Up",1)
doPlayerAddExp(cid, 1000)
end
end