Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- script powerdown by Beeki for Wodbo Kai
- function onCastSpell(cid, var)
- local mana = getCreatureMana(cid)
- if doCreatureAddMana(cid, -mana) then
- if doPlayerAddSpentMana(cid, mana) then
- doSendMagicEffect(getCreaturePosition(cid), 14)
- return false
- else
- doCreatureAddMana(cid, mana)
- end
- end
- doSendMagicEffect(getCreaturePosition(cid), 2)
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment