mIRC Homepage
Posted By: mbab Anti idle script - 13/07/08 06:34 PM
Tried several ones and none are working
Anyone has any?:)
Posted By: argv0 Re: Anti idle script - 13/07/08 06:36 PM
Code:
ON *:CONNECT:.timerANTIIDLE 1 60 raw -q ping $server
Posted By: maroon Re: Anti idle script - 13/07/08 07:30 PM
Originally Posted By: argv0
Code:
ON *:CONNECT:.timerANTIIDLE 1 60 raw -q ping $server




This above code would only execute once. If you also want to have it support your being on multiple networks at the same time:

Code:
ON *:CONNECT:.timerANTIIDLE. [ $+ [ $network ] ] 0 60 raw -q ping $server

Posted By: mbab Re: Anti idle script - 13/07/08 07:35 PM
So timer is 60 seconds i guess?
Posted By: maroon Re: Anti idle script - 13/07/08 07:45 PM
Originally Posted By: mbab
So timer is 60 seconds i guess?


Yes, you can increase this if needed. I've never seen recommendations of which is a happy medium between too-little/too-late vs getting flooded off the network.
Posted By: mbab Re: Anti idle script - 13/07/08 08:27 PM
Hmm pasted that into remotes and it didnt work=/

Remotes is where i should paste it,right?
Posted By: RusselB Re: Anti idle script - 13/07/08 09:42 PM
Yes, Remotes is the correct section, and note that the code uses the ON CONNECT event, so it won't activate until you actually make the connection. ie: If you are already connected to the network, you will have to disconnect, then reconnect.

If the code still doesn't work, then there's a possibility that access to the server raw command structure is limited to certain people (eg: ircops). You might be able to get confirmation of this in the network's help channel (usually #help)
Posted By: mbab Re: Anti idle script - 13/07/08 09:46 PM
hmm its not working
Does it matter if i have few other scripts in remotes?
Posted By: maroon Re: Anti idle script - 13/07/08 10:20 PM
do you mean you don't see this timer listed as an active timer when you do "/timer", or that you don't see the PONG reply from the server?
Posted By: mbab Re: Anti idle script - 13/07/08 10:26 PM
[23:45:06] * PONG from bender.us.utonet.org: bender.us.utonet.org


and when i type /timer it says this:

* No active timers


Posted By: maroon Re: Anti idle script - 14/07/08 02:02 AM
paste exactly what you put into remotes - if you put the 1 before the 60, then it executed once then quit.
Posted By: argv0 Re: Anti idle script - 14/07/08 03:36 AM
Oops, I'm so used to making 1 rep timers that I wrote the code quickly and ran off.

@OP: use this code:

Code:
ON *:CONNECT:.timerANTIIDLE $+ $network 0 60 raw -q ping $server
Posted By: mbab Re: Anti idle script - 14/07/08 03:40 PM
Oh well talked to ircop,he told me i could get banned if i use that script lol
Posted By: RoCk Re: Anti idle script - 14/07/08 04:42 PM

The person you talked to probably doesn't have a clue or they wouldn't have made any statements like that. I highly doubt any IRCop would ever know (or care) that you're pinging the server every 60 seconds. Also, pinging the server will not reset your idle time in your /whois, I believe that only sending a channel message (message / action / notice / CTCP) would reset it.
Posted By: argv0 Re: Anti idle script - 14/07/08 06:46 PM
Getting banned for sending a message to a server every 60 seconds would be like banning you for typing more than one line of text to a channel every minute. If their server can't handle the load of one message every 60 seconds they need to stop administrating an IRC server and/or you need to leave the network. mIRC actually sends messages of its own every ~60 seconds (if you have notify enabled) as does the server, so really, they're nuts if they think it doesn't happen. You'll be fine with that script.
Posted By: mbab Re: Anti idle script - 14/07/08 10:00 PM
Well i wanted my time in whois to be always resetted to max few secs.I thought the script you gave me will do that
Posted By: argv0 Re: Anti idle script - 15/07/08 03:20 AM
you can /msg $me hi or something instead of a ping to reset your idle time as mentioned above. "anti-idle" to me means keeping your connection to a server, not changing your "idle time" for aeshetic reasons.
© mIRC Discussion Forums