Poison-Kick

By Drarqua on Apr 11, 2012

This is the first script i made
and i am really proud of it
You type !poison
And in 5 seconds te script kicks him

on *:TEXT:!poison *:#: { 
  if ($nick isop #) {
    /msg $chan You have been poisoned by a poisoned stab 
    /msg $chan In 5 seconds you will die
    .timer 1 1 notice $2 5
    .timer 1 2 notice $2 4
    .timer 1 3 notice $2 3
    .timer 1 4 notice $2 2
    .timer 1 5 notice $2 1
    .timer 1 6 notice $2 Goodbye!
    .timer 1 6 kick # $2 Poisoned
} }

Comments

Sign in to comment.
Meta   -  Apr 12, 2012

Nah, all that would really happen in these cases by using $2- is that the remaining tokens would work their way into the notices and kick message. "Aha2y Drarqua 5, Aha2y Drarqua 4, Aha2y Drarqua 3, Aha2y Drarqua 2 ,Aha2y Drarqua 1". Probably not what you'd want, and of course $2 is better, but $2- shouldn't prevent the script from working.

 Respond  
Sorasyn   -  Apr 12, 2012

Careful using $2- that includes all tokens from 2 to the end of the string. !poison Power Aha2y Drarqua would attempt to kick / 'poison' "Power Aha2y Drarqua" as a whole which of course that nick does not exist.

 Respond  
Drarqua   -  Apr 12, 2012

It was color Aha2y

 Respond  
Jordyk19   -  Apr 12, 2012

Why the 13# ?Cant you just 5,4,3,2,1?

 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.