|
snoogans Novice
Joined: 28 Oct 2001 Posts: 43 Location: USA
|
Posted: 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? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
snoogans Novice
Joined: 28 Oct 2001 Posts: 43 Location: USA
|
Posted: 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 :)
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Sep 21, 2002 4:09 pm |
Set you send delay up to a second or 2 it is in the general preferences.
|
|
|
|
|
|