All pastes #1054877 Raw Edit

!wordmeter script

public text v1 · immutable
#1054877 ·published 2008-06-24 03:05 UTC
rendered paste body
;; Syntax: ![texthere]meter nick
;; ![texthere]meter
;; @[texthere]meter nick
;; @[texthere]meter
;; You can use any word after the ! or @ as long as you have the word "meter" 'connected' to the word.
;; Putting a person's nick is optional.
;; Example: !dumbmeter Person1
;; Example Output: Person1 is 42% dumb
;;
;; This script was made by Joshua from SwiftIRC. Joshua is an Administrator for Runeboards.com
;; The idea for this script was inspired by the script found on the iKick bot on SwiftIRC. 
;; The trigger that this script uses is the same as the trigger that iKick uses. HOWEVER, I made THIS script completely by myself. I had help from the mIRC Help file!

on $*:text:/^[!@](.*meter)/Si:#: {
  if ($readini(botinfo.ini,meter,$chan) == off) halt | else {
    if ($left($1,1) == !) set %output notice $nick
    if ($left($1,1) == @) && ($nick isreg $chan) set %output notice $nick
    if ($left($1,1) == @) && ($nick !isreg $chan) set %output msg $chan {
      if (!$2) {
        %output $c1(You) $c3(is) $c1($rand(0,100) $+ %) $c2($remove($1,meter,!,@))
      }
      else {
        %output $c1($2) $c3(is) $c1($rand(0,100) $+ %) $c2($remove($1,meter,!,@))
      }
    }
  }
}