|
Joined: Feb 2008
Posts: 34
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2008
Posts: 34 |
Tried several ones and none are working Anyone has any?:)
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
Joined: Oct 2003
Posts: 3,918 |
ON *:CONNECT:.timerANTIIDLE 1 60 raw -q ping $server
- argv[0] on EFnet #mIRC - "Life is a pointer to an integer without a cast"
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
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:
ON *:CONNECT:.timerANTIIDLE. [ $+ [ $network ] ] 0 60 raw -q ping $server
|
|
|
|
Joined: Feb 2008
Posts: 34
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2008
Posts: 34 |
So timer is 60 seconds i guess?
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
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.
|
|
|
|
Joined: Feb 2008
Posts: 34
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2008
Posts: 34 |
Hmm pasted that into remotes and it didnt work=/
Remotes is where i should paste it,right?
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
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)
|
|
|
|
Joined: Feb 2008
Posts: 34
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2008
Posts: 34 |
hmm its not working Does it matter if i have few other scripts in remotes?
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
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?
|
|
|
|
Joined: Feb 2008
Posts: 34
Ameglian cow
|
OP
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.
|
|
|
|
Joined: Jan 2004
Posts: 2,127
Hoopy frood
|
Hoopy frood
Joined: Jan 2004
Posts: 2,127 |
paste exactly what you put into remotes - if you put the 1 before the 60, then it executed once then quit.
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
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:
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"
|
|
|
|
Joined: Feb 2008
Posts: 34
Ameglian cow
|
OP
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
|
|
|
|
Joined: Dec 2002
Posts: 2,028
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,028 |
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.
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
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"
|
|
|
|
Joined: Feb 2008
Posts: 34
Ameglian cow
|
OP
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
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
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"
|
|
|
|
|