|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
Hi, i've been looking for a select kick since i dunno how to create it anymore... This is what i've got:
alias snicks {
var %ops = $1 $+ $str($2,6), %op | tokenize 44 $snicks | :L | inc %op $iif(%op,6)
if ( $ [ $+ [ %op ] ] ) { mode # %ops $ [ $+ [ %op ] ] $ [ $+ [ $calc(%op +1) ] ] $ [ $+ [ $calc(%op +2) ] ] $ [ $+ [ $calc(%op +3) ] ] $ [ $+ [ $calc(%op +4) ] ] $ [ $+ [ $calc(%op +5) ] ] | goto L }
}
I wanna put a "Select Kick" in my nicklist... can someone help me farther with this...
If you mess with the best, u will die like the rest !
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Maybe you'd better clarify what it is you're wanting to do, since the nicklist already includes a Kick and Kick (why) options. Your code doesn't make any sense to me whatever.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
menu nicklist { Select Kick : { snicks } }
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
This is what i tried:
menu nicklist {
Select Kick {
var %tr = snicks
kick $nick(#,%tr)
}
}
Aint working, can someone please help me with this...
If you mess with the best, u will die like the rest !
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
why didnt u use what i gave you, along with your own code.
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
Oh, yeh... Dumb me...
menu nicklist {
Select Kick : { kick # $snicks }
}
How could i ever be so "STUPID" ... - Thankx Davel...
If you mess with the best, u will die like the rest !
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
Hmm, still got a problem, whenever i select more then 1 nick:
(17:32) .•. ExoticuZ,fishbot does not exist...
I need something makes a space between it or sumthin'... - Can anyone help me?
If you mess with the best, u will die like the rest !
|
|
|
|
Joined: Feb 2005
Posts: 681
Fjord artisan
|
Fjord artisan
Joined: Feb 2005
Posts: 681 |
It's not working because the kick command doesn't support multiple nicks... menu nicklist {
Select Kick:mkick # $snicks
}
alias mkick {
if ($me !isop $1) return
var %i = 1
while ($gettok($2,%i,44) != $null) {
if ($v1 != $me) [color:red]kick $1 $v1[/color]
inc %i
}
} ~ Edit ~
You may want to put a timer on the kicks to prevent being flooded off of the server...
.timer 1 %i kick $1 $v1
Hey I'm 1 post away from kicking this monkey off my back :tongue: Then I'll just have an old hand, but that's just from overuse.
Last edited by mIRCManiac; 14/04/06 04:02 PM.
|
|
|
|
Joined: Oct 2005
Posts: 126
Vogon poet
|
OP
Vogon poet
Joined: Oct 2005
Posts: 126 |
Hi mIRCManiac, thankx m8 ! ... 1 thing... i've got mIRC Version 6.15, so probaly have 2 change $v1 in $ifmatch ...
If you mess with the best, u will die like the rest !
|
|
|
|
|
|