Lua exana mort healing just 100 hp Need help for edit this.

Status
Not open for further replies.

oto

New Member
Joined
Apr 8, 2009
Messages
174
Best answers
0
Reaction score
0
Location
spain
exana mort healing just 100 hp Need help for edit this.

this is my wound cleasing spell lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 11, 15)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
and my spells.lua
<instant name="Wound Cleansing" words="exana mort" lvl="30" mana="65" prem="1" selftarget="1" aggressive="0" exhaustion="1000" needlearn="0" event="script" value="healing/wound cleasing.lua">
<vocation id="4"/>
<vocation id="8"/>
</instant>
How edit this for use exana mort good healing? Thanks
 

Tatuy

New Member
Joined
Jul 6, 2007
Messages
147
Best answers
0
Reaction score
4
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 100)
test it
 

Peroxides Cat

Sleepy Member
Joined
Nov 15, 2009
Messages
2,230
Best answers
0
Reaction score
134
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onCastSpell(cid, var)
	return doCreatureAddHealth(cid, 100) and doCombat(cid, combat, var)
end
Credits
#Cykotitan.
 
OP
oto

oto

New Member
Joined
Apr 8, 2009
Messages
174
Best answers
0
Reaction score
0
Location
spain
Code:
local combat = createcombatobject()
setcombatparam(combat, combat_param_type, combat_healing)
setcombatparam(combat, combat_param_effect, const_me_magic_blue)
setcombatparam(combat, combat_param_aggressive, false)
setcombatparam(combat, combat_param_dispel, condition_paralyze)

function oncastspell(cid, var)
	return docreatureaddhealth(cid, 100) and docombat(cid, combat, var)
end
credits
#cykotitan.
man i use this lua but only healing 100just.

I need correct healing of exana mort, not 100just
 
OP
oto

oto

New Member
Joined
Apr 8, 2009
Messages
174
Best answers
0
Reaction score
0
Location
spain
yes tfs 0.3.6 :D
 

Cykotitan

Experienced G'
Joined
Nov 4, 2008
Messages
16,894
Best answers
4
Reaction score
815
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
	local min = level / 5 + maglevel * 11
	local max = level / 5 + maglevel * 15
	return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
OP
oto

oto

New Member
Joined
Apr 8, 2009
Messages
174
Best answers
0
Reaction score
0
Location
spain
Exana mort Healing Slow

I used scripts but exana mort heal 60-90 max :S


why?
 

Cykotitan

Experienced G'
Joined
Nov 4, 2008
Messages
16,894
Best answers
4
Reaction score
815
What is level and magic level of the knight that you're testing this spell on, and how much do you want it to heal?
 
Status
Not open for further replies.
Top