|
Hiryuu Newbie
Joined: 27 Dec 2002 Posts: 9
|
Posted: Sun Feb 09, 2003 12:58 am
Need some help with an alias |
Well, we have a system on the MUD I IMM on that lets an RP IMM start an rp quest using the command:
rpquest on
Then, if people want to join they are assigned a color - the IMM adds them like this:
rpquest add name color
I have aliases set up to go through a list of colors and then stop when there arent anymore. What I want to do is have it record the list of people who are joining the RP, because when they are added they are transfered to me. I then want to type another alias that transfers them all to 3054 - transfer name 3054 - and end the rp:
rpquest off
What I currently have is:
#CLASS {rp}
#ALIAS rpadd {#IF (@index > %numitems( @avaicolors)) {#show No more avaialable slots.} {rpquest add %1 %item( @avaicolors, @index);#ADD index 1}}
#ALIAS rpstart {#var index 1;#VAR avaicolors {R|r|G|g|Y|y|B|b|M|m|C|c|W|w|D};rpquest on}
#CLASS 0
Pretty much I do rpstart, then rpadd name to add people.. I want 'rpstop' to transfer everyone out and do the rpquest off. Thanks.
~Hiryuu |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Feb 09, 2003 2:24 am |
Add this command to the end of the else part in the #IF of the rpadd alias:
#ADDITEM people %1
Then, create the rpstop alias like this:
#ALIAS rpstop {#FORALL @people {transfer %i 3054};#VAR people ""}
Kjata |
|
|
|
Hiryuu Newbie
Joined: 27 Dec 2002 Posts: 9
|
Posted: Sun Feb 09, 2003 2:39 am |
Thanks.
~Hiryuu
PS. Worked like a charm. |
|
|
|
|
|