mIRC Home    About    Download    Register    News    Help

Print Thread
#3902 29/12/02 08:30 AM
Joined: Dec 2002
Posts: 3
B
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Dec 2002
Posts: 3
anyone here up for a mirc script challenge
i need a special script made
i want my bot to be able to reconnect split links
like /msg botname reconnect servername password
gotta be in userlist to use the bot command


#3903 29/12/02 09:14 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
In its simplest form:
Code:

on opers:TEXT:!connect*:?: .raw CONNECT $2-

Of course, your opers will still have to know which servers go on which hubs or they can just reconnect them to the same hub the leaf just dropped from (assuming you're not wasting time because the leaf already has autoconns set up). Your bot would also have to be globally opered (not such a good idea THERE). The above script will work if your opers are in the userlevel called opers.

/guser opers UserName 3

You could specify your default port in the connect command if there is only one that all your servers use.

/connect leaf [port [hub]]

like this:
Code:

on opers:TEXT:!connect*:?:{
  if (*.* iswm $3) .raw CONNECT $2 7878 $3
  else .raw CONNECT $2-
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard