Quem nunca pensou em gastar life pra recuperar mana? Bom, eu pensei em fazer, sei fazer, e fiz, tá aí:
--------------
\data\talkactions\scripts\life4mana.lua
---Life4mana-by Sky Hunter--- function onSay(cid, words, param) playerpos = getPlayerPosition(cid) if math.max(math.abs(playerpos.x-23), math.abs(playerpos.y-30)) < 99999 then PlayerVoc = getPlayerVocation(cid) if PlayerVoc == 1 then doPlayerAddHealth(cid,-30) doPlayerAddMana(cid,30) else doPlayerSendCancel(cid,"Only Sorcerers may use this ancient spell.") return 0 end end end
\data\talkactions\talkactions.xml
<talkaction words="leben fur mana" script="life4mana.lua" />