setExpiration(60); if ($cache->hasExpired()) { $offers = array( 'wts' => mysql_select_multi("SELECT `mo`.`id`, `mo`.`itemtype` AS `item_id`, `mo`.`amount`, `mo`.`price`, `mo`.`created`, `mo`.`anonymous`, `p`.`name` AS `player_name` FROM `market_offers` AS `mo` INNER JOIN `players` AS `p` ON `mo`.`player_id`=`p`.`id` WHERE `mo`.`sale` = '1' ORDER BY `mo`.`created` DESC;"), 'wtb' => mysql_select_multi("SELECT `mo`.`id`, `mo`.`itemtype` AS `item_id`, `mo`.`amount`, `mo`.`price`, `mo`.`created`, `mo`.`anonymous`, `p`.`name` AS `player_name` FROM `market_offers` AS `mo` INNER JOIN `players` AS `p` ON `mo`.`player_id`=`p`.`id` WHERE `mo`.`sale` = '0' ORDER BY `mo`.`created` DESC;") ); $cache->setContent($offers); $cache->save(); } else { $offers = $cache->load(); } ?>

Marketplace

You can buy and sell items by clicking on the market in depot.
To sell an item: Place item inside your depot, click on market, search for your item and sell it.

WTS: Want to sell

Item name Item Count Price for 1 Added By Compare
" alt="Item Image"> ".$o['player_name'].""; ?>

WTB: Want to buy

Item name Item Count Price for 1 Added By Compare
" alt="Item Image"> ".$o['player_name'].""; ?>
0) ? (int)$compare : getValue($compare); $condition = "`itemtype`='$compare'"; if (is_string($compare)) { $query = array(); foreach ($items as $id => $name) { if (strpos(strtolower($name), stripslashes(strtolower($compare))) !== false) { $query[] = $id; } } $condition = (!empty($query)) ? "`itemtype` IN (". implode(',', $query) .")" : false; } // First list active bids if ($condition === false) { $offers = array(); $historyOffers = array(); } else { $offers = mysql_select_multi("SELECT `mo`.`id`, `mo`.`sale`, `mo`.`itemtype` AS `item_id`, `mo`.`amount`, `mo`.`price`, `mo`.`created`, `mo`.`anonymous`, `p`.`name` AS `player_name` FROM `market_offers` AS `mo` INNER JOIN `players` AS `p` ON `mo`.`player_id`=`p`.`id` WHERE `mo`.$condition ORDER BY `mo`.`price` ASC;"); $historyOffers = mysql_select_multi("SELECT `id`, `itemtype` AS `item_id`, `amount`, `price`, `inserted`, `expires_at` FROM `market_history` WHERE $condition AND `state`='255' ORDER BY `price` ASC;"); } $buylist = false; // Markup $itemname = (isset($items[$compare])) ? $items[$compare] : $compare; if (!is_string($compare)) echo "

Comparing item: ". $itemname ."

"; else echo "

Search: ". stripslashes($compare) ."

"; ?>

Active offers

Item name Item Count Price for 1 Added By
" alt="Item Image"> ".$o['player_name'].""; ?>

Want to buy:

Item name Item Count Price for 1 Added By
" alt="Item Image"> ".$o['player_name'].""; ?>

Old purchased offers

Item name Item Count Price for 1 Offer sold
" alt="Item Image">