I know how to create a mass spell like mass healing... but everytime it heals monsters also now... how can i fix that?
Another question is,I know how i can buff a player, but if he is buffed (maybe skill sword + 5) it should not be able to buff him again...
anyone got an idea?
Thx you!
Virgel
Another question is,I know how i can buff a player, but if he is buffed (maybe skill sword + 5) it should not be able to buff him again...
anyone got an idea?
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)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 1 + maglevel * 4) * 2.08
max = (level * 1 + maglevel * 4) * 2.7
if min < 250 then
min = 250
end
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
Thx you!
Virgel
Last edited: