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

Ultimate Healing Rune (UH)

hellpsy

Mapper
Joined
Dec 16, 2008
Messages
345
Reaction score
466
Location
Mexico
hello again guys, Can you tell me how can I change the formula to heals depends only on the Level?

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, 5, 5, 10, 12)


setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
function onCastSpell(cid, var)
   
doCreatureSay(cid, "Ultimate Healing", TALKTYPE_ORANGE_1)
return doCombat(cid, combat, var)

end
 
i think this may work:
COMBAT_FORMULA_LEVELMAGIC => COMBAT_FORMULA_LEVEL
Code:
setHealingFormula(combat, COMBAT_FORMULA_LEVEL, 5, 5, 10, 12)
 
Code:
function onGetFormulaValues(cid, level, maglevel)
     min = level/2 + 30
     max = level/2 + 50

     return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
Instead of
Code:
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 10, 12)
 
Back
Top