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

Healing Rune

grogan

New Member
Joined
Dec 6, 2007
Messages
133
Reaction score
0
I need a healing rune that heals 2000 hp does anyone no how to make or how do i change so this gives around 2k hp

function onGetFormulaValues(cid, level, maglevel)
min = (level * 1 + maglevel * 4) * 2.08
max = (level * 1 + maglevel * 4) * 2.7
if min < 250 then
min = 250
end
return min, max
 
If you want a rune that gives 2000~ hp no matter what level then use this, just change the min/max to what you want:
Code:
function onGetFormulaValues(cid)
min = 1900
max = 2100
return min, max
But if you want level 200's with magic level 90 to get 2000~ hp then you just need to do the formula to fit that level and magic level:
Code:
----if level 200 and magic level 90
function onGetFormulaValues(cid, level, maglevel)
min = (level * 1 + maglevel * 4) * 3.5
max = (level * 1 + maglevel * 4) * 3.64
if min < 250 then
min = 250
end
return min, max
Basically just open up a calculator and put in the equation so that it fits the health you want.

Jo3
 
Well i want level 300s to use this runes only knights but carn't i just do that in spells.xml

and also should the script look like this now:

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_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid)
min = 1900
max = 2100
return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
 
Well i want level 300s to use this runes only knights but carn't i just do that in spells.xml

and also should the script look like this now:
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_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid)
min = 1900
max = 2100
return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
That should work, can't you test it? :)

Jo3
 
Back
Top