mIRC Homepage
Posted By: Dave4989 Restart script - 01/04/06 07:09 PM
Forgive me if i put this in the wrong section but i found it to be half "help" and "script" so...

I was making a !restart type command for the cs bot on the game renegade and well, see for your self.


on *:TEXT:!botrestart:#batcave: {
if ($nick == [BBF]Dave) {
msg #abbfserv1 The CrazyAOW Bot will now restart on $nick $+ 's command.
renrem msg The Bot will now restart, Please standby.
/run C:\David\OTHER\CS\mirc.exe
/exit
/quit
}
else {
notice $nick 0,4 You do not have access to this command. 0,4
}
}



Basicly what this does it close the current irc and reopens it.
It works so far only i get a "comfirm exit" window. How would i take this off...
Posted By: RusselB Re: Restart script - 01/04/06 07:48 PM
mIRC Options - Other

Uncheck everything in the sections titled:
When closing status window, confirm if
When closing mIRC, confirm if
Posted By: KidSol Re: Restart script - 02/04/06 02:24 AM
Code:
on *:text:*!botrestart*:#: {
 if ($nick == [BBF]Dave) {
 if $1 == %c $+ shutdown {
    msg $chan The CrazyAOW Bot will now restart on $nick $+ 's command.
    amsg Bye!
    run C:\David\OTHER\CS\mirc.exe
    quit bye
    exit
  }
}
  

like this?
© mIRC Discussion Forums