mIRC Home    About    Download    Register    News    Help

Print Thread
#154409 29/07/06 02:56 PM
N
Novane
Novane
N
Can somebody try to fix this for me? ty

/dialog: 'p.cloning' invalid table, no ok or cancel id (line 63, pro.txt)

#154410 29/07/06 02:57 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Paste the dialog table.

#154411 29/07/06 03:03 PM
N
Novane
Novane
N
IT IS REALLLLLY BIG!! so knock your self out...

alias overtake_kickreason {
if ($file(kick.reasons) != $null) {
inc %proxy.kreason
if (%proxy.kreason == $null || %proxy.kreason > $lines(kick.reasons)) {
set %proxy.kreason 1
}
return $read(kick.reasons,n,%proxy.kreason)
}
}

alias proxy_taker {
var %x = 1
while ($did(p.cloning,339,%x) != $null) {
if ($did(p.cloning,339,%x) == $1) {
return 1
}
inc %x
}
var %x = 1
while ($did(p.cloning,27,%x) != $null) {
if ($did(p.cloning,27,%x) iswm $1) {
return 1
}
inc %x
}
}

alias go.masskick {
if ($me ison $1) {
did -b p.cloning 15
did -e p.cloning 18
var %x = 1
var %n = 1
var %nl =
while ($did(p.cloning,339,%x) != $null) {
if ($did(p.cloning,339,%x) !isop $1) {
goto end
}
while ($gettok(%nl,0,32) < 6 && $nick($1,%n) != $null) {
if ($nick($1,%n) != $me && $nick($1,%n) != s && $nick($1,%n) != l && $nick($1,%n) != q && $nick($1,%n) && $proxy_taker($nick($1,%n)) == $null) {
var %nl = %nl $nick($1,%n)
}
inc %n
}
if (%nl != $null && %nl != $chr(61)) {
var %i = 1
while ($gettok($gettok(%nl,2-,32),%i,32) != $null) {
inc %kick.counter | sockwrite -n $p.cloning.do.saSockN($did(p.cloning,339,%x)) KICK $1 $gettok($gettok(%nl,2-,32),%i,32) : $+ $overtake_kickreason (( - %kick.counter - ))
inc %i
}
var %nl =
}
:end
inc %x
}
.timer_masskick 1 5 go.masskick $1
}
}


alias ClonesXs {
if ($dialog(p.cloning)) { dialog -v p.cloning }
else { dialog -md p.cloning p.cloning }
}

