All pastes #2106909 Raw Edit

COCK IN YOUR ASS

public text v1 · immutable
#2106909 ·published 2012-01-28 01:02 UTC
rendered paste body
               $mcount(float) = 0.0;

                                foreach($inventory->items as $item)
                                {
                                    $itemid = $item->defindex;
                                        //refined
                                        if($itemid == "5002") {
                                                $mcount+1;

                                        //reclaimed
                                        } elseif($itemid == "5001") {
                                                $mcount+.33;

                                        //scrap
                                        } elseif ($itemid == "5000") {
                                                $mcount+.11;
                                        } else { }
                                }