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

Getting Totally level based healing runes.

Xaiman

New Member
Joined
Feb 27, 2010
Messages
94
Reaction score
0
This is THE most annoying thing i have tried to do.. i just cant do it, because i have no idea how the spell formula works.

I have trying to make 3 healing runes (each one heals more than the last and is for a higher level.)

heres the first one. Its nothing special just a simple healing script.

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)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0.1, 0.1, 1, 1)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
(ignore the number in there now, this is just here to show you guys what im working with)

I want the rune to be totally based on level (the higher level you get the more it heals you) i dont want magic level to effect it at all, or very very very little.

how do i achieve this? i have tried plugging in every number i can think of into the formula, but i simply CAN NOT get it. if someone could help me with this it would be great. (show me what numbers to increase and what to leave alone blah blah it would be soooo much help.


Also, is there a way to make a healing runes that are not a spell script? Can i make them like i made mana runes? ex: function on use (blah blah blah) Doaddmana (level*3) or w/e. I have tried just switching my mana runes to add health but they dont work when i do it.

Thank you
Xaiman
 
16 views and nobody knows how to do this? x.x this is the only thing holding me back from opening my server. Balancing spells and runes. someone has to understand this, theres hundreds of server all balanced lol its did happen by chance.
 
COMBAT_FORMULA_UNDEFINED
COMBAT_FORMULA_LEVELMAGIC
COMBAT_FORMULA_SKILL
COMBAT_FORMULA_DAMAGE

There is the only formulas i know ^^ and i think its all :p
 
Last edited:
Nvm i got the script from someone on otfans.

credit* Realsoft
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
	min = (level * 0.6) * 1.9
	max = (level * 0.9) * 2.1

	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Back
Top