local function sendAndAdd(cid)
doSendMagicEffect(getThingPos(cid), 12)
doPlayerAddMana(cid, -10)
end
function onThink(cid, interval, lastExecution, thinkInterval)
if getPlayerVocation(cid) == 2 then
if getPlayerMana(cid) >= 10 then
addEvent(sendAndAdd, 1000, cid)
else
doPlayerSendCancel(cid, "You need at least 10 of mana to send a magic effect.")
return true
end
else
return true
end
return true
end