Clone script help - 24/02/05 05:24 AM
I have a clone scanner that displays in a dialog window ( The clone scanner is not mine and i am taking NO credit for it! )
and i want to add some basic functions to it. I added an edit box that displays the nicks only of a selected group of clones and then with buttons i want to be able to whois, ping, notice, msg, kick, or ban. The problem is i want to be able to see these actions as i do them. For example when i ping them it shows the ping echo to status, same with notice msgs and msg. I cant get the whois to work at all. Heres what I added to it....
All i really have a problem with is the whois on multiple nicks giving me a return of "Server Load Too Heavy, Try Again" ... i imagine a timer is needed. ( It returns the first nick only )
And the actions when performed i need to echo to the $active channel so i can be certain that it was actually executed.
Thanks for the help!
and i want to add some basic functions to it. I added an edit box that displays the nicks only of a selected group of clones and then with buttons i want to be able to whois, ping, notice, msg, kick, or ban. The problem is i want to be able to see these actions as i do them. For example when i ping them it shows the ping echo to status, same with notice msgs and msg. I cant get the whois to work at all. Heres what I added to it....
Code:
on *:dialog:clonescanner:dclick:2: { var %x = $gettok(%CSSC,3-,32) var %t = $matchtok(%x,&,0,32) while (%t > 0) { var %x = $remtok(%x,&,%t,32) dec %t } .did -ra clonescanner 5 %x .unset %CSSC } on *:dialog:clonescanner:sclick:*: { set %CSSC $did(2).seltext if ($did == 10) { var %n = $numtok($did(5),32) while (%n > 0) { /whois $gettok($did(5),%n,32) $gettok($did(5),%n,32) dec %n } } if ($did == 11) { var %n = $numtok($did(5),32) while (%n > 0) { /ping $gettok($did(5),%n,32) dec -c %n } } if ($did == 20) { var %n = $numtok($did(5),32) while (%n > 0) { .notice $gettok($did(5),%n,32) 4 No Clones, Servers and Ops Only... Msg Me if there is a problem. %ac dec -c %n } } if ($did == 21) { var %n = $numtok($did(5),32) while (%n > 0) { msg $gettok($did(5),%n,32) 4 No Clones, Servers and Ops Only... Msg Me if there is a problem. %ac } } if ($did == 22) { var %n = $numtok($did(5),32) while (%n > 0) { /query $gettok($did(5),%n,32) 4 No Clones, Servers and Ops Only... %ac dec -c %n } } if ($did == 23) { var %n = $numtok($did(5),32) while (%n > 0) { /notice $gettok($did(5),%n,32) 4 No Clones, Servers and Ops Only... Final Warning!! %ac /msg $gettok($did(5),%n,32) 4 No Clones, Servers and Ops Only... Final Warning!! %ac dec -c %n } } if ($did == 30) { var %n = $numtok($did(5),32) while (%n > 0) { /kick %ac $gettok($did(5),%n,32) 4 Clones dec -c %n } } if ($did == 31) { var %n = $numtok($did(5),32) while (%n > 0) { /ban $gettok($did(5),%n,32) | /kick %ac $gettok($did(5),%n,32) 4 Clones dec -c %n } } if ($did == 32) { var %n = $numtok($did(5),32) while (%n > 0) { /ban -u600 $gettok($did(5),%n,32) | /kick %ac $gettok($did(5),%n,32) 4 Clones dec -c %n } } if ($did == 33) { var %n = $numtok($did(5),32) while (%n > 0) { /ban -u3600 $gettok($did(5),%n,32) | /kick %ac $gettok($did(5),%n,32) 4 Clones dec -c %n } } if ($did == 40) { dialog -x clonescanner clonescanner /clonescan %ac } }
All i really have a problem with is the whois on multiple nicks giving me a return of "Server Load Too Heavy, Try Again" ... i imagine a timer is needed. ( It returns the first nick only )
And the actions when performed i need to echo to the $active channel so i can be certain that it was actually executed.
Thanks for the help!