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

Mana rune that heals the same as my uh that i posted

redguy

New Member
Joined
Mar 20, 2010
Messages
45
Reaction score
1
here is the current mana rune i have
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
 
function onCastSpell(cid, var)
    doPlayerAddMana(cid, math.random(500, 550))
    return doCombat(cid, combat, var)
end

and here is the uh i want to heal the same
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_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, .4, .7, 1, 1)

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

i want the mana the rune to heal the same as the uh

thank you
 
Last edited:
min = (getPlayerLevel(cid) / minl + getPlayerMagLevel(cid) * minm) * mina + minb
max = (getPlayerLevel(cid) / maxl + getPlayerMagLevel(cid) * maxm) * maxa + maxb


something like that and math.random min and max... I just dont know which variables is the ones to use :/ i tried to see in sources but it says it's mina, minb, maxa and maxb but it don't look right :(
 
Back
Top