mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jun 2004
Posts: 3
hey, can anyone help me plzz, i want to know how you make a script say how long a user has been idle and what there status is, (eg. away or not away)

thanks cool

Joined: Jun 2004
Posts: 133
S
Vogon poet
Offline
Vogon poet
S
Joined: Jun 2004
Posts: 133
There are a couple of ways to do this, for instance their server Idle time can be found in a whois reply on some Networks if you use the command

/whois nick nick
The whois will create a raw reply to you wich is in the form of raw 317 , if you'd like to view raw replies you can add a line to your remotes Alt + R like the one below and it will familiarise you with what raw replies are

raw *:*: echo -a $numeric $1-

you could then add a raw 317 to your remotes
raw 317:*:{
echo -a Idle: $duration($3)
halt
}

this would show their idle time in your active window. after you /whois nick nick

If the idle time you are after is how long the person has been idle Only in a certain channel, what you are looking for is
this example
//echo -a $duration($nick(#mirc, scot).idle)
would return my channel idle time on #mIRC



Give a man a fish feed him for a day, Teach him to fish, feed him for life
Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
the are difrents about general Idle and channel Idle

what ecaxtli dou you need?

Joined: Jun 2004
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jun 2004
Posts: 3
i want it to say like...

$nick has been idle for $idletime

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
//echo -a $duration($nick($chan,nick).idle)


New username: hixxy
Joined: Jun 2004
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jun 2004
Posts: 3
thanks for the reply for the idle script, but i still cant work out the away one, this is what the script is:

On *:TEXT:*!info*:#: {
if ($2 == $null) {
msg $chan Please put a nickname after !info
}
else {
notice $nick Current status: %away
if ($away($2) == $true)) {
%away = Away
}
if ($away($2) == $false)) {
%away = Active
}

}
}
}

but ofcoarse it wont work... please fix it and post it back, thanks! cool

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
From /debug @debug after /whois tidy_trax:

<- :Panamacity.PA.Undernet.Org 301 tidy_trax tidy_trax :t

You need to use: raw 301:*:{ } and /whois nick, $2 is the nickname, $3 is the away reason.


New username: hixxy

Link Copied to Clipboard