on 1:text:!kill*:#: {
  if ( %killon == yes ) {
    notice $nick you cant use this command so fast after eachother. please wait a while longer. 
    halt
  }
  if ( %killlast == $nick ) {
    notice $nick Sorry, you cant use this command twice in a row. please wait untill somebody else used it. 
    halt
  }
  if ( $2 == $null ) { 
    notice $nick Please input a name to kill. 
    halt
  }
  if ( $2 == L ) {
    notice $nick You cant kill L. 
    halt
  }
  if ( $2 == $me ) {
    notice $nick You cant kill me.
    halt
  }
  if ( $2 == $nick ) {
    notice $nick You cant kill yourelf.
    halt
  }
  if ( %killtry [ $+ [ $nick ] ] == $null ) {
    set %killtry $+ $nick 0
    set %killsuc $+ $nick 0
  }
  if ( %killsuc [ $+ [ $nick ] ] == $null ) {
    set %killsuc $+ $nick 0
  }
  set %killon yes
  set %killlast $nick
  set %kill $rand(1,5)
  inc %killtry $+ $nick
  if ( $2- !ison $chan ) {
    msg $chan $nick searches for $2- $+ .
    timer 1 3 msg $chan but $2- isnt here at the moment.
    timer 1 4 msg $chan Murder attempt failed!
    timer 1 5 msg $chan $nick has tried to kill %killtry [ $+ [ $nick ] ] persons. %killsuc [ $+ [ $nick ] ] attempts were successfull. 
    timer 1 30 set %killon no
    halt
  }
  if ( %killedtry [ $+ [ $2 ] ] == $null ) {
    set %killedtry $+ $2 0
    set %killedsuc $+ $2 0
  }
  if ( %killedsuc [ $+ [ $2 ] ] == $null ) {
    set %killedsuc $+ $2 0
  }
  inc %killedtry $+ $2
  if ( %kill == 1 ) {
    set %kill2 $rand(1,5)
    inc %killedsuc $+ $2
    inc %killsuc $+ $nick
    if ( %kill2 == 1 ) {
      msg $chan $nick sneaks to $2 with a knife and silently slices his throat. 
      timer 1 3 msg $chan $nick hears police sirens but he manages to get away. 
    }
    if ( %kill2 == 2 ) {
      msg $chan $nick grabs a machine gun and shoots the hell out of $2 $+ .
      timer 1 3 msg $chan $nick dumps the gun and goes on with his life.
    }
    if ( %kill2 == 3 ) {
      msg $chan $nick plants a bomb in $2 $+ 's house.
      timer 1 3 msg $chan When $2 comes home, the bomb explodes. 
    }
    if ( %kill2 == 4 ) {
      msg $chan $nick sees $2 walking on the street.
      timer 1 3 msg $chan $nick grabs a gun and shoots $2 $+ .
    }
    if ( %kill2 == 5 ) {
      msg $chan $nick made the perfect plan to kill $2 $+ .
      timer 1 3 msg $chan $nick manages to execute the plan and kills $2 $+ .
    }
    timer 1 4 msg $chan Murder attempt successfull!
    timer 1 5 msg $chan $nick has tried to kill %killtry [ $+ [ $nick ] ] persons. %killsuc [ $+ [ $nick ] ] attempts were successfull. 
    timer 1 30 set %killon no
    timer 1 6 msg $chan $2 has been attacked %killedtry [ $+ [ $2 ] ] times. %killedsuc [ $+ [ $2 ] ] times he died.
    timer 1 7 msg $chan kill/attack ratio for $nick $+ : 1/ $+ $calc( %killtry [ $+ [ $nick ] ] / %killsuc [ $+ [ $nick ] ] ) (1/5 is normal, less is 'good' more is 'bad')
    timer 1 8 msg $chan killed/attacked ratio for $2 $+ : 1/ $+ $calc( %killedtry [ $+ [ $2 ] ] / %killedsuc [ $+ [ $2 ] ] ) (1/5 is normal, more is 'good' less is 'bad')
    if ( $2 isop $chan ) halt
    timer 1 10 kick $chan $2 You have been killed.
  }
  if ( %kill != 1 ) {
    set %kill2 $rand(1,10)
    if ( %kill2 == 1 ) {
      msg $chan $nick searches for $2- $+ .
      timer 1 3 msg $chan but $2 is dead already... 
    } 
    if ( %kill2 == 2 ) {
      msg $chan $nick grabs a machine gun and shoots the hell out of $2 $+ .
      timer 1 3 msg $chan $nick turns around and sees a police agent, wich arrests him.
    }
    if ( %kill2 == 3 ) {
      msg $chan $nick sneaks to $2 with a knife and silently slices his throat.
      timer 1 3 msg $chan when the person falls down, $nick notices that it isnt $2 $+ , but $nick($chan,$rand(1,$nick($chan,0))) $+ !!
    }
    if ( %kill2 == 4 ) {
      msg $chan $nick grabs a machine gun and shoots the hell out of $2 $+ .
      timer 1 3 msg $chan $nick leaves and a week later, the police arrests him for murder.
    }
    if ( %kill2 == 5 ) {
      msg $chan $nick plants a bomb in $2 $+ 's house.
      timer 1 3 msg $chan The bomb exploded, but $2 wasnt home. 
    }
    if ( %kill2 == 6 ) {
      msg $chan $nick plants a bomb in $2 $+ 's house.
      timer 1 3 msg $chan when $nick walks out of the house, noticing $2 calling the police. $nick gets arrested by the police.
    }
    if ( %kill2 == 7 ) {
      msg $chan $nick sees $2 walking on the street.
      timer 1 3 msg $chan $nick grabs a gun but is too scared to shoot.
    }
    if ( %kill2 == 8 ) {
      msg $chan $nick made the perfect plan to kill $2 $+ .
      timer 1 3 msg $chan However, $2 moved to another country and $nick doesnt know where he lives now.
    }
    if ( %kill2 == 9 ) {
      msg $chan $nick grabs a hand gun and shoots at $2 $+ 's chest. 
      timer 1 3 msg $chan However, $2 was wearing a bullet proof vest.
    }
    if ( %kill2 == 10 ) {
      msg $chan $nick walks over the streets searching for $2 $+ .
      timer 1 3 msg $chan The police notices $nick walking with a gun and arrest him because he doesnt have a permission to carry guns.
    }
    timer 1 4 msg $chan Murder attempt failed!
    timer 1 5 msg $chan $nick has tried to kill %killtry [ $+ [ $nick ] ] persons. %killsuc [ $+ [ $nick ] ] attempts were successfull. 
    timer 1 30 set %killon no
    timer 1 6 msg $chan $2 has been attacked %killedtry [ $+ [ $2 ] ] times. %killedsuc [ $+ [ $2 ] ] times he died.
    if ( %killsuc [ $+ [ $nick ] ] != 0 ) {
      if ( %killsuc [ $+ [ $nick ] ] != $null ) {
        timer 1 7 msg $chan kill/attack ratio for $nick $+ : 1/ $+ $calc( %killtry [ $+ [ $nick ] ] / %killsuc [ $+ [ $nick ] ] ) (1/5 is normal, less is 'good' more is 'bad')
      }
    }
    if ( %killedsuc [ $+ [ $2 ] ] != 0 ) {
      if ( %killedsuc [ $+ [ $2 ] ] != $null ) {
        timer 1 8 msg $chan killed/attacked ratio for $2 $+ : 1/ $+ $calc( %killedtry [ $+ [ $2 ] ] / %killedsuc [ $+ [ $2 ] ] ) (1/5 is normal, more is 'good' less is 'bad')
      }
    }
  }
}

on 100:text:!resetkill:#: {
  unset %kill*
  msg $chan !kill counts resetted.
}
