Check if currently casting

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Check if currently casting

Post by Fippy » Wed Jul 07, 2004 11:46 am

I am currently using semi automated macros whilst playing my pally. basically all the melee is macroed so I get the maximum amount of bash/taunt skills in e.t.c. Beacause casting is a bit more situational I am doing this manually (gotta do something by hand :) ) but am havinf problems when the mob backs up a little so I move forward and interrupt my casting. I figured the best way to do this would be to have a loop that exits once I have stopped casting but since the macro isnt doing the casting I cant just pause for the length of the cast. From the helpfile it looks like I need to use ${Me.Casting} but there dosent seem to be any indication of what this gives is a am not casting anything.

would

Code: Select all

     :WaitForCast
           /delay 1s
           /if ${String[${Me.Casting}].Length} > 0 /goto WaitForCast
do it ?
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Wed Jul 07, 2004 11:48 am

Code: Select all

/if (${Me.Casting.ID}) /echo I am casting ${Me.Casting.Name}

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Wed Jul 07, 2004 11:53 am

hehe typical of me trying to make it more complicated than it needs to be.

thanks BN
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]