dialog p.cloning {
title "ClonesX - Overtake smile"
size -1 -1 268 205
option dbu notheme
tab "Connection", 200, 1 1 265 189
tab "Firewall", 201
tab "Actions", 202
tab "Overtake", 11
tab "Perform", 30
box "Server", 8, 5 20 186 21, tab 200
text "Host/Ip:", 9, 7 28 20 8, tab 200 result
edit "", 10, 28 27 92 10, tab 200 autohs
text "Port:", 1, 123 29 17 8, tab 200
combo 12, 142 27 46 50, tab 200 edit size drop
box "Nick", 34, 5 44 111 22, tab 200
radio "", 35, 8 53 7 10, tab 200 flat
radio "Other", 36, 57 53 22 10, tab 200 flat
combo 37, 16 52 41 50, tab 200 size drop
edit "", 38, 80 53 34 10, tab 200 autohs
box "Connection", 45, 6 101 110 67, tab 200
text "Number of clons:", 49, 10 110 48 20, tab 200
combo 50, 68 108 43 80, tab 200 edit size drop
text "Mode:", 215, 10 121 15 8, tab 200
combo 47, 68 120 43 50, tab 200 size drop
button "&Connect", 48, 10 144 101 10, tab 200 disable flat
button "&Disconnect", 52, 10 156 101 10, tab 200 flat
box "Debug", 219, 119 44 142 143, tab 200
edit "", 44, 121 51 138 134, tab 200 read autohs multi vsbar
box "State", 39, 6 67 110 31, tab 200
text "Connected clons:", 40, 10 75 47 8, tab 200
text "Open sockets:", 42, 10 86 41 8, tab 200
button "Clear Debug", 53, 6 174 110 13, tab 200 flat
text "-", 41, 78 76 34 8, tab 200
text "-", 43, 78 86 34 8, tab 200
text "Delay:", 390, 10 133 25 8, tab 200
combo 391, 68 132 43 60, tab 200 edit size drop
link "http://clonesx.cjb.net/", 361, 199 28 54 8, tab 200
box "Proxy", 236, 3 18 88 170, tab 201
box "Socks 4", 234, 90 18 88 170, tab 201
box "Socks 5", 235, 177 18 88 170, tab 201
text "Host/Ip:", 55, 5 26 20 8, tab 201
edit "", 2, 26 25 62 10, tab 201 autohs
text "Port:", 56, 5 36 17 8, tab 201
edit "", 3, 26 36 62 10, tab 201 autohs
button "&Add", 5, 5 47 39 9, tab 201 disable flat
button "&Import", 6, 49 47 39 9, tab 201 flat
button "&Delete", 7, 5 57 39 9, tab 201 flat
button "Delete A&ll", 244, 49 57 39 9, tab 201 flat
list 4, 5 68 85 118, tab 201 hsbar vsbar size
list 69, 92 68 85 118, tab 201 hsbar vsbar size
button "&Delete", 72, 92 57 39 9, tab 201 flat
button "Delete A&ll", 256, 136 57 39 9, tab 201 flat
button "&Import", 71, 136 47 39 9, tab 201 flat
button "&Add", 70, 92 47 39 9, tab 201 disable flat
text "Port:", 67, 92 36 17 8, tab 201
edit "", 68, 113 36 62 10, tab 201 autohs
edit "", 66, 113 25 62 10, tab 201 autohs
text "Host/Ip:", 65, 92 26 20 8, tab 201
text "Host/Ip:", 74, 179 26 20 8, tab 201
edit "", 75, 200 25 62 10, tab 201 autohs
edit "", 77, 200 36 62 10, tab 201 autohs
text "Port:", 76, 179 36 17 8, tab 201
button "&Add", 79, 179 47 39 9, tab 201 disable flat
button "&Import", 80, 223 47 39 9, tab 201 flat
button "Delete A&ll", 265, 223 57 39 9, tab 201 flat
button "&Delete", 81, 179 57 39 9, tab 201 flat
list 78, 179 68 85 118, tab 201 hsbar vsbar size
box "Actions", 305, 3 19 261 86, tab 202
button "Msg", 310, 9 71 37 10, tab 202 disable flat
button "Notice", 311, 9 82 37 10, tab 202 disable flat
button "Ping", 309, 9 60 37 10, tab 202 disable flat
button "Version", 308, 9 49 37 10, tab 202 disable flat
button "Part", 307, 9 38 37 10, tab 202 disable flat
button "Join", 306, 9 27 37 10, tab 202 disable flat
text "Channel:", 313, 47 28 25 8, tab 202
button "Command", 312, 9 93 37 10, tab 202 disable flat
edit "", 314, 81 27 75 10, tab 202 disable autohs
text "Channel:", 315, 47 40 25 8, tab 202
edit "", 316, 81 38 75 10, tab 202 disable autohs
edit "", 318, 81 49 75 10, tab 202 disable autohs
text "Channel/Nick:", 317, 47 50 34 8, tab 202
text "Channel/Nick:", 319, 47 61 34 8, tab 202
edit "", 320, 81 60 75 10, tab 202 disable autohs
text "Channel/Nick:", 321, 47 72 34 8, tab 202
edit "", 322, 81 71 75 10, tab 202 disable autohs
text "Message:", 323, 160 72 24 8, tab 202
edit "", 324, 183 71 75 10, tab 202 disable autohs
text "Channel/Nick:", 325, 47 83 34 8, tab 202
edit "", 326, 81 82 75 10, tab 202 disable autohs
text "Message:", 327, 160 83 24 8, tab 202
edit "", 328, 183 82 75 10, tab 202 disable autohs
edit "", 329, 47 93 211 10, tab 202 disable autohs
edit "''Aleatory'' for aleatory", 331, 202 28 56 10, tab 202 disable autohs
button "Nick Change", 330, 158 28 42 10, tab 202 disable flat
box "From...", 332, 158 40 100 29, tab 202
radio "Global", 333, 163 47 27 10, tab 202 disable flat
radio "Selected", 334, 212 47 42 10, tab 202 disable flat
radio "Group 1", 335, 163 56 30 10, tab 202 disable flat
radio "Group 2", 336, 193 56 30 10, tab 202 disable flat
radio "Group 3", 337, 225 56 30 10, tab 202 disable flat
box "Nick List", 338, 3 105 261 85, tab 202
list 339, 5 112 53 76, tab 202 disable vsbar size extsel
button "Add to Group 1", 340, 59 124 39 11, tab 202 disable flat
button "Add to Group 2", 341, 59 143 39 11, tab 202 disable flat
box "Grupo 3", 370, 207 110 54 79, tab 202
button "Delete", 371, 209 118 19 8, tab 202 disable flat
button "Delete all", 372, 228 118 31 8, tab 202 disable flat
list 373, 208 126 52 62, tab 202 disable vsbar size
list 369, 154 126 52 62, tab 202 disable vsbar size
button "Delete all", 368, 174 118 31 8, tab 202 disable flat
button "Delete", 367, 155 118 19 8, tab 202 disable flat
box "Group 2", 366, 153 110 54 79, tab 202
list 351, 100 126 52 62, tab 202 disable vsbar size
button "Delete All", 350, 120 118 31 8, tab 202 disable flat
button "Delete", 349, 101 118 19 8, tab 202 disable flat
box "Group 1", 348, 99 110 54 79, tab 202
button "Add to Group 3", 342, 59 161 39 11, tab 202 disable flat
box "Control", 14, 5 18 256 40, tab 11
button "Start", 15, 59 37 30 8, tab 11 flat
text "Chan:", 13, 8 26 17 8, tab 11
edit "#", 16, 26 25 50 10, tab 11 autohs
text "Mass Kick:", 17, 7 37 50 8, tab 11
button "Stop", 18, 91 37 30 8, tab 11 disable flat
text "Mode +l 1:", 19, 7 46 50 8, tab 11
button "Set", 20, 59 46 30 8, tab 11 flat
button "Unset", 21, 91 46 30 8, tab 11 flat
box "Kick Reasons", 22, 4 61 127 72, tab 11
list 23, 8 69 120 51, tab 11 size
button "Add", 24, 8 122 40 8, tab 11 flat
button "Del", 25, 50 122 40 8, tab 11 flat
box "Protected Nicks", 26, 134 61 127 72, tab 11
list 27, 138 69 120 51, tab 11 size
button "Add", 28, 138 123 40 8, tab 11 flat
button "Del", 29, 180 123 40 8, tab 11 flat
check "Enable Perform", 31, 3 180 236 8, tab 30
box "Perform (<nick> = the nick of the proxy)", 32, 5 20 257 158, tab 30
edit "", 33, 8 28 251 147, tab 30 autohs autovs multi return hsbar vsbar
menu "File", 403
item "&Exit", 476, 403
menu "Specials", 411
item "Ip-Ports", 412, 411
menu "Nick List", 413, 411
menu "Nicks Change", 414, 413
item "Default List", 415, 414
item "List...", 416, 414
menu "Save nicks", 417, 413
item "Default List", 418, 417
item "List...", 419, 417
menu "Connect with list", 420, 413
item "Default List", 421, 420
item "List...", 422, 420
menu "Help", 404
item "About...", 441, 404
item "Web", 405, 404
item "Phorum", 406, 404
item "Email", 407, 404
menu "Help", 408, 404
item "Readme.txt", 409, 408
item "Web Help", 410, 408
}

