View Single Post
09-27-05, 07:07 AM   #1
johnbuns2
A Murloc Raider
Join Date: Aug 2005
Posts: 8
Angry Channeled Spells, stop the interrupting!!!

Hey, I made a macro based off of the new Cast Aide AddOn's script, to stop channeled spells from canceling if you accidentally hit the button more then once. Arcane missiles was my biggest problem. Lag would hit and i wouldn't cast the spell so i'd think i needed to hit it again or something. Anyways you get the idea. So i made this.

/script cS, W = "Arcane Missiles(Rank 7)", 3
/script --CastSpellByName("Arcane Missiles(Rank 7)")
/script if sA==nil then sT = time(); eT = time() + W; CastSpellByName(cS); sA = true end; if eT <= time() then sA = nil end


Problem is, for some reason it doesn't activate the first time you press it, I have to keep pressing it, and waste 1 or 2 seconds before it goes. After it does fire, it's safe from interruption for the specified time period. But i really would like to get rid of that 1 or 2 second period.

Here's the original LUA i wrote, before i shrunk it down.

function spellWait(cSpell, cWait)
if SpellIsActive == nil then
sTime = time()
eTime = time() + cWait
CS(cSpell)
SpellIsActive = true
end

if eTime <= time() then
SpellIsActive = nil
end
--DEFAULT_CHAT_FRAME:AddMessage(sTime)
end


Can someone try these out and tell me what i'm doing wrong? or if this is even possible?

I talk more about the macro's purpose here.

http://forums.worldofwarcraft.com/th...hreadID=222113

EDIT: I made CS = CastSpellByName for all my functions.

Last edited by johnbuns2 : 09-27-05 at 07:17 AM.
  Reply With Quote