FEAT REQ: $macro

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

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

FEAT REQ: $macro

Post by loadingpleasewait » Thu Nov 13, 2003 10:07 am

For UI Development, I think it would be nice to have somthing along the lines of $macro(running), $macro(running,time) etc..

$macro(running) would return what macro is running, or None if none are running.

$macro(running,time) would return how long the macro has been running, and would return nothing if no macro is running.

I think it would be nice to place this in the UI so I would know if my macro has ended, and I just missed the spam or somthing.

Thanks
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 » Thu Nov 13, 2003 12:57 pm

First one... not sure if it can be done...


Second request:

From readme.html in the CVS and zip

Code: Select all

$running
Returns the number of seconds the macro has been running

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

Post by loadingpleasewait » Thu Nov 13, 2003 1:48 pm

aye, I know about $running, but what I'm lookin for mainly is somthing that would display the macro name that is running.. I suppose I dont need any variables to it, so just plain old $macro would be fine.. = )
LOADING PLEASE WAIT...

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Thu Nov 13, 2003 2:49 pm

I'm thinking this wouldn't be that hard. The /macro command has to take a macro name as it's argument. Should be easy enough to store that argument in a $macro variable. I'll take a look into it in a bit if someone else doesn't beat me to it.
MQ2: Think of it as Evolution in action.

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

Post by loadingpleasewait » Thu Nov 13, 2003 3:00 pm

Thank You.. :D
LOADING PLEASE WAIT...

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Thu Nov 13, 2003 6:23 pm

Okay, tested and working, and in the CVS. $macro will return the name of the currently running macro, or "None" if one is not running.

For custom UI's, new type numbers. 4000 is $macro, and 4001 is $running. Maybe Lax can modify the MQ window title bar to show those, if not you can stick them in your player window or something.
MQ2: Think of it as Evolution in action.

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

Post by loadingpleasewait » Thu Nov 13, 2003 8:02 pm

Any chance we can get this in the zip? = )
LOADING PLEASE WAIT...

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Post by EqMule » Thu Nov 13, 2003 11:19 pm

zip updated.
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Nov 14, 2003 9:48 am

Yeah, I need to figure out the whole uploading of the zip one of these days :) Sorry about that.
MQ2: Think of it as Evolution in action.