All pastes #471414 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-04 21:41 UTC
rendered paste body
on *:TEXT:!coin*:#coins: {
  if ($2 == buy) {
    if ($3 == teddybear) {
      if ($readini(coins.ini,$nick,coins) < 100) {
        notice $nick You have bought a Teddy Bear!
        writeini -n coins.ini $nick coins $calc($readini(coins.ini,$nick,coins) - 100
      }
      elseif ($readini(coins.ini,$nick,coins) > 100) notice $nick You dont have that much!
    }
  }
}