mIRC Home    About    Download    Register    News    Help

Print Thread
#208254 17/01/09 01:18 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
/toolbar -az1 Kick "Kicker" graph\k.ico "/kick # $1 Reason"
Kick No such nick/channel
cant we use aliases or ban/kick stuff on toolbar command or am i doing it wrong confused

xyzzy #208260 17/01/09 02:40 PM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
$1 is the name of the button

You want $snick(#,1)

Last edited by 5618; 17/01/09 02:48 PM.
5618 #208279 17/01/09 05:35 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
ty but it works only on 1 nick
how can i make every selected nicks confused

xyzzy #208280 17/01/09 05:48 PM
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
You want $snicks, but you can't kick multiple nick in one command, you have to use an alias, try this :

/toolbar -az1 Kick "Kicker" graph\k.ico "kick_sel"

and in the remote add (or put it in the alias section) :

alias kick_sel tokenize 44 $snicks | kick # $* Reason


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #208281 17/01/09 05:57 PM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Originally Posted By: Wims
alias kick_sel tokenize 44 $snicks | kick # $* Reason

I believe he will need to use $snick(#) instead of $snicks ...

5618 #208290 17/01/09 10:41 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
alias working well ty
with $snick(#) error is
* /ban: no such user nick1,nick2

xyzzy #208295 17/01/09 11:09 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Maybe like this:

Code:
alias kick_sel {
var %i $snick($active,0) | :next | if $snick($active,%i) != $me ban -k $active $snick($active,%i) <kick reason> | dec %i | if %i > 0 goto next
}


Link Copied to Clipboard