#event to tell how long is left 'till AA refresh

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

User avatar
Kint
a hill giant
a hill giant
Posts: 208
Joined: Thu Mar 13, 2003 3:36 am

#event to tell how long is left 'till AA refresh

Post by Kint » Thu Jun 19, 2003 5:41 am

I wanted to be able to tell my group how long it will be untill my AA refreshes

so.. if I /alt act 185 it would say

"You can use the ability Spirit of Wood again in X minute(s) Y second(s)"

is there any way to forward that to someone? or even is there a way to just forword that line to someone?

Perhaps there's some bit of memory that stores this information that I can forward to someone.

any help woul dbe great

thanks

somemage
a lesser mummy
a lesser mummy
Posts: 35
Joined: Mon May 12, 2003 7:44 pm

Post by somemage » Thu Jun 19, 2003 8:33 am

Use an event to catch it, and the whole line will be stored in $p0 when it is triggered.

ie (untested):

Code: Select all

#turbo
#event  WoodNotReady "You can use the ability Spirit of Wood"

Sub Main
    :loop
    /doevents
    /goto :loop
/return

Sub Event_WoodNotReady
     /say I'll get wood in $right($calc($strlen("$p0")-40),$p0)
/return

icon
Official loudmouth
Official loudmouth
Posts: 158
Joined: Fri Jun 14, 2002 2:59 pm
Location: ...
Contact:

Post by icon » Thu Jun 19, 2003 2:04 pm

"I'll get wood in..."
LMAO, classic!

- Icon
In memory of [b][color=darkblue]MasTerKeyZ[/b][/color].

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Thu Jun 19, 2003 4:03 pm

It would be nicer to be able to pull the information without having to push the button, like you do the forage and such abilities check?

That why you donøt accidently waste an ability just to tell your buddy it isn't ready yet ;)

User avatar
Kint
a hill giant
a hill giant
Posts: 208
Joined: Thu Mar 13, 2003 3:36 am

Post by Kint » Thu Jun 19, 2003 8:30 pm

thanks somemage, works pretty good.