anti idle,easy ping/pong

By PuNkTuReD on Jan 28, 2009

i did post this in another snippets comments,
but thought id bring it here to find easily

it will basically ping/pong the server when the server ping/pongs you
and message yourself every 2 minutes to stop your idle time climbing

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 $status $me }
raw 401:*: {
  if (connected isin $1-) && (%antiidle) { echo -s ***** SassIRC Anti-Idle | halt }
}

Comments

Sign in to comment.
Chinshy   -  Sep 26, 2011

it always give me this

Error: No Such Nick (connected)

 Respond  
PuNkTuReD   -  Feb 27, 2010

check that a script that is loaded in a file before this one, has no bracket mismatches.
or move the order of your scripts so that this one is processed first, if it then works, you know that a previous script has a bracket mismatch.

 Respond  
Bloodspot   -  Feb 27, 2010

hi
yes im sure, i opend the editor and clicked on remote and paste it there, saved the file, unload and load it again

 Respond  
PuNkTuReD   -  Feb 26, 2010

are you sure it was put in a remote file?

 Respond  
Bloodspot   -  Feb 26, 2010

Hi
I know is a thread but if i use the snippet i get all time in channel follow message:

•• error: unknown command ( MENU )
•• error: unknown command ( PING-PONG:$IIF(%PP,PINGPONGOFF,PINGPONGON) )
•• error: unknown command ( ANTI-IDLE:$IIF(%ANTIIDLE,ANTIOFF,ANTION) )
•• error: unknown command ( ON )
•• error: unknown command ( ON )

i used Cheirons snippet in the remote edit window with mirc 6.34

 Respond  
Fujitsu   -  Jul 17, 2009

and also can avoid from others *OPs member to know that im current at away mode LOL! realli cool addons many thanx

 Respond  
Fujitsu   -  Jul 17, 2009

thanx dude. .its realli helping me from avoid my idle time from climbing

 Respond  
Aucun50   -  Jan 28, 2009

Wish i could test :( 2/3 of my hard drives fried plus i'm on linux.

 Respond  
PuNkTuReD   -  Jan 28, 2009

ok all fixed, enjoy

 Respond  
Cheiron   -  Jan 28, 2009

let me know if it works :)

 Respond  
PuNkTuReD   -  Jan 28, 2009

yea the ping pong only goes to status coz its a ping/pong to the server

i cant just echo the antiidle to the status screen cos the echo command
wont stop your idle time from climbing

 Respond  
Cheiron   -  Jan 28, 2009

the pingpong goes to status only

the antidle goes to pm

that is how it stood when i tested it

 Respond  
PuNkTuReD   -  Jan 28, 2009

ok edited thanks,
ive only got it going to pm,
because im not sure how to msg the status window,
and using "echo -s" doesnt effect your idle time.

ok so ive kept it going to pm, but ive made it close the pm window
hopefully will be less annoying

 Respond  
Cheiron   -  Jan 28, 2009

you need to edit that PunkTuReD to this....

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 }

reason being... on your version there is an error with the turning off of the different ones.. the pingpong and the idle. 1 will turn off, the other wont.
my bug fix has corrected that for you.

also.. you might want to change the title of the snippet to make it more attractive..
and lose the anti-idle going to the pm box.. keep it in status window only.

otherwise nice code, gets a like and a 6

 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.