mIRC Home    About    Download    Register    News    Help

Print Thread
bit of help please :) #111400
15/02/05 01:53 PM
15/02/05 01:53 PM
Joined: Mar 2004
Posts: 359
USA
L
LostServ Offline OP
Fjord artisan
LostServ  Offline OP
Fjord artisan
L

Joined: Mar 2004
Posts: 359
USA
Code:
on 1:text:!idle *:#: {
  .whois $2 $2
  set %idlechan $chan
}
raw 317:*: {
  msg %idlechan $deltok($deltok($1-,5-8,32),1-3,32)
  unset %idlechan
}


It returns a large number, i assume in seconds so i tried to wrap $duration() around it and it came up with more than the actual idle time. Can someone help me out? smile

Re: bit of help please :) #111401
15/02/05 01:55 PM
15/02/05 01:55 PM
Joined: Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics Offline
Hoopy frood
FiberOPtics  Offline
Hoopy frood

Joined: Feb 2004
Posts: 2,019
Leuven, Belgium
msg %idlechan $duration($3)


Gone.
Re: bit of help please :) #111402
15/02/05 01:59 PM
15/02/05 01:59 PM
Joined: Mar 2004
Posts: 359
USA
L
LostServ Offline OP
Fjord artisan
LostServ  Offline OP
Fjord artisan
L

Joined: Mar 2004
Posts: 359
USA
lol so much simpler, it works, thanks fiber

Re: bit of help please :) #111403
15/02/05 02:02 PM
15/02/05 02:02 PM
Joined: Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics Offline
Hoopy frood
FiberOPtics  Offline
Hoopy frood

Joined: Feb 2004
Posts: 2,019
Leuven, Belgium
Welcome,

btw you could add a small flood protection so that people can't abuse this script. Perhaps also a little something to not do a whois x times in y seconds on the same person, or an amount of z people.

These are only suggestions though, it's your script smile

Cya


Gone.
Re: bit of help please :) #111404
15/02/05 02:04 PM
15/02/05 02:04 PM
Joined: Mar 2004
Posts: 359
USA
L
LostServ Offline OP
Fjord artisan
LostServ  Offline OP
Fjord artisan
L

Joined: Mar 2004
Posts: 359
USA
im just messing around with different stuff in mirc script..i dont plan on using it too much

Re: bit of help please :) #111405
15/02/05 02:37 PM
15/02/05 02:37 PM
Joined: Dec 2002
Posts: 83
paris
D
dunkelzahn Offline
Babel fish
dunkelzahn  Offline
Babel fish
D

Joined: Dec 2002
Posts: 83
paris
Don't forgot to make at the end of a raw a "halt" command to stop the default display