Euforia33

Euforia33

Joined
Oct 15, 2009

Activity Stream

Euforia33 commented on a Page, Anti-Idle script.  -  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  
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.