Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Hiryuu
Newbie


Joined: 27 Dec 2002
Posts: 9

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
Hiryuu
Newbie


Joined: 27 Dec 2002
Posts: 9

PostPosted: Sun Feb 09, 2003 2:39 am   
 
Thanks.

~Hiryuu

PS. Worked like a charm.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net