mIRC Home    About    Download    Register    News    Help

Print Thread
Select Kick #147046 13/04/06 12:56 AM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
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:
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...


If you mess with the best, u will die like the rest !
Re: Select Kick #147047 13/04/06 01:36 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
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.

Re: Select Kick #147048 13/04/06 01:49 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
menu nicklist {
Select Kick : { snicks }
}

Re: Select Kick #147049 13/04/06 12:07 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
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...


If you mess with the best, u will die like the rest !
Re: Select Kick #147050 13/04/06 01:15 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
why didnt u use what i gave you, along with your own code.

Re: Select Kick #147051 13/04/06 09:23 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
Oh, yeh... Dumb me...
Code:
menu nicklist { 
  Select Kick : { kick # $snicks } 
} 

How could i ever be so "STUPID" ...
-
Thankx Davel... wink


If you mess with the best, u will die like the rest !
Re: Select Kick #147052 14/04/06 03:34 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
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 !
Re: Select Kick #147053 14/04/06 03:46 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
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.

Last edited by mIRCManiac; 14/04/06 04:02 PM.
Re: Select Kick #147054 14/04/06 04:47 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
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 ... wink


If you mess with the best, u will die like the rest !