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
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Sat Sep 21, 2002 4:18 am   

The easy way
 
Okay i have a HUGE list of one word names, like 200. Is there any way i can pass each name on the list to a command, specifically "chat ban" Im thinking something like

for i in banlist.txt do chat ban $i

or somthing along those lines, does zmud have capability liek that?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Sep 21, 2002 4:58 am   
 
If you had them in a list variable, you could use
#FORALL @banlist {chat ban %i}

Since you apparently have them in a text file, you can use the %read function.
#FILE 1 banlist.txt
#LOOP 1,%filesize(1) {chat ban %read(1,%i)}


LightBulb
Senior Member
Reply with quote
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Sat Sep 21, 2002 6:23 am   
 
Thanks a ton! Worked like a charm!@# Except i found out the hard way that my mud doesn't like to recieve 316 commands at a time from the same person :)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Sep 21, 2002 4:09 pm   
 
Set you send delay up to a second or 2 it is in the general preferences.
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