alias buyaccessory { if ($nick == Senku) { msg $chan 12Senku, you should be grateful for your Attire. Get out of here. } if ($3- == pheonix pinion) { msg $chan 12 we don't have any of those | halt } if (%shops == closed) { msg $chan 12 shops are closed during battle | halt } if (($readini(batscore.ini, $nick, gold) >= $readini(accessory.ini, $3-, price))) && ((0, $null != $read(accessory.ini, $3-, price))) { writeini -n batscore.ini $nick accessory $3- set %goldprev $readini(batscore.ini, $nick, gold) set %goldnow $calc(%goldprev - $readini(accessory.ini, $3-, price)) writeini -n batscore.ini $nick gold %goldnow msg $chan 12 storekeeper: $nick has bought $3- $+ ! } else { msg $chan 12 you don't have enough gil to afford that or $2 $3- doesn't exist! } }