Mr Noxi
Noxus Otserver
Hey!
So i have these 2 revScript spells but they are sharing cooldown with eachother and idk why. I dont want itttt
Here is the spell, the other spells has excat same function but with "spell2" insted of spell1".
What have i missed, is there any easy fix or?
Thankksss
So i have these 2 revScript spells but they are sharing cooldown with eachother and idk why. I dont want itttt
Here is the spell, the other spells has excat same function but with "spell2" insted of spell1".
What have i missed, is there any easy fix or?
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
combat:setArea(createCombatArea(AREA_CIRCLE3X3))
local combat2 = Combat()
combat2:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
combat2:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
combat2:setArea(createCombatArea(AREA_CIRCLE3X3))
function onGetFormulaValues(player, level, magicLevel)
local min = (level / 5) + (magicLevel * 9.0) + 700
local max = (level / 5) + (magicLevel * 13.0) + 700
return -min, -max
end
function onGetFormulaValues2(player, level, magicLevel)
local min = (level / 5) + (magicLevel * 9.0) + 750
local max = (level / 5) + (magicLevel * 15.0) + 710
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
combat2:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues2")
local function secondSpell(cid, variant)
local creature = Creature(cid)
if not creature then return end
return combat2:execute(creature, variant)
end
local spell1 = Spell(SPELL_INSTANT)
function spell1.onCastSpell(creature, variant, isHotkey)
combat:execute(creature, variant)
addEvent(secondSpell, 500, creature:getId(), variant)
return true
end
spell1:name("Test1")
spell1:words("test1")
spell1:group("attack")
spell1:vocation("Paladin", "Royal paladin")
spell1:cooldown(2500)
spell1:level(600)
spell1:mana(400)
spell1:blockWalls(true)
spell1:register()
Thankksss