Malcolm Cleere commented on a Page, Money System/RPG Basis  -  May 24, 2011

why not use ini,s for the money system instead off all the vars.. like this,,,

on *:text:*:?: {
  if ($1 = City Apartment) {
    if ($readini(bank,$nick,money) > 12000) {
      writeini bank $nick money $calc($Readini(bank,$nick,money) - 12000)
       writeini property $nick  property CityApartment
      msg # $nick has just got the City Apartment.
      notice $nick your bal is now $readini(bank,$nick,money) $+ .
    }
    if ($readini(bank,$nick,money) < 12000) { Sorry $nick you don't have enough money. }
  }
}
 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.