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

Staged uh need help! ;)

Ekholmen

New Member
Joined
Dec 12, 2010
Messages
52
Reaction score
0
Location
Sweden
hi guys !

i have one last thing for my uh rune it works good but i want it to heal like theese lvl and im not good with math :( hope you understand :D

[{1,35}] = {150,150},
[{51,100}] = {150,250},
[{101,250}] = {250,400},
[{251,350}] = {400,600},
[{450,550}] = {600,750},
[{551,650}] = {750,1000},
[{650,math.huge}] = {1000,1300}

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)
--setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.3, -15, 1.7, 0)

function onGetFormulaValues(cid, level, maglevel)
        min = (level * 2 + maglevel * 3) * 2.3 - 15
        max = (level * 2 + maglevel * 3) * 2.6
        
        if min < 500 then
                min = 1500
        end

        return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

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