napa182 commented on a mIRC Script, Cookie/cake stats  -  Aug 02, 2011

@Annaiidziithaa if you are going to use regex you may as well put it into the trigger rather than the if line. As well if you are going to use so many triggers ie: ! @ . maybe have the ! message the chan an the rest notice the nick.

Example only:

on $*:text:/^([!.@])checkstats?\s?(\S+)?$/iS:#: {
  if (!%chekstats) { inc -u20 %chekstats
    var %z $iif($regml(1) = !,.msg #,.notice $nick), %u 
    if ($regml(2) && $regml(2) ison #) {
      %u = $v1 
      %z Stats of %u user :
      %z $iif(%cookie [ $+ [ %u ] ],$v1,0)  cookie(s) $iif(%cake [ $+ [ %u ] ],$v1,0)  cake(s)$&
        $iif(%hugs [ $+ [ %u ] ],$v1,0) hug(s) been licked $iif(%lick [ $+ [ %u ] ],$v1,0) times$&
        haz been raped $iif(%rape [ $+ [ %u ] ],$v1,0)  time(s)
    }
    else {
      %z Plz type user nick to chek his stats ! (User need to be on channel) remember$&
        that you must wait 20 seconds between each command!
    }
  }
}
 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.