mIRC Homepage
Posted By: Kriminal Need Some Help - 16/02/04 08:53 AM
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)
Posted By: Skip Re: Need Some Help - 16/02/04 09:42 AM
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
Posted By: Kriminal Re: Need Some Help - 16/02/04 08:07 PM
How would I do it reading a CERTAIN Line?
Posted By: Iori Re: Need Some Help - 16/02/04 08:34 PM
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.
© mIRC Discussion Forums