mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
id like to know if its possible and how
i could use /set to see wheather the notified nicks are on line or offline:
so i have set %name for the notified nicks
and id like to use
if ($notify(%name).ison == $true/$false)
to see whether its online or offline
then be able to set a %Status
so i could make an alias of nicks or something
and the script replies
so far with nick: [ %name ] status: [ %status ]
note:
i dont want to do it like
if (bla) { code}
elseif (bla) { code}
because its for a long script and it wont work anywhere so id be gratefull if u could show me how to
set a %status for online or offline
thanks alot
:P

Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
Code:
 
on 1:NOTIFY:{ command } returns online
on 1:UNOTIFY:{ command } returns Offline 

$notify(1).ison returns $true/$false for the first nick in list
$notify(nickname).ison returns $true/$false for the specify nick
 

Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
thanks for that
but i already know
and have the code needed i just need
to set %status
whick would say online
or offline
using the notify identifier
:P
help pls??

Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
just loop true your notify list

Code:
 
alias loop { var %m = 1 | while ($notify(%m)) { echo 4 -s * $notify(%m) $iif($notify(%m).ison,is online,is offline) | inc %m } }

 
Usage: /loop

Last edited by tsoglanos; 13/08/04 08:13 PM.
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
hmm. it works good for seeing whos
online but my script is totaly different
and runs on commands
and shows a big reply like
[ %bla ] nick: [ %name ] status: [ %online/offline? ]
is there anyway to use that so i could
place %online/offline using something like this alias so i can see if %name is on /off
the script returns all that are on my
list line after line
in this format
thanks alot for the help

Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
lmao,
so simple all i had to was put
[ $iif($notify(%name).ison,ONLINE,OFFLINE) ]
and it worked
thanks alot man
:PPP

Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
yeas just use

Code:
[ %bla ] nick: [ %name ] status: [ $iif($notify(%name).ison == $true,Online,Offline) ]
 [color:blue] Good night i go to bed now cya,. [/color]  

Last edited by tsoglanos; 13/08/04 08:42 PM.

Link Copied to Clipboard