All pastes #112353 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-08-02 21:20 UTC
rendered paste body
alias c1 { return $+(07,$1-) }
alias c2 { return $+(04,$1-) }

on *:text:*:#void: { if ($address($nick,2) == $readini(Ignore.ini,Ignore,$address($nick,2))) { /halt } {

    tokenize 32 $strip($1-)
    if ($left($1,1) !isin @!) halt
    if ($right($1,-1) == pcw) var %style = pcworld
    elseif ($right($1,-1) == pc-world) var %style = pcworld
    elseif ($right($1,-1) == world) var %style = pcworld
    elseif ($right($1,-1) == pc-cash) var %style = pccash

    set $+(%,stats.display.,%ID) $iif($left($1,1) == @,msg $nick,notice $nick)

    alias process {
      var %display = $($+(%,stats.display.,%ID),2)

      if (%style == pcworld) {
        if ($nick isop $chan || $nick ishop $chan || $nick isvoice $chan) { %display $c1(The current PC world is: FILLINWORLD ERE) $c2($readini(PCWorld.ini,PC-World,PCWorld)) }
        else { %display $c1(The current PC world is: ) $c2(Get 8 Voice to see!) }
      }
      elseif (%style == pccash) {
        if ($nick isop $chan || $nick ishop $chan || $nick isvoice $chan) { %display $c1(You will get) $c2($calc((10 * $$2) * $$3) $+ gp) $c1(for) $c2($$3) $c1(PC Games.) }
      }
    }
  }
}