[snipped]

#154412 29/07/06 03:10 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
I said just the dialog table. :tongue:

Try replacing it with this:

Code:
dialog p.cloning {
title "ClonesX - Overtake "
size -1 -1 268 205
option dbu notheme
tab "Connection", 200, 1 1 265 189
tab "Firewall", 201
tab "Actions", 202
tab "Overtake", 11
tab "Perform", 30
box "Server", 8, 5 20 186 21, tab 200
text "Host/Ip:", 9, 7 28 20 8, tab 200 result
edit "", 10, 28 27 92 10, tab 200 autohs
text "Port:", 1, 123 29 17 8, tab 200
combo 12, 142 27 46 50, tab 200 edit size drop
box "Nick", 34, 5 44 111 22, tab 200
radio "", 35, 8 53 7 10, tab 200 flat
radio "Other", 36, 57 53 22 10, tab 200 flat
combo 37, 16 52 41 50, tab 200 size drop
edit "", 38, 80 53 34 10, tab 200 autohs
box "Connection", 45, 6 101 110 67, tab 200
text "Number of clons:", 49, 10 110 48 20, tab 200
combo 50, 68 108 43 80, tab 200 edit size drop
text "Mode:", 215, 10 121 15 8, tab 200
combo 47, 68 120 43 50, tab 200 size drop
button "&amp;Connect", 48, 10 144 101 10, tab 200 disable flat
button "&amp;Disconnect", 52, 10 156 101 10, tab 200 flat
box "Debug", 219, 119 44 142 143, tab 200
edit "", 44, 121 51 138 134, tab 200 read autohs multi vsbar
box "State", 39, 6 67 110 31, tab 200
text "Connected clons:", 40, 10 75 47 8, tab 200
text "Open sockets:", 42, 10 86 41 8, tab 200
button "Clear Debug", 53, 6 174 110 13, tab 200 flat
text "-", 41, 78 76 34 8, tab 200
text "-", 43, 78 86 34 8, tab 200
text "Delay:", 390, 10 133 25 8, tab 200
combo 391, 68 132 43 60, tab 200 edit size drop
link "http://clonesx.cjb.net/", 361, 199 28 54 8, tab 200
box "Proxy", 236, 3 18 88 170, tab 201
box "Socks 4", 234, 90 18 88 170, tab 201
box "Socks 5", 235, 177 18 88 170, tab 201
text "Host/Ip:", 55, 5 26 20 8, tab 201
edit "", 2, 26 25 62 10, tab 201 autohs
text "Port:", 56, 5 36 17 8, tab 201
edit "", 3, 26 36 62 10, tab 201 autohs
button "&amp;Add", 5, 5 47 39 9, tab 201 disable flat
button "&amp;Import", 6, 49 47 39 9, tab 201 flat
button "&amp;Delete", 7, 5 57 39 9, tab 201 flat
button "Delete A&amp;ll", 244, 49 57 39 9, tab 201 flat
list 4, 5 68 85 118, tab 201 hsbar vsbar size
list 69, 92 68 85 118, tab 201 hsbar vsbar size
button "&amp;Delete", 72, 92 57 39 9, tab 201 flat
button "Delete A&amp;ll", 256, 136 57 39 9, tab 201 flat
button "&amp;Import", 71, 136 47 39 9, tab 201 flat
button "&amp;Add", 70, 92 47 39 9, tab 201 disable flat
text "Port:", 67, 92 36 17 8, tab 201
edit "", 68, 113 36 62 10, tab 201 autohs
edit "", 66, 113 25 62 10, tab 201 autohs
text "Host/Ip:", 65, 92 26 20 8, tab 201
text "Host/Ip:", 74, 179 26 20 8, tab 201
edit "", 75, 200 25 62 10, tab 201 autohs
edit "", 77, 200 36 62 10, tab 201 autohs
text "Port:", 76, 179 36 17 8, tab 201
button "&amp;Add", 79, 179 47 39 9, tab 201 disable flat
button "&amp;Import", 80, 223 47 39 9, tab 201 flat
button "Delete A&amp;ll", 265, 223 57 39 9, tab 201 flat
button "&amp;Delete", 81, 179 57 39 9, tab 201 flat
list 78, 179 68 85 118, tab 201 hsbar vsbar size
box "Actions", 305, 3 19 261 86, tab 202
button "Msg", 310, 9 71 37 10, tab 202 disable flat
button "Notice", 311, 9 82 37 10, tab 202 disable flat
button "Ping", 309, 9 60 37 10, tab 202 disable flat
button "Version", 308, 9 49 37 10, tab 202 disable flat
button "Part", 307, 9 38 37 10, tab 202 disable flat
button "Join", 306, 9 27 37 10, tab 202 disable flat
text "Channel:", 313, 47 28 25 8, tab 202
button "Command", 312, 9 93 37 10, tab 202 disable flat
edit "", 314, 81 27 75 10, tab 202 disable autohs
text "Channel:", 315, 47 40 25 8, tab 202
edit "", 316, 81 38 75 10, tab 202 disable autohs
edit "", 318, 81 49 75 10, tab 202 disable autohs
text "Channel/Nick:", 317, 47 50 34 8, tab 202
text "Channel/Nick:", 319, 47 61 34 8, tab 202
edit "", 320, 81 60 75 10, tab 202 disable autohs
text "Channel/Nick:", 321, 47 72 34 8, tab 202
edit "", 322, 81 71 75 10, tab 202 disable autohs
text "Message:", 323, 160 72 24 8, tab 202
edit "", 324, 183 71 75 10, tab 202 disable autohs
text "Channel/Nick:", 325, 47 83 34 8, tab 202
edit "", 326, 81 82 75 10, tab 202 disable autohs
text "Message:", 327, 160 83 24 8, tab 202
edit "", 328, 183 82 75 10, tab 202 disable autohs
edit "", 329, 47 93 211 10, tab 202 disable autohs
edit "''Aleatory'' for aleatory", 331, 202 28 56 10, tab 202 disable autohs
button "Nick Change", 330, 158 28 42 10, tab 202 disable flat
box "From...", 332, 158 40 100 29, tab 202
radio "Global", 333, 163 47 27 10, tab 202 disable flat
radio "Selected", 334, 212 47 42 10, tab 202 disable flat
radio "Group 1", 335, 163 56 30 10, tab 202 disable flat
radio "Group 2", 336, 193 56 30 10, tab 202 disable flat
radio "Group 3", 337, 225 56 30 10, tab 202 disable flat
box "Nick List", 338, 3 105 261 85, tab 202
list 339, 5 112 53 76, tab 202 disable vsbar size extsel
button "Add to Group 1", 340, 59 124 39 11, tab 202 disable flat
button "Add to Group 2", 341, 59 143 39 11, tab 202 disable flat
box "Grupo 3", 370, 207 110 54 79, tab 202
button "Delete", 371, 209 118 19 8, tab 202 disable flat
button "Delete all", 372, 228 118 31 8, tab 202 disable flat
list 373, 208 126 52 62, tab 202 disable vsbar size
list 369, 154 126 52 62, tab 202 disable vsbar size
button "Delete all", 368, 174 118 31 8, tab 202 disable flat
button "Delete", 367, 155 118 19 8, tab 202 disable flat
box "Group 2", 366, 153 110 54 79, tab 202
list 351, 100 126 52 62, tab 202 disable vsbar size
button "Delete All", 350, 120 118 31 8, tab 202 disable flat
button "Delete", 349, 101 118 19 8, tab 202 disable flat
box "Group 1", 348, 99 110 54 79, tab 202
button "Add to Group 3", 342, 59 161 39 11, tab 202 disable flat
box "Control", 14, 5 18 256 40, tab 11
button "Start", 15, 59 37 30 8, tab 11 flat
text "Chan:", 13, 8 26 17 8, tab 11
edit "#", 16, 26 25 50 10, tab 11 autohs
text "Mass Kick:", 17, 7 37 50 8, tab 11
button "Stop", 18, 91 37 30 8, tab 11 disable flat
text "Mode +l 1:", 19, 7 46 50 8, tab 11
button "Set", 20, 59 46 30 8, tab 11 flat
button "Unset", 21, 91 46 30 8, tab 11 flat
box "Kick Reasons", 22, 4 61 127 72, tab 11
list 23, 8 69 120 51, tab 11 size
button "Add", 24, 8 122 40 8, tab 11 flat
button "Del", 25, 50 122 40 8, tab 11 flat
box "Protected Nicks", 26, 134 61 127 72, tab 11
list 27, 138 69 120 51, tab 11 size
button "Add", 28, 138 123 40 8, tab 11 flat
button "Del", 29, 180 123 40 8, tab 11 flat
check "Enable Perform", 31, 3 180 236 8, tab 30
box "Perform (&lt;nick&gt; = the nick of the proxy)", 32, 5 20 257 158, tab 30
edit "", 33, 8 28 251 147, tab 30 autohs autovs multi return hsbar vsbar
menu "File", 403
item "&amp;Exit", 476, 403
menu "Specials", 411
item "Ip-Ports", 412, 411
menu "Nick List", 413, 411
menu "Nicks Change", 414, 413
item "Default List", 415, 414
item "List...", 416, 414
menu "Save nicks", 417, 413
item "Default List", 418, 417
item "List...", 419, 417
menu "Connect with list", 420, 413
item "Default List", 421, 420
item "List...", 422, 420
menu "Help", 404
item "About...", 441, 404
item "Web", 405, 404
item "Phorum", 406, 404
item "Email", 407, 404
menu "Help", 408, 404
item "Readme.txt", 409, 408
item "Web Help", 410, 408
button "", 1000, 0 0 0 0, ok
}

