mIRC Home    About    Download    Register    News    Help

Print Thread
#3321 24/12/02 11:49 AM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
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
}


#3322 24/12/02 11:58 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
There's no connection when on start executes, so there's nothing to disconnect.


Code:
//if ( khaled isgod ) echo yes | else echo no
#3323 24/12/02 12:00 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
when i start the mirc, it connect to a server.. but it dont disconnect.. humm..

#3324 24/12/02 12:07 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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

#3325 24/12/02 12:19 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
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!?!

#3326 24/12/02 12:29 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
No other way I can think of, unless you write your own autoconnect script.

#3327 24/12/02 12:46 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
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
}

#3328 24/12/02 01:55 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
That wouldn't disconnect someone if they had "Connect on startup" checked in the
[+]Connect
|-Options
window, just so you know.

#3329 24/12/02 03:00 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
Yes, i disabled the "Connect on startup".. :tongue:


Link Copied to Clipboard