Panels.AttackSpell = function(parent)
context.macro(500, "Auto attack spell", nil, function()
local target = g_game.getAttackingCreature()
if target and context.getCreatureById(target:getId()) and context.storage.autoAttackText:len() > 0 and context.storage.autoAttackText2:len() > 0 then
if context.saySpell(context.storage.autoAttackText, 1400) then
context.delay(1000)
end
end
end, parent)
context.addTextEdit("autoAttackText", context.storage.autoAttackText or "exori vis", function(widget, text)
context.storage.autoAttackText = text
end, parent)
context.addTextEdit("autoAttackText2", context.storage.autoAttackText2 or "exori vis", function(widget, text)
context.storage.autoAttackText2 = text
end, parent)
end
can someone help me fix this to cast both spells 1 being utito tempo hur the other my aoe?
I Can't figure it out