mIRC Home    About    Download    Register    News    Help

Print Thread
#80251 23/04/04 02:09 AM
Joined: Feb 2004
Posts: 12
A
Alias Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Feb 2004
Posts: 12
Hi,
I have a command that choose a message between several from a .txt file when someone says a specific word in room.
I have this command but it doesn't work :
on *:text::blabla:#: $!read(Text\james.txt)

Any idea how to fix it please ??
Thank you smirk

#80252 23/04/04 06:05 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
In Remotes (ALT+R) preferably in a new file (File > New):

on *:text:blabla:#channel:{ msg # $read(james.txt) }

This reads a random line from 'james.txt' when someone types 'blabla'. You need to change #channel for the channel name. The reason I suggest you specify a channel name is because if you put '#' then it will work on any channel you're on, and you will be banned for something like this.

Also see /help $read and /help on text.

Oh, just an FYI, if you have a scripting question it's best asked in the Scripts & Popups forum smile

Hope this helps!

Regards,


Mentality/Chris
#80253 23/04/04 03:17 PM
Joined: Feb 2004
Posts: 12
A
Alias Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Feb 2004
Posts: 12
Thank you very much, it works fine now ! wink


Link Copied to Clipboard