Birthday Slap

By extremity on Nov 17, 2011

Just a birthday slap I whipped up real quick for a member's birthday today..

This snippet adds a nicklist menu item which allows you to announce and kick a user for each year they have been on this planet.

Warning, this might or probably flood you or them out if you are friends with old folks depending on server settings. Do not use this for malicious purposes.. that would just be trollish.

Happy Birthday MakiMaki :D

menu nicklist {
  Birthday Slap: { birthday $$1 $$?="How old is $1 ?" }
}

alias birthday {
  set -eu300 %bslap 1 $$2 $1 $active
  msg $active Hey everyone, $1 is $2 years old today.  Time to celebrate!
  .timer 1 5 kick $active $1 :(B) Happy Birthday (B) ( 1 going on $2 ) 
}

on *:JOIN:#: {
  if (%bslap) {
    tokenize 32 %bslap
    if (# == $4 && $nick == $3) {
      if ($1 < $2) {
        var %i $calc($1 + 1)
        set %bslap $puttok($1-,%i,1,32)
        KICK # $3 :(B) Happy Birthday (B) ( %i going on $2 )
      }
      else {
        unset %bslap
        KICK # $3 :(*)(B)(*) Happy Birthday (*)(B)(*) ( And one to go on )
} } } }

Comments

Sign in to comment.
TinyJack   -  Feb 10, 2012

Awesome Code extremity nicely done and great work .. happy very belated birthday MakiMaki

Jackie / tiny / storm

 Respond  
  -  Nov 18, 2011

Thanks :P

 Respond  
Protheus   -  Nov 17, 2011

"old folks" lol. Nice script bro. Happy Birthday Maki.

 Respond  
Frenetic   -  Nov 17, 2011

Funny but nice snippet and Happy birthday MakiMaki.

 Respond  
  -  Nov 17, 2011

:P nice, and thank you

 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.