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
Grupo: Herói
Registrado: 12/03/11
Posts: 1.9k
Reputação: +284
Gênero: Masculino
Char no Tibia: Nokte
Essa spell é igual a spell "Power Down" do wodbo, quem conhece entenderá, até
spells.xml
powerdown.lua