mIRC Home    About    Download    Register    News    Help

Print Thread
Can I script mIRC to msg a bot when it goes online #60486 16/11/03 01:57 AM
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.

Re: Can I script mIRC to msg a bot when it goes online #60487 16/11/03 04:31 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
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.

Re: Can I script mIRC to msg a bot when it goes online #60488 16/11/03 05:05 AM
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?

Re: Can I script mIRC to msg a bot when it goes online #60489 16/11/03 05:17 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
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.

Re: Can I script mIRC to msg a bot when it goes online #60490 16/11/03 06:11 AM
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 }

Re: Can I script mIRC to msg a bot when it goes online #60491 16/11/03 01:40 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
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.

Re: Can I script mIRC to msg a bot when it goes online #60492 17/11/03 07:26 AM
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?


Re: Can I script mIRC to msg a bot when it goes online #60493 17/11/03 06:54 PM
Joined: Dec 2002
Posts: 145
G
gemeau50 Offline
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
on *:notify: {
if ...
elseif ...
elseif ...
elseif ...
else ...
}