mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Joined: Feb 2005
Posts: 185
S
Vogon poet
OP Offline
Vogon poet
S
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
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
Code:
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
Code:
#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
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Feb 2004
Posts: 206
Quote:
Code:
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:
Code:
 /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.
Code:
 /timerAlive 0 500 myAliveMessage


Code:
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
R
Fjord artisan
Offline
Fjord artisan
R
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
Code:
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
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
If that's ZAnet, be careful... You may end up banned from the network.
Quote:
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
R
Fjord artisan
Offline
Fjord artisan
R
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
T
Hoopy frood
Offline
Hoopy frood
T
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
I
Hoopy frood
Offline
Hoopy frood
I
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
S
Vogon poet
OP Offline
Vogon poet
S
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
R
Fjord artisan
Offline
Fjord artisan
R
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
S
Vogon poet
OP Offline
Vogon poet
S
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
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
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.

Quote:
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

Quote:
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 laugh

Joined: Feb 2005
Posts: 185
S
Vogon poet
OP Offline
Vogon poet
S
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
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Seeing as access to registering channels with "babyServ" (grin) is restricted to Opers, can't you ask one to reg it for you?

Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
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
S
Vogon poet
OP Offline
Vogon poet
S
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
Offline
Vogon poet
Joined: Jan 2005
Posts: 192
Quote:
.../ 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
Code:
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
S
Hoopy frood
Offline
Hoopy frood
S
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
Offline
Vogon poet
Joined: Jan 2005
Posts: 192
Quote:
Hmm, just a thought but could you use the /resetidle N command?


from mirc.hlp:
Quote:
/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
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
grin

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

Page 1 of 2 1 2

Link Copied to Clipboard