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
info
Group: Herói
Joined: 12/03/11
Posts: 1.9k
Reputation: +284
Gender: Masculino
Tibia Character: Nokte
Essa spell é igual a spell "Power Down" do wodbo, quem conhece entenderá, até
spells.xml
powerdown.lua