<action itemid="2312" script="manarune.lua"/>
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 0 then
doSendMagicEffect(topos,61)
doCreatureSay(cid,"Third Mana!",19)
doPlayerAddMana(cid, 1500)
if item.type > 1 then
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if(not isPlayer(cid)) then
return true
end
if(isPlayer(cid)) then
doSendMagicEffect(topos, 61)
doCreatureSay(cid, "Third Mana!", 19)
doPlayerAddMana(cid, 1500)
else
doSendMagicEffect(frompos, 2)
doPlayerSendCancel(cid, "You can only use this on players!")
end
return true
end