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

mas res cant heal monster

Ganjita

Active Member
Joined
Dec 15, 2009
Messages
494
Reaction score
37
how i can make that on my mas res?, i wanna that dont heal any monster here is my script for exura gran mas res, im use rev 3777 tf 0.4

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_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, 100, -1, 125, 5, 5, 7.6, 9.6)

function onGetFormulaValues(cid, level, maglevel)
    local min = ((level/5)+(maglevel*7.6)+100)
    local max = ((level/5)+(maglevel*9.6)+125)
    return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)

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