• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell Heal Target Spell

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!
huahuad.png

After!
huahua2.png


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 :)
 
Leave him alone, he put down a minute or so the help the community. Very good job, keep it up. Only way to learn is to try your way forth :p
 
Back
Top