mIRC Home    About    Download    Register    News    Help

Print Thread
/set online and offlline help :P??? #94064 13/08/04 07:25 PM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline OP
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

Re: /set online and offlline help :P??? #94065 13/08/04 07:41 PM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
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
 

Re: /set online and offlline help :P??? #94066 13/08/04 07:52 PM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline OP
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??

Re: /set online and offlline help :P??? #94067 13/08/04 08:11 PM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
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.
Re: /set online and offlline help :P??? #94068 13/08/04 08:24 PM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline OP
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

Re: /set online and offlline help :P??? #94069 13/08/04 08:35 PM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline OP
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

Re: /set online and offlline help :P??? #94070 13/08/04 08:40 PM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
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.