#154413 30/07/06 12:16 AM
R
RusselB
RusselB
R
1) The entire script wasn't necessary, just the part where the dialog is actually layed out.
2) Please use the Code Tags in future when posting code.

The problem, is stated in the error message. mIRC will not allow you to run a dialog without some kind of an OK or Cancel button. These don't have to be named that, but they do have to be present. If you don't want one, for some reason, you can always put it in, then hide it

Alternatively you do have a menu with an Exit command, which you could set to act as OK and/or Cancel
Normally OK would be coded to save any changes made, and Cancel would void any changes made, but this is not a requirement.

With your code, I would recommend changing
Code:
item "&amp;Exit", 476, 403  
to
Code:
item "&amp;Exit", 476, 403, ok 
or
Code:
item "&amp;Exit", 476, 403, cancel  
depending on if you want the Exit to act as OK or Cancel

Just changing that one line is all that's required at this point.

#154414 30/07/06 12:19 AM
R
RusselB
RusselB
R
Hixxy: the dialog table that you posted has the same problem. No recognized OK or Cancel option, either via the Menu system or a button.

#154415 30/07/06 12:25 AM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Look again, I added one at the bottom.

Quote:
button "", 1000, 0 0 0 0, ok

#154416 30/07/06 02:46 AM
P
PhantasyX
PhantasyX
P
Yeah, not really helpful to paste the entire script to ClonesXS. Now we'll probably see even more script kiddies flooding out channels with lame proxy bots. smile

#154417 30/07/06 02:50 AM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
I didn't pay much attention to the script because of the size. Oops. I already reported the post though.

#154418 30/07/06 03:22 AM
R
RusselB
RusselB
R
Oops..sorry I missed it


Link Copied to Clipboard