Hello, i was wondering if it's possible to do something like this and if anyone knows how, tryied to play around with it but couldn't find anything working, but i'm not very experienced either so i was wondering if there's anyone out there that would help me?
for example if a elder druid casts exori max frigo it hits as a single target , and if vocationId 9 uses exori max frigo it will cast it as an AoE around the target
for example if a elder druid casts exori max frigo it hits as a single target , and if vocationId 9 uses exori max frigo it will cast it as an AoE around the target
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLICE)
if vocationId = (9) then
combat:setArea(createCombatArea(AREA_CROSS1X1))
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * 4.5) + 35
local max = (level / 5) + (maglevel * 7.3) + 55
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var)
return combat:execute(creature, var)
end
Last edited: