mIRC Home    About    Download    Register    News    Help

Print Thread
#48918 12/09/03 02:30 AM
Joined: Sep 2003
Posts: 23
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Sep 2003
Posts: 23
I feel like an e-tard for having to ask this, but I know a simple script like:

//echo $read(llama.txt), 1

should read line one from llama.txt...my ? is..where in the **** do I put the txt file? I uploaded it to my aliases via 'Load' where I thought it should go, but that didn't take, put it in the main IRC directory...which I know is wrong but couldn't think of anything else...tried /help $read and nothing...

#48919 12/09/03 02:34 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
The text file should be put in your mIRC directory, and it should be:
//echo $read(llama.txt,1)
not
//echo $read(llama.txt), 1

#48920 12/09/03 02:40 AM
Joined: Sep 2003
Posts: 23
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Sep 2003
Posts: 23
hehehe..yeah...I had the code right in my alias, think I'm getting tired of staring @ the screen again and it isn't even 11 o'clock. I will try my mIRC dir. again...tx

As I'm not sure how this all works yet, can anyone tell me what the usefulness of such things would be, since I can't very well use: /say $read(testing.txt,1) cause it will display '$read(testing.txt,1)

#48921 12/09/03 02:51 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You would have to use two /s (i.e. //say $read(testing.txt,1)) to evaluate identifiers from the command line. Most people use $read from inside remote scripts to get random messages, jokes, etc.


Link Copied to Clipboard