mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
I'm trying to find a way to see if a certain person is online.
In this case it would be my bot.

So, I use the alias /botname
Then the script should eighter invite my bot (if already online), and otherwise load the bot, using /run etc.

But how can I tell if it is already online?

Thanks smile

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
you might try something like this:
alias botname ison botname
raw 303:*:{ $iif($2,echo -a $2 online,-run command here-) }

Joined: May 2006
Posts: 25
A
Ameglian cow
Offline
Ameglian cow
A
Joined: May 2006
Posts: 25
You can use the 'On Notify' event (/help On Notify)


==================
Abstraction is art.
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Thx a lot smile

I got the raw script thingie to work.

In remote:
Code:
alias botname ison botname
raw 303:*:{
  $iif($2,bringbot,loadbot)
}


In aliases:
Code:
/bringbot /invite botname $active
/loadbot /run "C:\pathname\mIRC.exe"


Thanks a lot guys smile

Last edited by OrionsBelt; 06/05/06 10:33 PM.
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
MikeChat or anyone,

Do you have any idea how to expand this with an address check?
Like now it checks for botname, but other people can be using the bots name. Is there a way to add an $address check in it?

Thanks again

Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Ok never mind my question.
I see now that I can just replace the $iff with a normal if-then-else statement. Works like a charm now wink


Link Copied to Clipboard