mIRC Homepage
Posted By: PhyxiuS Select Kick - 13/04/06 12:56 AM
Hi, i've been looking for a select kick since i dunno how to create it anymore...

This is what i've got:
Code:
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...
Posted By: RusselB Re: Select Kick - 13/04/06 01:36 AM
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.
Posted By: DaveC Re: Select Kick - 13/04/06 01:49 AM
menu nicklist {
Select Kick : { snicks }
}
Posted By: PhyxiuS Re: Select Kick - 13/04/06 12:07 PM
This is what i tried:
Code:
menu nicklist {
  Select Kick {
    var %tr = snicks
    kick $nick(#,%tr)   
  }
}


Aint working, can someone please help me with this...
Posted By: DaveC Re: Select Kick - 13/04/06 01:15 PM
why didnt u use what i gave you, along with your own code.
Posted By: PhyxiuS Re: Select Kick - 13/04/06 09:23 PM
Oh, yeh... Dumb me...
Code:
menu nicklist { 
  Select Kick : { kick # $snicks } 
} 

How could i ever be so "STUPID" ...
-
Thankx Davel... wink
Posted By: PhyxiuS Re: Select Kick - 14/04/06 03:34 PM
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?
Posted By: mIRCManiac Re: Select Kick - 14/04/06 03:46 PM
It's not working because the kick command doesn't support multiple nicks...

Code:
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.
Posted By: PhyxiuS Re: Select Kick - 14/04/06 04:47 PM
Hi mIRCManiac, thankx m8 ! ... 1 thing...
i've got mIRC Version 6.15, so probaly have 2 change $v1 in $ifmatch ... wink
© mIRC Discussion Forums