• 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!

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
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
 
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.
 
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
 
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
 
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.
Back
Top