LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
local condition = Condition(CONDITION_HASTE)
condition:setParameter(CONDITION_PARAM_TICKS, 33000)
condition:setFormula(0.3, -24, 0.3, -24)
combat:setCondition(condition)
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
how modific this script to work to depend of level?
example: level 10 x speed, lvl 20 x speed, level 30 x speed?
condition:setFormula(0.3, -24, 0.3, -24) i don't understand this numbers, what of these numbers represents more speed value?