mIRC Home    About    Download    Register    News    Help

Print Thread
S
Senniant
Senniant
S
This has nothing to do with my listening events. Remote is completly turned on. I made a bot years ago, it was great. I loved it. One day however.. All of its commands, the entire thing.. They just stopped working correctly.. From right to wrong. I tried moving its entire script to a newer version of mIRC and they still did not go.

Now, i ran into this problem again. After a bit of working on 2 commands, i finally got them both to work right. I took a break and talked with my friend a while. I come back to it and they just stopped working. Both of the commands are $read() reliant. I am using mIRC v6.14 on windows 98 Second Edition. These commands both worked 100% perfect before.. and now they dont work at all. I tried moving them over to another mIRC and still they didnt go.. Why is this?

I havnt tested yet.. But i beleive it may be $read() that just stopped working. All of the files are still at their proper destination. I can put them up here if you think its them.

on *:text:info:?:/msg $nick $read(%mread [ $+ [ $nick ] ], 2) | msg $nick $read(%mread [ $+ [ $nick ] ], 3)

on *:text:check*:? {
if ($2 == #vtest) && ($read(%mread [ $+ [ $nick ] ], 4) == y) { write -l2 c:\mscript\channels\~ [ $+ [ $nick ] ]\chan.txt $read(%mread [ $+ [ $nick ] ], 16) | set %mread [ $+ [ $nick ] ] $read(%mread [ $+ [ $nick ] ], 16) | msg $nick - $read(%mread [ $+ [ $nick ] ], 2) | halt }
if ($2 == #vtest2) && ($read(%mread [ $+ [ $nick ] ], 5) == y) { write -l2 c:\mscript\channels\~ [ $+ [ $nick ] ]\chan2.txt $read(%mread [ $+ [ $nick ] ], 17) | set %mread [ $+ [ $nick ] ] $read(%mread [ $+ [ $nick ] ], 17) | msg $nick $read(%mread [ $+ [ $nick ] ], 2) | halt }
else { msg $nick Something is not working }
}

The thing is. It will message me when i use the commands, it just wont message the $read() commands. On the second one.. Since it cant use $read() to check, it completly skips the if lines and goes to else.

Remember, these both worked 100% fine the way they should, and now they dont.

Much thanks to anyone who can (and will) help me get back on the fast track to working.



S
Senniant
Senniant
S
I dont get it. I decided to test the $read() command and got annoying results.

on *:text:test:?:/msg $nick testing | msg $nick $read(c:\mscript\channels\~ [ $+ [ $nick ] ] \chan.txt) | msg $nick test complete

I wrote that up real fast to test out $read(). It works, but the 2 commands that i mentioned earlier, still wont use $read(). So, i thought maybe something was wrong with my variables. and decided to test my %mread.

on *:text:test:?:/msg $nick testing | msg $nick $read(%mread [ $+ [ $nick ] ]) | msg $nick test complete

This works as well. I find it strange that 2 commands should work fine for 15 minutes, and then suddenly fry with absolutly no altering of code.

I would rewrite them to see if it would work.. but thats no guarentee they would stay working.. Is there a cause for this?


Link Copied to Clipboard