on *:TEXT:drink *:#narph: { if ($readini($nick $+ .ini,$nick,Inventory $+ $replace($2-,attack,a,strength,s,defense,d,health,h,super attack,sa,super strength,ss,super defense,sd,super health,sh) $+ Potion ) > 0 ) { writeini $Nick $+ .ini $nick Inventory $+ $replace($2-,attack,a,strength,s,defense,d,health,h,super attack,sa,super strength,ss,super defense,sd,super health,sh) $+ potion $calc($readini($nick $+ .ini,$nick,Inventory $+ $replace($2-,attack,a,strength,s,defense,d,health,h,super attack,sa,super strength,ss,super defense,sd,super health,sh) $+ Potion) -1 ) msg $chan 9,3 $nick drinks a(n) $2 potion. $2 $+ : $readini($nick $+ .ini $nick $replace($2-,health,HP,super health,HP)) if (($readini($nick $+ .ini,$nick,Inventory $+ %replacepot $+ Potion) !<= 0 ) { msg $chan 9,3 $+ $nick has $readini($nick $+ .ini,$nick,Inventory $+ $replace($2-,attack,a,strength,s,defense,d,health,h,super attack,sa,super strength,ss,super defense,sd,super health,sh) $+ Potion) remaining. } elseif ($readini($nick $+ .ini,$nick,Inventory $+ %replacepot $+ Potion) == 0 ) { msg $chan 9,3 msg $chan 9,3 $+ $nick has $readini($nick $+ .ini,$nick,Inventory $+ %replacepot $+ Potion) remaining! Buy More Soon! } } }