Kill Bot

By Flaco22 on Nov 29, 2010

This is a killbot, probably not the best coded ever (not probably, 100% sure is not), but it works...

Paste in your remotes as usual, and type !kill to give it a try.

on *:text:*!kill *:%bot-fun:{
  /set %kill $rand(1,4)
  /set %bf $rand(1,4)
  if ( %kill == 1 ) {
    /set %ataque died from the wounds you have inflicted. He's swimming with the fishes now.
    /set %defensa tried to strike back but failed completely.
    /msg %bot-fun 7 $$2  %ataque
    /msg %bot-fun 7 $$2  %defensa
  }
  if ( %kill == 2 ) {
    /set %ataque died from the wounds you have inflicted. He's swimming with the fishes now.
    /set %defensa couldn't contain 7 $$2's backfire. 7 $nick died from the wounds he inflicted.
    /msg %bot-fun 7 $$2  %ataque
    /msg %bot-fun 7 $nick  %defensa
  }
  if ( %kill == 3 ) {
    /set %ataque Suffered but is still alive.
    /set %defensa couldn't contain 7 $$2's backfire. 7 $nick died from the wounds he inflicted.
    /msg %bot-fun 7 $$2  %ataque
    /msg %bot-fun 7 $nick  %defensa
  }
  if ( %kill == 4 ) {
    /set %ataque Suffered but is still alive.
    /set %defensa tried to strike back but failed completely.
    /msg %bot-fun 7 $$2  %ataque
    /msg %bot-fun 7 $$2  %defensa
  }
}

Comments

Sign in to comment.
BusyElf   -  Feb 03, 2011

Guys your slipping! Teen has spoken, can we get this to 100 posts as well ?

 Respond  
BigSteve   -  Dec 01, 2010
 on *:text:!kill *:#:{
  var %kill $rand(1,4), %y msg $chan
  if ( %kill isnum 1-2 ) {
    %y $$2 died from the wounds you have inflicted. He's swimming with the fishes now.
    %y $replace(%kill, 1, tried to strike back but failed completely, 2, couldn't contain $$2 backfire. 7 $nick died from the wounds he inflicted)
  }
  if ( %kill isnum 3-4 ) {
    %y $$2 Suffered but is still alive.
    %y $nick $replace(%kill, 3, couldn't contain 7 $$2's backfire. 7 $nick died from the wounds he inflicted., 4, tried to strike back but failed completely.)
  }
}
/quit I was killed by $nick
}

I would add the quit just for a laugh but thats me lol

 Respond  
Flaco22   -  Nov 30, 2010

guys calm down xd

i use %bot-fun cuz then i use that variable to set up channels i want it on.
variable %bf is of course my mistake; i was planning to do it differentely and i forgot to remove it :x

NB: Use Teen edit and you'll be fine, thanks for editing it.

 Respond  
Jethro   -  Nov 29, 2010

You're welcome.

 Respond  
_Teen_   -  Nov 29, 2010

Thanks genius

 Respond  
Jethro   -  Nov 29, 2010

Teen, please leave the regex grudge to yourself. What's the matter with you?

For your info, it's spelled g-e-n-i-u-s, not "genious," genius.

 Respond  
Dark|   -  Nov 29, 2010

there goes teen with his simple edits xD

 Respond  
_Teen_   -  Nov 29, 2010

a simple edit for this,
why set many vars to this? by the way, where is the var for %bot-fun?
and when the var %bf is called on script?

on *:text:!kill *:#:{
  var %kill $rand(1,4), %y msg $chan
  if ( %kill isnum 1-2 ) {
    %y $$2 died from the wounds you have inflicted. He's swimming with the fishes now.
    %y $replace(%kill, 1, tried to strike back but failed completely, 2, couldn't contain $$2 backfire. 7 $nick died from the wounds he inflicted)
  }
  if ( %kill isnum 3-4 ) {
    %y $$2 Suffered but is still alive.
    %y $nick $replace(%kill, 3, couldn't contain 7 $$2's backfire. 7 $nick died from the wounds he inflicted., 4, tried to strike back but failed completely.)
  }
}

for those genious that will say something, i will not do it using regex
and i didnt forget about a ''flood protection''

by the way, as i said, simple edit based on his code

 Respond  
Dark|   -  Nov 29, 2010

lol
Cool

 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.