simkal
New Member
- Joined
- Jan 21, 2010
- Messages
- 361
- Reaction score
- 3
Hello!
This is my second spell!
It heals your target like exori mort
hits your target
Before!
After!
Put this in spells.xml
>>IMPORTANT<<
Do not type </instant> infront of this!
Create a new .lua in attack and name it heal_target
and put in this:
Hope this will be useful
This is my second spell!
It heals your target like exori mort
hits your target
Before!
After!
Put this in spells.xml
>>IMPORTANT<<
Do not type </instant> infront of this!
Code:
<instant name="Abjuse Strike" words="exori heal" lvl="35" mana="150" prem="1" range="7" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="attack/heal_target.lua">
<vocation id="1"/>
<vocation id="5"/>
<vocation id="2"/>
<vocation id="6"/>
Create a new .lua in attack and name it heal_target
and put in this:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLICE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 5, 6)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Hope this will be useful