mIRC Home    About    Download    Register    News    Help

Print Thread
Anti idle script #202058 13/07/08 06:34 PM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
Tried several ones and none are working
Anyone has any?:)

Re: Anti idle script [Re: mbab] #202060 13/07/08 06:36 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Code:
ON *:CONNECT:.timerANTIIDLE 1 60 raw -q ping $server


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Anti idle script [Re: argv0] #202064 13/07/08 07:30 PM
Joined: Jan 2004
Posts: 1,437
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,437
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


Re: Anti idle script [Re: maroon] #202065 13/07/08 07:35 PM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
So timer is 60 seconds i guess?

Re: Anti idle script [Re: mbab] #202068 13/07/08 07:45 PM
Joined: Jan 2004
Posts: 1,437
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,437
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.

Re: Anti idle script [Re: maroon] #202074 13/07/08 08:27 PM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
Hmm pasted that into remotes and it didnt work=/

Remotes is where i should paste it,right?

Re: Anti idle script [Re: mbab] #202075 13/07/08 09:42 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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)

Re: Anti idle script [Re: RusselB] #202076 13/07/08 09:46 PM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
hmm its not working
Does it matter if i have few other scripts in remotes?

Re: Anti idle script [Re: mbab] #202077 13/07/08 10:20 PM
Joined: Jan 2004
Posts: 1,437
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,437
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?

Re: Anti idle script [Re: maroon] #202078 13/07/08 10:26 PM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
[23:45:06] * PONG from bender.us.utonet.org: bender.us.utonet.org


and when i type /timer it says this:

* No active timers



Last edited by mbab; 13/07/08 10:27 PM.
Re: Anti idle script [Re: mbab] #202085 14/07/08 02:02 AM
Joined: Jan 2004
Posts: 1,437
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,437
paste exactly what you put into remotes - if you put the 1 before the 60, then it executed once then quit.

Re: Anti idle script [Re: maroon] #202086 14/07/08 03:36 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Anti idle script [Re: argv0] #202097 14/07/08 03:40 PM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
Oh well talked to ircop,he told me i could get banned if i use that script lol

Re: Anti idle script [Re: mbab] #202098 14/07/08 04:42 PM
Joined: Dec 2002
Posts: 2,022
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,022

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.

Re: Anti idle script [Re: mbab] #202102 14/07/08 06:46 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Anti idle script [Re: argv0] #202106 14/07/08 10:00 PM
Joined: Feb 2008
Posts: 34
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2008
Posts: 34
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

Re: Anti idle script [Re: mbab] #202112 15/07/08 03:20 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"