ok, this will kick the nick you specify when you do the action: /me kicks
i.e
lots of error preventings and stuff
only works if your a halfop(+) obviously
here they are:
made this cause i was completely and utterly bored :S
(changed it a little, but still basically the same)
on 1:input:*:{
if ($me ishop $chan || $me isop $chan) {
if ($1 == /me) {
if ($2 == kicks) {
if (!$3) {
echo -a Woops! You forgot to specify a nick to kick ;) (if you wanted to kick someone)
halt
}
if ($4-) {
describe $chan $2-
echo -a sorry, if you wanted to kick someone, you shouldn't include anything after their nick :)
halt
}
elseif ($3 ison $chan) {
describe $chan kicks $3
kick $chan $3 You just got kicked :D
halt
}
else {
echo -a Woops! That person is not in this channel ;)
}
}
}
}
}
It's not much different than napa's but you can add a kick message.
/mekicks
And /me kicks $nick [kick message]
If you don't put a kick message it will take one from the text file.
on *:INPUT:*: {
if ($1-2 == /me kicks) && ($me isop $chan) {
haltdef
if (!$3) { echo -a You must choose a nick. }
if ($3 !ison $chan) { echo -a They aren't on $chan }
elseif ($4) {
describe $chan kicks $3
kick $chan $3 $4-
}
elseif (!$4) {
describe $chan kicks $3 $read(mekicks.txt, $rand(1,$lines(mekicks.txt)))
kick $chan $3 $me just kicked you $read(mekicks.txt, $readn)
}
}
}
alias mekicks {
write mekicks.txt $1-
}
I like this too that's why I keep posting. So thanks for getting me started on this. :)
@ blitz & dragon, i didnt put a reasony thing because if you wanted to kick them somewhere certain it'd come up in the kick message i.e they could get kicked for the reason: in the balls. I'll try think of something :P
and @ jonesy, I still have a lot to learn. then once i get all that sussed which would take roughly a year cause Ima slow learner then i'd start shortening and that would take some practise too =/
you could do it like this as well
just a diff take on it..
on *:input:*:{
if ($nick(#,$me,oh) && $1-2 == /me kicks) {
if (!$3 || $4) {
echo -a $iif(!$3,Woops! You forgot to specify a nick to kick,sorry $+ $chr(44)$&
if you wanted to kick someone $+ $chr(44) you shouldn't include anything after their nick)
haltdef
}
elseif ($3 ison #) {
.timer.action.kick -m 1 500 kick # $3 You just got kicked :D
}
else {
echo -a Woops! That person is not in this channel
haltdef
}
}
}
well, then it would seem like less fun somehow. That way its just another kick script with an action in front of it. it seems to take the fun out of it for me o_O
(edit) ok, I still didnt finish, didnt look at it properly just about it fix it up a little :D
(edit2) thanks md :P
(edit3 O_o) @ cherion editing the first paragraph, i didnt realise you didnt include the
describe $chan kicks <nick>
thats the main reason i made this script :P to do the action and it'll kick them ^_^
if you really wanted to save on the amount of snippets on your mirc, this can be condensed into a really simple alias
/bye /kick $chan $1 12<^> 3This was just a warning by a room op/admin. next time follow the rules or it will be a ban 12<^>
for example :) usage /bye <then the nick's name> [enter key]