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 } }
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
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 }
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.