kicks a nick when you /me kicks (nick)

By Basillisk on Dec 02, 2008

ok, this will kick the nick you specify when you do the action: /me kicks
i.e

  • @Basillisk kicks Ryan
  • Ryan was kicked by Basillisk (You just got kicked :D)

lots of error preventings and stuff
only works if your a halfop(+) obviously
here they are:

  • @Basillisk kicks John
    Woops! That person is not in this channel ;)
  • @Basillisk kicks (halted so no one will see)
    you failed to specify a nick ;)

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 ;)
        } 
      }
    }
  }
}

Comments

Sign in to comment.
jaytea   -  Dec 23, 2010

/ is only interpreted as a command prefix when it's used as such, '/me' is fine there :P

and if that post was a little more current it would worth explaining that a custom alias would probably be preferable to an input event here.

 Respond  
Jethro   -  Dec 23, 2010

I think he should have used as

if ($1-2 == $+(/,me) kicks) {

The / will be processed as a command character and disregarded.

 Respond  
NightBlade   -  Dec 23, 2010

Zohh my goodness.. Basi you put up scripts too? that one you made was simlar to what i make, except i don't make any that rely on /me, i use remotes ^^

 Respond  
Blitzjager   -  Dec 06, 2008

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. :)

 Respond  
Basillisk   -  Dec 06, 2008

@ 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 =/

 Respond  
Jonesy44   -  Dec 05, 2008

Not really years, that was an exageration. i've been coding for ages & i'm use to all the complex ways napa uses, and can understand them, even though i don't necesairly use them. just get use to the language first, then try and work more on shorter & faster codes

 Respond  
Blitzjager   -  Dec 05, 2008

.

 Respond  
Basillisk   -  Dec 05, 2008

lol :P i agress with jonesy, its years :P

 Respond  
Jonesy44   -  Dec 04, 2008

Ok, well yeah :L i started mirc when i was like 13 lol aint used it in a few months now, i just use it for codes. havent been on an actual server for any good amoutn of time in years!

 Respond  
napa182   -  Dec 04, 2008

lmao @ a skill you get after coding for years
well maybe a few months not years. lol

 Respond  
Jonesy44   -  Dec 04, 2008

Not too hard, Basilisk! lol. Napa's method's just much cleaner & simpler, which is a skill you get after coding for years :L :P

 Respond  
Dragon1-9-8-4   -  Dec 04, 2008

need to make it where you can put a reason but i tested it and it worked and is funny.good job!!!

 Respond  
Basillisk   -  Dec 02, 2008

omg, how do you do that? o_O

 Respond  
napa182   -  Dec 02, 2008

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
    }
  }
}
 Respond  
Basillisk   -  Dec 02, 2008

i mainly made this for fun cause i'd type /me kicks John and then kick them, but it was a little slow and a tad time consuming, so i made this "for fun." ;P

 Respond  
Cheiron   -  Dec 02, 2008

didnt need the describe $chan for the alias. when you want to specify a reason you only need to it as kick or ban #channel nick reason

 Respond  
Basillisk   -  Dec 02, 2008

alrighty, i believe I'm done :D

 Respond  
Basillisk   -  Dec 02, 2008

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 ^_^

 Respond  
Cheiron   -  Dec 02, 2008

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]

 Respond  
guest598594   -  Dec 02, 2008
also i didnt add
<code> if ($me ishop $chan) </code>
because it didnt seem to include halfop or higher o_o 

You would do:

if ($me ishop $chan || $me isop $chan) {

And btw, [ code ] not Image (w/o spaces ofc)

 Respond  
Basillisk   -  Dec 02, 2008

feel free to say it sucks or something o_o i was completely bored when i made it :P say/show any improvements or anything like that

Thanks in advance for your comments ^_^

also i didnt add

if ($me ishop $chan)

because it didnt seem to include halfop or higher o_o

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.