mIRC Home    About    Download    Register    News    Help

Topic Options
#71606 - 16/02/04 08:53 AM Need Some Help
Kriminal Offline
Fjord artisan

Registered: 21/12/03
Posts: 199
Loc: Cali
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 -

Top
#71607 - 16/02/04 09:42 AM Re: Need Some Help
Skip Offline
Fjord artisan

Registered: 09/12/02
Posts: 349
Loc: Darwin, Australia
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

Top
#71608 - 16/02/04 08:07 PM Re: Need Some Help
Kriminal Offline
Fjord artisan

Registered: 21/12/03
Posts: 199
Loc: Cali
How would I do it reading a CERTAIN Line?
_________________________
Want to Link Servers? PM Me
- EliteIRC.dyndns.org -

Top
#71609 - 16/02/04 08:34 PM Re: Need Some Help
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
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.

Top