Unnamed
public text v1 · immutable foreach($inventory->items as $item)
{
$itemid = $item->defindex;
//refined
if($itemid == "5002") {
$mcount['total']=$mcount['total']+1;
$mcount['ref']++;
//reclaimed
} elseif($itemid == "5001") {
$mcount['rec']++;
$mcount['total']=$mcount['total']+.333333333333333333333333333333333333333333333333333333333333333333339;
//scrap
} elseif ($itemid == "5000") {
$mcount['scrap']++;
$mcount['total']=$mcount['total']+.111111111111111111111111111111111111111111111111111111111111111111119;
} else { }
}
$mcount['total']= round($mcount['total'],2);
$mcount="total: {$mcount['total']}ref [ref:{$mcount['ref']}, rec:{$mcount['rec']}, scrap:{$mcount['scrap']}]";
fputs($socket, "PRIVMSG ".$channel." :".$steam_args." has ".$mcount."\n");
else:
fputs($socket, "PRIVMSG ".$channel." :could not find user ".$steam_args." \n");
endif;