I use this script:
local exp = 5000000
function onUse(cid, item, fromPos, itemEx, toPos)
if getPlayerLevel(cid) >= 8 then
doPlayerAddExp(cid, exp)
doSendPlayerTextMessage(cid, 22, "You have gained ".. exp .." experience points.")
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "You must be atleast level 8 to use this.")
end
end
It works fine, but it doenst dissapear! Can someone help me? thanks
local exp = 5000000
function onUse(cid, item, fromPos, itemEx, toPos)
if getPlayerLevel(cid) >= 8 then
doPlayerAddExp(cid, exp)
doSendPlayerTextMessage(cid, 22, "You have gained ".. exp .." experience points.")
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "You must be atleast level 8 to use this.")
end
end
It works fine, but it doenst dissapear! Can someone help me? thanks