Is there a $Caststate variable?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

loadingpleasewait
a snow griffon
a snow griffon
Posts: 332
Joined: Sat Sep 14, 2002 8:46 am

Is there a $Caststate variable?

Post by loadingpleasewait » Wed Oct 08, 2003 11:47 am

I was wondering if there was a veriable that could display cast state.

Example:

Either

Code: Select all

    $casting==true/false   If you are currently casting or not.. 
    $caststate==casting/idle  if you are casting or not.. 
to me, $casting makes more sense..

Usage, if you are doing a melee type macro, and you cast somthing, you get a ton of spam from kicking and such while casting, "you cannot do that action at this time" like mad..

with this variable, you could do a sub like

Code: Select all

/call casting


Sub casting
    :checkcast
    /delay 3
    /if "$casting"=="TRUE" goto :checkcast
/return
if somthing like this is there, please let me know, if not, how hard would it be to add this functionality?
LOADING PLEASE WAIT...

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Wed Oct 08, 2003 11:57 am

Here you go:

Code: Select all

$char(casting)
returns TRUE if casting, FALSE if not casting.

Code: Select all

/call casting 

Sub casting 
    :checkcast 
    /delay 3 
    /if "$char(casting)"=="TRUE" goto :checkcast 
/return

loadingpleasewait
a snow griffon
a snow griffon
Posts: 332
Joined: Sat Sep 14, 2002 8:46 am

Post by loadingpleasewait » Wed Oct 08, 2003 12:20 pm

Thanks for the quick response.. Worked perfectly..
LOADING PLEASE WAIT...