mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 24
I
Iceflow Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Sep 2003
Posts: 24
is the re any way to get mIRC to automaticaly /msg a xdcc bot when it comes online?

Like:
if <xdcc bot> online
/msg <xdcc bot> xdcc send #

or something like that. I am new to scripting but I am a very fast learner and would like to take the time to learn.

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Add the nick to your notify list by typing /notify nickname, and put this script in the remote...
  • On *:notify: if $nick == <bot name> { msg $nick xdcc send #N }
This event will trigger also when you are connecting to the server and the bot is already on.

Joined: Sep 2003
Posts: 24
I
Iceflow Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Sep 2003
Posts: 24
How do I make that work for a particular network/channel?

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You can check: if $nick == <bot nick> && $network == <network name> { do stuff }

The notify system is global and triggers once a user is logging on the server, no matter what channels they choose to join.

Joined: Sep 2003
Posts: 24
I
Iceflow Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Sep 2003
Posts: 24
Just want to clarify things:

So if I put this in my remorte script then when the bots goes online it will make it send me stuff?

On *:notify: if $nick == <tds-p0009> { msg $tds-p0009 xdcc send #1 }
On *:notify: if $nick == <airc-043> { msg $airc-043 xdcc send #2 }

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You can't have two similar events in the same remote file, because only the first one will work. Try this one,
  • On *:notify: if $nick == tds-p0009 { msg $nick xdcc send #1 } | elseif $nick == airc-043 { msg $nick xdcc send #2 }
and make sure they are in your notify list.

Joined: Sep 2003
Posts: 24
I
Iceflow Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Sep 2003
Posts: 24
How would I go about messaging 5 different bots when they came online?

could I just keep using the elsif term?


Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
on *:notify: {
if ...
elseif ...
elseif ...
elseif ...
else ...
}


Link Copied to Clipboard