• 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

cooper64

New Member
Joined
Feb 5, 2010
Messages
52
Reaction score
0
I need some help with ultimate healing rune. I would like it to heal a constant value , like 500 no matter magic level or vacation. Basically a mana rune , but for health.
Thanks in advance.
 
PHP:
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)
    doCreatureAddHealth(cid, math.random(500, 550))
    return doCombat(cid, combat, var)
end
will heal 500 to 550...

Script is from Cykotitan... i've edit it

Regards, Entral
 
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)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 0, 500, 1000)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
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)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 0, 500, 1000)

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

I am wondering if there is a way to know how the formula COMBAT_FORMULA_LEVELMAGIC operates with the variables?

Thanks.
 
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 0, 500, 1000)

first 0 = Min damage based on your level. If you are level 100 and you share that by 0, you will heal with 0 damage.
second 0 = Max damage based on your level.
third 0 = Min damage based on your magic level. If you are magic level 0 and the "third" value is 0, than you do 0 x 0 = 0 will be the damage.
fourth 0 = Max damage based on your magic level.
final two = Will add between 500 and 1000 hp a turn.

This is what you wanted to know?
Or do you mean:
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)

First = it will heal you
Second = It will have the blueshimmer spelleffect
Third = You wont hurt other players with it / it's not agressive.
Fourth = It's able to use it on other persons (aint sure).
Fifth = If you use the spell it will make you not beiing paralyzed nomore.
 
WOW, I wanted to know the first answer, but the second one is also very educating :)

Now I know what the variables are, but it would still be nice to know how the formula looks like within COMBAT_FORMULA_LEVELMAGIC. If I am not mistaken, in version 2.x or so you could write the formula yourself, and now it seems the formula is hardcoded.

I remember some time ago I was able to find a very extensive list of commands with a brief explanation, but over time I lost it. If you know a of such a list it would be nice to have the link to that post.

Thanks a lot Sentielo!
 
Back
Top