|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Hi all,
I am having trouble on certain servers and there IRC Operators, I leave my machine connected to the server over night and so on. The channel that I part own has not yet been registered with Babyserv so hence me staying online over night.
The problem is that they constanly monitor users idle time, anything over 9000 seconds and its an auto kill from of the operators... Now I would love an "Anti-idle" script that after a certain time it will automatically start "Anti idling". Could any one help with my problem?
Thankyou Oxedizer
sub-zero.homeip.net:6667
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
alias anti.idle {
if ($idle >= 3600) { msg #channel blah blah blah
}
}
on *:connect:{
if ($server == yourserverhere) {
timer 0 10 anti.idle
}
}
the above is pretty simple but should work pm me if u would like a little more to it ie on and off switches etc im sure someone will come with something more detailed anyways edit i went ahead and added some stuff
#antiidle on
alias anti.idle.on {
if (%idle != on) {
set %idle on
echo 5 -a anti-idle is on.
}
else {
echo 5 -a anti-idle is already on.
}
}
alias anti.idle.off {
if (%idle != off) {
set %idle off
echo 5 -a anti-idle is off.
}
else {
echo 5 -a anti-idle is already off.
}
}
on *:Connect: { .timeridle 0 10 anti.idle }
alias anti.idle {
if (($idle >= 3600) && (%idle = on)) {
msg [color:red]#channel[/color] blah blah blah
}
}
menu nicklist {
anti idle
.on {
anti.idle.on
}
.off {
anti.idle.off
}
}
#antiidle end
the above is untested but should work fine replace #channel with your channel and the blah blah blah with the message you want
Last edited by ricky_knuckles; 25/02/05 05:15 AM.
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Feb 2004
Posts: 206
Fjord artisan
|
Fjord artisan
Joined: Feb 2004
Posts: 206 |
alias anti.idle {
if ($idle >= 3600) { msg #channel blah blah blah
}
}
on *:connect:{
if ($server == yourserverhere) {
timer 0 10 anti.idle
}
}
... The following code is even simpler, and can be added to the Perform section of mIRC or into an "On Connect" statement in remotes: /timerAlive 0 500 /msg $me This is to stay alive at $!time Naturally, some modification may be needed for multi-server use (scon etc). As per a previous thread, this could also be modified by closing the message window immediately (unless you always message yourself with other things), so that you don't even know it has been triggered! This last point is only valid if you don't send all messages to the one window. The important difference between my snippet and Ricky's is the way I have used "msg". Ricky sends his message to the channel, I only send it to myself. Thus if anyone is sitting in the channel they can see the spurious "chat" that Ricky puts out at very regular intervals. Whether or not this is annoying depends on the chatters in the channel! With my method, only I know (and of course the server) that these messages exist. Oh, another difference is that I am not continually checking "$idle". This means that my timer only goes off when told. Will this impact on or improve performance? Perhaps not so anyone can notice, but it does remove a step within the code. If your server supports it, you can also use "/notice". Obviously, you may want to take the best of both codes. In this case, I would suggest moving the "/msg" into an alias and then calling that alias with the timer. The advantage of this is that you can insert multi-server support. Again, the timer line goes in the "perform" or "on connect" section. /timerAlive 0 500 myAliveMessage
alias myAlliveMessage {
; other code as required (e.g. multi-server stuff)
msg $me This is to stay alive at $time
; other code as required (e.g. close message window)
} Cheers, DK
Darwin_Koala
Junior Brat, In-no-cent(r)(tm) and original source of DK-itis!
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
what is performs but a built in on connect i actually i have a version that msgs a channel i own eevry 30 minutes with a random line of text from a .txt
on *:connect:{
//.timer 0 1800 msg #channel $$!read(babble.txt,n)
}
but as im sure you saw he was a tinsy bit vague on what he wanted giving more boundaries things would have been different finally i assume that both codes are viable and it is up to him
Last edited by ricky_knuckles; 25/02/05 06:10 AM.
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
If that's ZAnet, be careful... You may end up banned from the network. From the networks rules. The same applies to people idling in channels, especially the smaller channels: you'll be branded a bot and k:line'd (or worse) until you get a clue to go offline when you're not there.
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
im sure someone of your abilities could give hima way around that if u can figure out how they check
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
(S)he probably could, but it's a bit lame to help him break network rules.
New username: hixxy
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Why would I circumvent the owners of the networks rules? BTW: OP agreed to these rules by connecting to the network.
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Thats wonderfull stuff, thank you very much, I have edited it so I can use it in a tickable dialog window that I made. Now the thing is that I need my CTCP finger responce time to match my idle time.
I have changed the msg #Channel to msg $nick so it doesnt irritate other users within that channel.
Last edited by Skeletor; 25/02/05 06:37 AM.
sub-zero.homeip.net:6667
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
in that case either make it a notice or use closemsg $nick by the by wouldnt it be $me rather than $nick
im mildly amused that you can do dialogues and not script an anti idle but i guess people take all different paths
good luck on yours
Last edited by ricky_knuckles; 25/02/05 06:26 AM.
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
In additon: I have heard that IRC operator can observe any pvt sessions that is going on...so what I have done is made it so that I start up a DCC chat sessions with my self and every 10 seconds thereafter it will repeat a random line from a .txt file.
Now I aslo belive that IRC Operator can sit hidden in any channel, I would love to be able to scan for them.. the scanner that I wrote only picks them up when they are active on the server and makes the nicks a differant colour. I am unable to see weather or not the are observing.
Last edited by Skeletor; 25/02/05 06:40 AM.
sub-zero.homeip.net:6667
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
I have heard that IRC operator can observe any pvt sessions that is going on If they are eavesdropping on pvt messages then quickly find a new network. so what I have done is made it so that I start up a DCC chat sessions with my self and every 10 seconds thereafter it will repeat a random line from a .txt file That won't affect you idle time according to the server I aslo belive that IRC Operator can sit hidden in any channel Again, swiftly find yourself a better network. In short, move to a friendlier network
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Yea, I noticed that about the dcc sessions, and it would just make loads of new dcc connection windows so i scraped that idea. now the thing i would leave the server but i have formed many relationships with people and there is a forever growing skype community that we have formed.
now i am still battleing to get it to reset my CTCP Finger time, is there away of cloaking the responce
CTCP Clocking would be great
sub-zero.homeip.net:6667
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Seeing as access to registering channels with "babyServ" ( ) is restricted to Opers, can't you ask one to reg it for you?
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
have them come too i know of a server you can go to ircx and pretty liberal small i know most of the operators
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Thank you for all your help, however I am still having trouble with resetting my CTCP finger timer.
Now what I have noticed that when I actually make a key stroke my finger time is reset to zero, but when using the anti-idle only my whois idle time is reset. here is the exact code that i am using:
#antiidle on alias anti.idle.on { if (%idle != on) { set %idle on echo -a 8,4 Anti-Idle Is On. } else { echo -a 8,4 Anti-Idle Is Already On. } } alias anti.idle.off { if (%idle != off) { set %idle off echo -a 8,4 Anti-Idle Is Off. } else { echo -a 8,4 Anti-Idle Is Already Off. } } on *:Connect: { .timeridle 0 5 anti.idle } alias anti.idle { if (($idle >= 180) && (%idle = on)) { msg $me ... | closemsg $nick } }
menu nicklist { VTEC §cript® Anti-Idle .On { anti.idle.on } .Off { anti.idle.off } } #antiidle end
on *:dialog:start:sclick:80:{ if ($did(80).state == 0) { /anti.idle.off } elseif ($did(80).state == 1) { /anti.idle.on } }
sub-zero.homeip.net:6667
|
|
|
|
Joined: Jan 2005
Posts: 192
Vogon poet
|
Vogon poet
Joined: Jan 2005
Posts: 192 |
.../ now i am still battleing to get it to reset my CTCP Finger time, is there away of cloaking the responce CTCP Clocking would be great I belive it's /resetidle that you are looking for... so to use your current alias it will be alias anti.idle {
if (($idle >= 180) && (%idle = on)) {
msg $me ...
closemsg $nick
[color:red]resetidle[/color]
}
}
echo -a $signature
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Hmm, just a thought but could you use the /resetidle N command?
|
|
|
|
Joined: Jan 2005
Posts: 192
Vogon poet
|
Vogon poet
Joined: Jan 2005
Posts: 192 |
Hmm, just a thought but could you use the /resetidle N command? from mirc.hlp: /resetidle [seconds] This resets the $idle identifer to zero or to the number of seconds you specify. If you dont specify nothing it resets your idle to zero if you use eg. /resetidle 37 then it sets your idle to 37secs
echo -a $signature
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Thank you very much!!! It works perfectly *Bows* to all that had input.
Last edited by Skeletor; 26/02/05 03:15 AM.
sub-zero.homeip.net:6667
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Another Problem with my code: #antiidle on alias anti.on { if (%idle != on) { set %idle on echo -a Anti Idle Is On } else { echo -a Anti Idle is Already } } alias idle.off { if (%idle != off) { set %idle off echo -a Anti Idle Is Off } else { echo -a Anti idle Is Already Off. } } on *:Connect: { .timeridle 0 1 anti } alias anti { if (($idle >= 1 ) && (%idle = on)) { /msg $me ... /resetidle 1 } } #antiidle end once on, it will work perfectly, but if i uncheck the tickbox, there is this error... · · Error : /anti is an unknown command Now that is repeated every second, please help.
sub-zero.homeip.net:6667
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Hi Skeletor, I just made a slight alteration in your script.
You had anti.on and idle.off, so I changed it to anti.off just incase that was causing it.
[code] #antiidle on alias anti.on { if (%idle != on) { set %idle on echo -a Anti Idle is on. } else { echo -a Anti Idle is already on. } }
alias anti.off { if (%idle != off) { set %idle off echo -a Anti Idle is off. } else { echo -a Anti Idle is already off. } }
on *:Connect: { .timeridle 0 1 anti }
alias anti { if (($idle >= 1 ) && (%idle = on)) { msg $me ... resetidle 1 } } #antiidle end
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Nope, no joy mate, this is getting the better of me now, does that script work on your side?
:Added:
its seems if i use /anti.on and /anti.off the script works 100%, but its when i use the check box through a dialog window i made, here is the code for the dialog window:
Taken from the Dialog: check "Anti-Idle", 2, 5 12 50 10
The "on" statement:
on *:dialog:Prot:sclick:2:{ if ($did(2).state == 0) { /disable #antiidle | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® } elseif ($did(2).state == 1) { /enable #antiidle | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle ON. 1,3 4,1V1,3TEC 4,1§1,3cript® } }
And the init:
on *:Dialog:Prot:init:0: { if ($group(#antiidle) == on) { did -c $dname 2 } }
Last edited by Skeletor; 28/02/05 12:26 PM.
sub-zero.homeip.net:6667
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Right i cracked it!!!!
here was the problem:
on *:Dialog:Prot:init:0: {
if ($group( #anti.on ) == on) { did -c $dname 2 }
on *:dialog:Prot:sclick:2:{ if ($did(2).state == 0) { /anti.off | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® } elseif ($did(2).state == 1) { /anti.on | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle ON. 1,3 4,1V1,3TEC 4,1§1,3cript® } }
#anti.on alias anti.on { if (%idle != on) { set %idle on echo -a Anti Idle Is On. } else { echo -a Anti Idle Is Already On. } }
alias anti.off { if (%idle != off) { set %idle off echo -a Anti Idle Is Off. } else { echo -a Anti Idle Is Already Off. } }
on *:Connect: { .timeridle 0 1 anti }
alias anti { if (($idle >= 1 ) && (%idle = on)) { msg $me ... resetidle 1 } } #anti.on end
/me buys SladeKraven A Cold One. /timer 0 2 LOL
Last edited by Skeletor; 28/02/05 12:40 PM.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Way to go, dude.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Make it a cold diet coke please dude, my 18th isn't till March 22nd lol.
Last edited by SladeKraven; 28/02/05 12:42 PM.
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Hey...gues what?...It me again...
on *:dialog:Prot:sclick:2:{ if ($did(2).state == 0) { /anti.off | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® | /closemsg $me /time 0 2 } elseif ($did(2).state == 1) { /anti.on | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle ON. 1,3 4,1V1,3TEC 4,1§1,3cript® } } The above is what i am using now, now it works perfectly, but when is select the check box, then close it the dialog, then reopen it, then Check box is no longer selected.
on *:dialog:Prot:sclick:2:{ if ($did(2).state == 0) { /disable #anti | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® | /closemsg $me /time 0 2 } elseif ($did(2).state == 1) { /enable #anti | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle ON. 1,3 4,1V1,3TEC 4,1§1,3cript® } }
This will also work but with the error /anti unknown command, but the check box will stay ticked.
sub-zero.homeip.net:6667
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Vars should do the trick, this is the above code you specified but just modified using VARS.
on *:dialog:Prot:sclick:2:{
if ($did(2).state == 0) {
anti.off
echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle OFF. 1,3 4,1V1,3TEC 4,1§1,3cript®
set %anti 0
closemsg $me
/time 0 2
}
elseif ($did(2).state == 1) {
anti.on
echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle ON. 1,3 4,1V1,3TEC 4,1§1,3cript®
set %anti 1
}
}
on 1:Dialog:Prot:init:0: {
if (%anti == 1) { did -c Prot 2 }
}
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
OP
Vogon poet
Joined: Feb 2005
Posts: 185 |
Thankx a Million Mate
* Skeletor Buys SladeKraven an Ice Cold Diet [color:red] Coke
Last edited by Skeletor; 01/03/05 03:47 PM.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
You're welcome mate. * Andy gulps the diet coke. Thanks!Nothing like a diet coke break.
|
|
|
|
|