|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
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!!
/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
}
|
|
|
|
Joined: Dec 2002
Posts: 774
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 774 |
There's no connection when on start executes, so there's nothing to disconnect.
//if ( khaled isgod ) echo yes | else echo no
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
when i start the mirc, it connect to a server.. but it dont disconnect.. humm..
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
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 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
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
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!?!
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
No other way I can think of, unless you write your own autoconnect script.
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
Yeah, i got it!!
/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
}
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
Yes, i disabled the "Connect on startup".. :tongue:
|
|
|
|
|
|