Santy
Member
- Joined
- Aug 14, 2007
- Messages
- 654
- Reaction score
- 22
This is a very good spell for knights, add this spell to spells folder:
And make the mana cost 100 in spells.xml.. or anything else.. to change the hp u get, change the "doPlayerAddHealth(cid, 100)".
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddHealth(cid, 100)
return doCombat(cid, combat, var)
end
And make the mana cost 100 in spells.xml.. or anything else.. to change the hp u get, change the "doPlayerAddHealth(cid, 100)".