mIRC Homepage
Posted By: Deep3D Start - 24/12/02 11:49 AM
I have made this script, and its runned every time the script starts.. but one problem:

/dialog -m config config
/disconnect

it dosent disconnect!!

Code:
  

/start { 
  /titlebar - The Reactor Script - %name
  /inc %times
  /emailaddr %user-id @user-id
  /identd on %user-id
  /fullname The Reactor Script %version $+ , %name
  /reset-start
  /clear -s
  /echo14 * This script has been started %times times!
  if %configis == empty {
    /titlebar - The Reactor Script - You need to do some configurations!
    /echo14 * You need to do some configurations!
    /dialog -m config config
    /disconnect
  }
  if %times == 2 { 
    /echo14 * Script configuration is done!
    /echo14 * Please don't rewrite this script, thank you!
  }
  /ignore -l
}

Posted By: theRat Re: Start - 24/12/02 11:58 AM
There's no connection when on start executes, so there's nothing to disconnect.
Posted By: Deep3D Re: Start - 24/12/02 12:00 PM
when i start the mirc, it connect to a server.. but it dont disconnect.. humm..
Posted By: Collective Re: Start - 24/12/02 12:07 PM
On start commands are done before mIRC connects to a server, so replace
/disconnect
with
/set %dc 1

and add

Code:
on *:CONNECT:{
  if ( %dc == 1 ) {
    disconnect
  }
}

to your script

Note: All those /s in your script aren't needed, so you could save time by not using them smile
Posted By: Deep3D Re: Start - 24/12/02 12:19 PM
ok, but i need it to stop connect.. disconnect before it even starts to connect.. or somthing like that.. it works whit /timer5 1 1 /disconnect .. but is there no other way!?!
Posted By: Collective Re: Start - 24/12/02 12:29 PM
No other way I can think of, unless you write your own autoconnect script.
Posted By: Deep3D Re: Start - 24/12/02 12:46 PM
Yeah, i got it!! grin

Code:
/start { 
  titlebar - The Reactor Script - %name
  inc %times
  emailaddr %user-id @user-id
  identd on %user-id
  fullname The Reactor Script %version $+ , %name
  reset-start
  clear -s
  echo14 * This script has been started %times times!
  if %configis == done {
    /server
  }
  else {
    echo14 * You need to do some configurations!
    titlebar - The Reactor Script - You need to do some configurations!
    dialog -m config config
  }
  if %times == 2 { 
    echo14 * Script configuration is done!
    echo14 * Please don't rewrite this script, thank you!
  }
  ignore -l
}
Posted By: Collective Re: Start - 24/12/02 01:55 PM
That wouldn't disconnect someone if they had "Connect on startup" checked in the
[+]Connect
|-Options
window, just so you know.
Posted By: Deep3D Re: Start - 24/12/02 03:00 PM
Yes, i disabled the "Connect on startup".. :tongue:
© mIRC Discussion Forums