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
the_red_devil
Newbie


Joined: 29 Aug 2002
Posts: 5

PostPosted: Thu Aug 29, 2002 4:07 pm   

running list
 
i need to Have a running list of who is online with a macro which traces the person in the stringlist for two to five seconds each.and a macro which flips to the next person in the list, or to the
beginning if at the end. any ideas?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Aug 30, 2002 12:40 am   
 
Use a trigger (#TRIGGER) to catch the people from the who list and add (#ADDITEM) each of them to a list variable.
Use another trigger to catch the logon messages and add new people to your list.
And use a third trigger to catch the logoff messages and remove (#DELITEM) people from the list.

Make a class (#CLASS), with option "disable when connecting to a MUD". Make a macro (#KEY) which will set a timer variable (#VAR) to a number between 2 and 5 (use the %random function), and enable the class (#T+). Put an alarm in the class (#ALARM) which will fire every second, and check your timer variable (#IF) and disable the class (#T-) when the variable is 0. If the variable is greater than 0, it will subtract 1 from it (#ADD) and trace the designated person from your list using the %item function and a counting variable (see below).

Make another macro which will check a counting variable against the number of items in your list (%numitems function), set the variable to 1 if it's equal to or greater than the number of items, and add 1 to it if it's less.

There's the ideas you asked for. Have fun.

LightBulb
Senior Member
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