Santy
Member
- Joined
- Aug 14, 2007
- Messages
- 654
- Reaction score
- 22
Hehe.. saw my other spell?
Now this one, changes hp instead of mana! ..
Make the cost in spells.xml 0.
Now this one, changes hp instead of mana! ..
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddHealth(cid, -100)
doPlayerAddMana(cid, 100)
return doCombat(cid, combat, var)
end
Make the cost in spells.xml 0.