Anti-Idle script.

By Bigmomma on Aug 02, 2006

Just put this into your remotes (Alt+R) then click on commands (Top of your screen) and click on anti-idle click on to put it on.

menu menubar {
  Anti-Idle
  .On:/timeridle 0 120 anti-idle | Set %anti-idle $true
  .Off:/timeridle off | Set %anti-idle $false
}
on *:connect: { if (%anti-idle == $true) { .timeridle 0 120 /raw pong FD411636 } }

Comments

Sign in to comment.
PuNkTuReD   -  Oct 24, 2009

vary true, thanks for the fix up there Marty

 Respond  
Euforia33   -  Oct 24, 2009

Hi PunkTuReD,

There is a small error in your code:

menu * {
Ping-Pong:$iif(%pp,antioff,pingpongon)
Anti-Idle:$iif(%antiidle,antioff,antion)
}

When you click ping-pong once it will enable but when you click it again it disables the anti-idle.

It should be:

menu * {
Ping-Pong:$iif(%pp,pingpongoff,pingpongon)
Anti-Idle:$iif(%antiidle,antioff,antion)
}
on 1:ping: { $iif(%pp,raw pong $1 wannaplaypingpong,) }
on 1:pong: { $iif(%pp,raw ping $1 wannaplaypingpong,) }
alias pingpongoff { unset %pp | echo -a Ping-Pong has been disabled. }
alias pingpongon { set %pp on | echo -a Ping-Pong has been enabled. }
alias antioff { timeridle off | unset %antiidle | echo -a Anti-Idle has been disabled. }
alias antion { timeridle 0 120 scid -atM1 antiidle | set %antiidle on | echo -a Anti-Idle has been enabled. }
alias antiidle { msg $me Anti-Idle }

Euforia33

 Respond  
Snarky   -  Jul 18, 2009

I copied this code into the remote in mirc. Went to Commands > Anti Idle > ON
And now I get this message on my cyanide-x page : ANTI-IDLE Unknown command

Any ideas on what to do?

 Respond  
Cheiron   -  Jan 19, 2009

dayum you the man!!! > [09:37] > Anti-Idle
[09:37] Anti-Idle
[09:39] > Anti-Idle
[09:39] Anti-Idle
[09:41] > Anti-Idle

look at that! works a bomb. nice one PunkTuReD

 Respond  
PuNkTuReD   -  Jan 18, 2009

im nt too sure if any script could stop you from pinging out,
if your client is frozen, you wont be able to reply to pings so youll end up being disconnected.
mIRC also has its own ping pong thing im pretty sure
try this and let me know how it goes, i cant test it too much as i dont have a idle or ping problem

menu * {
  Ping-Pong:$iif(%pp,antioff,pingpongon)
  Anti-Idle:$iif(%antiidle,antioff,antion)
}
on 1:ping: { $iif(%pp,raw pong $1 wannaplaypingpong,) }
on 1:pong: { $iif(%pp,raw ping $1 wannaplaypingpong,) }
alias pingpongoff { unset %pp | echo -a Ping-Pong has been disabled. }
alias pingpongon { set %pp on | echo -a Ping-Pong has been enabled. }
alias antioff { timeridle off | unset %antiidle | echo -a Anti-Idle has been disabled. }
alias antion { timeridle 0 120 scid -atM1 antiidle | set %antiidle on | echo -a Anti-Idle has been enabled. }
alias antiidle { msg $me Anti-Idle }
 Respond  
Cheiron   -  Jan 18, 2009

reckon you could do a take on this and actually get it working? based on what you have done so far, script wise, and what i have used of yours so far and still do... this would be a ideal feature

 Respond  
PuNkTuReD   -  Jan 18, 2009

and this is also from the base code

.On:/timeridle 0 120 anti-idle

but there is no anti-idle
alias

 Respond  
Cheiron   -  Jan 18, 2009

that was with the base original code submitted not Noutrious's version

 Respond  
PuNkTuReD   -  Jan 18, 2009

i think you got that cheiron because,
he calls for an alias which he didnt include in the code

 Respond  
Cheiron   -  Jan 18, 2009

loaded it.. ran it.. got this in status window

-
ANTI-IDLE Unknown command

ANTI-IDLE Unknown command

that is on unrealircd 3.2.7 running anope and on mirc 6.35

 Respond  
Noutrious   -  Aug 07, 2006

i would suggest:
;For menus
menu menubar {
Anti-Idle
.On:/timeridle 0 120 anti-idle | Set %anti-idle 1
.Off:/timeridle off | unset %anti-idle
}
;Start script on connect
on *:connect: { if (%anti-idle) { .anti-idle } }
;Aliases
alias anti-idle {
.timeridle 0 120 /raw pong FD411636
}

Hasnt tested, may have some errors, but at least you get the idea.

 Respond  
Bigmomma   -  Aug 04, 2006

Oh sorry about it. It\'s kinda the same.

 Respond  
Pibb   -  Aug 03, 2006

I was aware of what the name meant, just not the reason of the code. But now I do.

 Respond  
Bigmomma   -  Aug 03, 2006

I use it because I get disconnected from the SERVER when people aren\'t talking so I made this script that will send the server a message to keep connected.

 Respond  
Kurdish_Assass1n   -  Aug 03, 2006

Anti Idle = Anti means like to prevent, or to be opposite of, Idle means to not talk for a long time, so, it means preventing idle time, lol :P

 Respond  
Pibb   -  Aug 02, 2006

Would you mind explaining what this does exactly?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.