defined('AntiBK') or die("Доступ запрещен!"); $shop_section = $char->city->getRoom($room, $city, 'shop_section'); $section_shop = getVar('section_shop', '', 7); $section_shop = (array_key_exists($section_shop, $data['sections_shop'])) ?$section_shop :$shop_section; ?>
Магазин
$check_level = ($level_filter > 0 || $level_filter == '0');
if ($section_shop == 'sell')
{
$rows = $adb->select("SELECT *
FROM `character_inventory` AS `c`
LEFT JOIN `item_template` AS `i`
ON `c`.`item_entry` = `i`.`entry`
WHERE (`i`.`item_flags` & '1')
and `c`.`wear` = '0'
and `c`.`mailed` = '0'
and `c`.`guid` = ?d
ORDER BY `c`.`last_update` DESC", $guid);
$i = true;
foreach ($rows as $item_info)
{
echo $char->equip->showItem($item_info, 'sell', $i);
$i = !$i;
}
if (!count($rows))
echo "
|
Масса: $mass/$maxmass";?>
У вас в наличии: кр.
echo ($section_shop == 'sell') ?"" :"";
?>
Отделы магазина
foreach ($data['sections_shop'] as $key => $value)
{
if ($section_shop == 'sell')
{
echo ""; break; } $show_in = explode(',', $value[0]); echo (in_array($room, $show_in)) ?"" :""; } ?> |