 |
Tree Newbie
Joined: 27 Dec 2011 Posts: 2
|
Posted: Tue Dec 27, 2011 4:01 am
Alias help |
okay i'm using cmud version 3.34.
What i am trying to do is create an alias that will change gear. However my gear is constantly changing all the time.. so it will need to be a list of variables. now the variable list is simple to create. The problem i run into is when it expands the items.
#alias manareg remove @boots @ring @helm;wear @mboots @mring @mhelm
returns all the variables expanded but without a space and cause item not found on the mud. How do i retain the space between the variables? |
|
|
 |
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Tue Dec 27, 2011 4:31 am |
Try the %concat function. Something like this:
Code: |
#alias manareg {#SEND %concat("remove ", @boots, " ", @ring, " ", @helm);#SEND %concat("wear ", @mboots, " ", @mring, " ", @mhelm)} |
|
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Tue Dec 27, 2011 11:29 am |
Actually, shouldn't need to use %concat.
#SEND {remove @boots @ring @helm}
#SEND {wear @mboots @mring @mhelm}
should work. |
|
|
 |
Tree Newbie
Joined: 27 Dec 2011 Posts: 2
|
Posted: Wed Dec 28, 2011 12:51 am |
Thankyou. The #send was exactly what i needed. Nice and short and works great :).
|
|
|
 |
|
|