mIRC Homepage

Need some help with a script!

Posted By: Skinnyturd

Need some help with a script! - 25/06/04 02:57 PM

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
Posted By: ScoT

Re: Need some help with a script! - 25/06/04 03:33 PM

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

Posted By: tsoglanos

Re: Need some help with a script! - 25/06/04 03:35 PM

the are difrents about general Idle and channel Idle

what ecaxtli dou you need?
Posted By: Skinnyturd

Re: Need some help with a script! - 25/06/04 04:02 PM

i want it to say like...

$nick has been idle for $idletime
Posted By: tidy_trax

Re: Need some help with a script! - 25/06/04 04:04 PM

//echo -a $duration($nick($chan,nick).idle)
Posted By: Skinnyturd

Re: Need some help with a script! - 25/06/04 04:49 PM

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
Posted By: tidy_trax

Re: Need some help with a script! - 25/06/04 04:53 PM

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.
© 2020 mIRC Discussion Forums