mIRC [beer]script

By ISOtuxraceINC on Jan 31, 2009

who wants beer?
Usage:
!beer <-- ~mushwars passes Speaker a chilly beer! [2 beers.]
!beer Anyone <--
~mushwars passes Anyone a chilly beer! [3 beers.]
!beer mushwars <-- * ~mushwars passes herself a chilly beer! [4 beers.]

on *:text:*!beer*:# {
  if (!%msgflood) {
    if (!$2) {
      inc %beer
      describe # passes $nick a chilly beer! [ $+ %beer beers.]
    }
    elseif ( $2 = $me ) {
      inc %beer
      describe # passes herself a chilly beer! [ $+ %beer beers.]
    }
    else {
      inc %beer
      describe # passes $2 a chilly beer! [ $+ %beer beers.]
    }
    set -u15 %msgflood 1
  }
}

Comments

Sign in to comment.
Ghost-writer   -  Jul 25, 2009

herself--- lol itself :P its a bot :D

 Respond  
PuNkTuReD   -  Jan 31, 2009

once ya read up on
$+(,,)
$iif(,,)
$gettok(,,)
and
$chr()'s
its nt that bad

 Respond  
Aucun50   -  Jan 31, 2009

No one can under stand napas codes most of the time :)

 Respond  
ISOtuxraceINC   -  Jan 31, 2009

yea, lol, your code is too complex for me to understand, and btw my code dosen't work... so im goign to work on a fix, cause it worked last night :/

 Respond  
PuNkTuReD   -  Jan 31, 2009

lol u n ur $iif's napa182 :-)

 Respond  
napa182   -  Jan 31, 2009

look into /help $iif

on *:TEXT:!beer*:# {
  if (!%beerflood) {
    if (!$2 || $2 = $me || $2) {
      set -u5 %beerflood on
      inc %beer
      describe # passes $iif(!$2,$nick,$iif($2 == $me,herself,$iif($2,$2))) a chilly beer! [ $+ %beer beers.]
    }
  }
}
 Respond  
Aucun50   -  Jan 31, 2009
if (%beerflood != ON ) {
    if ( $2 = $null ) {

Can be:

if (!%beerflood) {
if (!$2) {
 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.