mIRC Homepage
Posted By: boblogic bot help - 29/12/02 08:30 AM
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

Posted By: Hammer Re: bot help - 29/12/02 09:14 AM
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-
}
© mIRC Discussion Forums