equip->equipItem($item_id); break; case 'wear_set': $char->equip->equipSet($set_name); break; case 'unwear_item': $char->equip->equipItem($item_slot, -1); break; case 'unwear_full': $char->equip->unWearAllItems(); break; } $bars = $char->getChar('char_bars', 'stat', 'mod', 'power', 'def', 'btn', 'set'); foreach ($bars as $key => $value) { if ($value == 0) unset($bars[$key]); } asort($bars); $countitems = $adb->selectCell("SELECT COUNT(*) FROM `character_inventory` WHERE `guid` = ?d and `wear` = '0' and `mailed` = '0';", $guid) | 0; $money = getMoney($money); $chat_shut = $char_db['chat_shut']; $bank = $adb->selectCol("SELECT `id` FROM `character_bank` WHERE `guid` = ?d", $guid); foreach ($bank as $num => $bank_id) { if (empty($credits)) $credits = $bank_id; else $credits .= ",".$bank_id; } ?>
"; ?>
equip->showCharacter('inv');?>

$lang[shut_desc] ".getFormatedTime($chat_shut)."

".getExp($exp)." (".getExp($next_up).")
" . "$lang[games]   $win   $lose   $draw
" . "$lang[money] $money кр.
"; if ($bank) { echo "
$lang[bank] "; if (empty($_SESSION['bankСredit'])) echo "$lang[credit_choose]"; else if (!empty($_SESSION['bankСredit'])) { $bank_info = $adb->selectRow("SELECT `cash`, `euro` FROM `character_bank` WHERE `id` = ?d", $_SESSION['bankСredit']); echo "".getMoney($bank_info['cash'])."кр. ".getMoney($bank_info['euro'])."екр."; } echo ""; } else if ($level > 0) echo "
Банк: информация"; echo "
"; foreach ($bars as $bar => $value) echo "
".$char->showInventoryBar($bar, $value, count($bars))."
"; echo ""; echo ($clan) ?"$lang[clan] $clan ($chin)
" :""; ?>
error->getFormattedError($error, $parameters);?>
"> "> "> ">
($mass/$maxmass";?>, )
select("SELECT * FROM `character_inventory` AS `c` LEFT JOIN `item_template` AS `i` ON `c`.`item_entry` = `i`.`entry` WHERE `i`.`section` = ?s and `c`.`guid` = ?d and `c`.`wear` = '0' and `c`.`mailed` = '0' ORDER BY `c`.`last_update` DESC", $data['sections'][$section] ,$guid); if (count($rows) > 0) { $i = 1; foreach ($rows as $item_info) { echo $char->equip->showItem($item_info, 'inv', $i); $i = !$i; } } else echo "
$lang[empty]
"; ?>
select(" SELECT * FROM `character_inventory` AS `c` LEFT JOIN `item_template` AS `i` ON `c`.`item_entry` = `i`.`entry` WHERE `i`.`section` = ?s and `c`.`guid` = ?d", $section ,$guid); $i = 0; foreach ($rows as $dat) { switch ($dat['type']) { case 'wood': $obj_id = $dat['object_id']; $item_id = $dat['id']; $obj_data = $adb->selectRow("SELECT * FROM `wood` WHERE `id` = ?d", $obj_id); $name = $obj_data['name']; $img = $obj_data['img']; $mass = $obj_data['mass']; $price = $obj_data['price']; $chet = ($i % 2 === 0) ?"C7C7C7" :"D5D5D5"; echo "
"; echo "
"; echo "
"; echo "
$name    (Масса: $mass)
"; echo "Цена: $price зл.
"; echo "Масса: $mass ед.
"; echo "
"; $i++; break; case 'medal': $obj_id = $dat['object_id']; $item_id = $dat['id']; $wear = $dat['wear']; $gift_author = $dat['gift_author']; $obj_data = $adb->selectRow("SELECT * FROM `medal` WHERE `id` = ?d", $obj_id); $name = $obj_data['name']; $img = $obj_data['img']; $msg = $obj_data['msg']; $add_l = $obj_data['add_l']; $add_u = $obj_data['add_u']; $disc = $obj_data['disc']; $chet = ($i % 2 === 0) ?"C7C7C7" :"D5D5D5"; echo "
"; echo "
"; if ($wear == 0) echo "одеть"; else if ($wear == 1) echo "снять"; echo "
"; echo "
$name
"; if (!empty($add_l)) echo "Реакция: +$add_l
"; if (!empty($add_u)) echo "Удача: +$add_u
"; echo "$disc"; echo "
"; $i++; break; case 'book': $obj_id = $dat['object_id']; $item_id = $dat['id']; $pages_used = $dat['pages_used']; $gift_author = $dat['gift_author']; $book_name = $dat['book_name']; $iznos = $dat['iznos']; $iznos_all = $dat['tear_max']; $obj_data = $adb->selectRow("SELECT * FROM `book` WHERE `id` = ?d", $obj_id); $name = $obj_data['name']; $img = $obj_data['img']; $min_i = $obj_data['min_int']; $min_v = $obj_data['min_wis']; $min_level = $obj_data['min_level']; $add_i = $obj_data['add_int']; $add_mp = $obj_data['add_mp']; $add_water = $obj_data['add_water']; $add_earth = $obj_data['add_earth']; $add_fire = $obj_data['add_fire']; $add_air = $obj_data['add_fire']; $pages = $obj_data['pages']; if (empty($book_name)) $book_name = "Без названия."; echo "
"; echo "
"; if ($book_name == "Без названия.") echo "заглавие"; echo "
"; echo "
$name
"; echo "Заглавие: $book_name
"; echo "Использований: $iznos/$iznos_all
"; if (!empty($add_i)) echo "Разум: +$add_i
"; if (!empty($add_mp)) echo "Уровень маны: +$add_mp
"; if ($add_water > 0) echo "Магия воды: +$add_water
"; if ($add_earth > 0) echo "Магия земли: +$add_earth
"; if ($add_fire > 0) echo "Магия огня: +$add_fire
"; if ($add_air > 0) echo "Магия воздуха: +$add_air
"; echo "Страниц: $pages_used/$pages
"; echo "
"; $i++; break; case 'scroll': $obj_id = $dat['object_id']; $item_id = $dat['id']; $gift_author = $dat['gift_author']; $iznos = $dat['iznos']; $iznos_all = $dat['tear_max']; $obj_data = $adb->selectRow("SELECT * FROM `scroll` WHERE `id` = ?d", $obj_id); $name = $obj_data['name']; $img = $obj_data['img']; $min_i = $obj_data['min_int']; $min_v = $obj_data['min_wis']; $min_level = $obj_data['min_level']; // $desc = $obj_data['desc']; // $type = $obj_data['type']; $mp = $obj_data['mp']; $mass = $obj_data['mass']; $veroyat = $obj_data['veroyat']; echo "
"; echo "
"; if ($level >= $min_level && $wisdom >= $min_v && $int >= $min_i && $mp >= $mp) // && $type != "battle" echo "
исп-ть
"; else echo "
нельзя исп-ть
"; echo "
"; echo "
$name    (Масса: $mass)
"; echo "
Долговечность: $iznos/$iznos_all
"; if (!empty($veroyat)) echo "Вероятность срабатывания: $veroyat%
"; echo "Требуется минимальное:
"; if ($min_level > $level) echo "• Уровень: $min_level
"; else if ($min_level <= $level) echo "• Уровень: $min_level
"; if (!empty($min_i) && $min_i > $int) echo "• Интеллект: $min_i
"; else if (!empty($min_i) && $min_i <= $int) echo "• Интеллект: $min_i
"; if (!empty($min_v) && $min_v > $wisdom) echo "• Мудрость: $min_v
"; else if (!empty($min_v) && $min_v <= $wisdom) echo "• Мудрость: $min_v
"; if (!empty($mp) && $mp <= $mp) echo "• Исп. маны: $mp
"; else if ($mp > $mp) echo "• Исп. маны: $mp
"; // if (!empty($desc)) // echo "Параметры:
"; // echo "$desc"; echo "
"; $i++; break; } } break; } */ ?>