|
Telkar Newbie
Joined: 16 Jun 2006 Posts: 3
|
Posted: Fri Jun 16, 2006 3:42 am
Displaying Macros |
Despite my best efforts, I haven't been able to figure out how to make an alias that will display what all my macros are currently set to. Can anyone give me some advice on how to do this?
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Jun 16, 2006 9:33 am |
Looking the page http://www.zuggsoft.com/page.php?file=zmud/comserve.htm there is a way to get the information you want.
Something roughly along the lines of:
#LOOP %sess.NumMacros {#VAR Macro {%sess.MacroNum(%eval(%i-1))};#IF (@Macro.Enabled=1) {#SHOW @Macro.Key = @Macro.Value};#VAR Macro {}} |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Telkar Newbie
Joined: 16 Jun 2006 Posts: 3
|
Posted: Sun Jun 18, 2006 2:07 am |
Maybe I wasn't clear on what I wanted, cause that looks way too complex..
Code: |
<{100%hit 100%mana 89%mv 14159tnl 3733gold night no opponent:none}> alias
Your current aliases are:
8: wear plank
5: wear sword
6: wear shield
7: dual blade
kl: dirt trea
kk: murder trea
1: quaff purple
kj: bod trea
3: sideswipe
4: wear thin
<{100%hit 100%mana 89%mv 14159tnl 3733gold night no opponent:none}> mi |
See, in my example, I type 'alias' and it lists out my macro settings.
If it were a variable I'd just do '#SHOW @blargo' Is there something like that for macros? '#SHOW &MACRO' or something? Thanks for the help! |
|
|
|
edb6377 Magician
Joined: 29 Nov 2005 Posts: 482
|
Posted: Sun Jun 18, 2006 2:47 am |
thats what that does i believe.
#ALIAS listmacros {#LOOP %sess.NumMacros {#VAR Macro {%sess.MacroNum(%eval(%i-1))};#IF (@Macro.Enabled=1) {#SHOW @Macro.Key = @Macro.Value};#VAR Macro {}}}
then when you type listmacros it should list your sessions macros. |
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Sun Jun 18, 2006 4:37 pm |
why don't you just type #key in?
|
|
|
|
edb6377 Magician
Joined: 29 Nov 2005 Posts: 482
|
Posted: Sun Jun 18, 2006 8:03 pm |
you could if he wants a list of every macro in the overall setup. The other way only shows enabled macros i believe.
|
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Sun Jun 18, 2006 10:20 pm |
I think what he wants is a trigger set that records what his current mud based aliases are into a variable so he can then spit out the results from the variable rather than having to issue the mud command alias or possibly so he can use the variable to tell others on the mud what his mud based aliases are.
If I'm right get back to us if not then your answer has already been provided. |
|
_________________ Taz :) |
|
|
|
|
|