mIRC Home    About    Download    Register    News    Help

Print Thread
Need Some Help #71606 16/02/04 08:53 AM
Joined: Dec 2003
Posts: 199
K
Kriminal Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Alright, I need some help.
I have a Bot and if someone types: !submit //say $ip, It'll actually show the ip when reading it from .txt in which the submission was written to. smile
Can someone please help me so It'll just read it as:
//say $ip instead of actually returning my ACTUAL IP! :-(
Would something like $eval work, I dunno! (Just a thought :P)


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
Re: Need Some Help #71607 16/02/04 09:42 AM
Joined: Dec 2002
Posts: 349
S
Skip Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 349
You need to use the 'n' switch with $read() - for example to read a random line from a file without evaluating its contents: $read(file.txt, n)

Hope that helps. smile

Re: Need Some Help #71608 16/02/04 08:07 PM
Joined: Dec 2003
Posts: 199
K
Kriminal Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
How would I do it reading a CERTAIN Line?


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
Re: Need Some Help #71609 16/02/04 08:34 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Same as before, you just add the n switch. :[/b])
$read(file.txt,n,12) <- reads the 12th line
$read(file.txt,nw,*blah*) <- reads the first line matching *blah*
$read(file.txt,ns,bla) <- returns the second word onwards from the first line with bla as the first word.