function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 3 then
doSendMagicEffect(topos,1)
doCreatureSay(cid,"Donated Manarune!!",19)
doSendAnimatedText(pos, mana_add, 19)
doPlayerAddMana(cid, 1000)
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return TRUE
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not isPlayer(itemEx.uid) then
return false
end
doSendMagicEffect(toPosition, CONST_ME_STUN)
doCreatureSay(cid, 'Donation manarune!!', TALKTYPE_ORANGE_1, false, 0, toPosition)
doSendAnimatedText(toPosition, 1000, COLOR_LIGHTBLUE)
doPlayerAddMana(itemEx.uid, 1000)
return true
end
Code:function onUse(cid, item, fromPosition, itemEx, toPosition) if not isPlayer(itemEx.uid) then return false end doSendMagicEffect(toPosition, CONST_ME_STUN) doCreatureSay(cid, 'Donation manarune!!', TALKTYPE_ORANGE_1, false, 0, toPosition) doSendAnimatedText(toPosition, 1000, COLOR_LIGHTBLUE) doPlayerAddMana(itemEx.uid, 1000) return true end