$jobid = $character_data['job']; $is_mercedes = $jobid == 2002 || $jobid >= 2300 && $jobid <= 2312; $ds_mark = $character_data['demonmark']; $q->free(); $show_flipped = isset($_GET['flip']); $using_face = GetCharacterOption($internal_id, 'avatar_face', CURRENT_LOCALE, 'default'); if (isset($_GET['face']) && !empty($_GET['face'])) { $using_face = $_GET['face']; } if (isset($_GET['madface'])) { $using_face = 'angry'; } if (!isset($avatar_faces[$using_face])) { $using_face = 'default'; } $char_stance = isset($_GET['stance']) ? $_GET['stance'] : GetCharacterOption($internal_id, 'avatar_stance', CURRENT_LOCALE, 'stand'); $char_stance_frame = isset($_GET['stance_frame']) ? $_GET['stance_frame'] : '0'; $stand = 1; $weapongroup = -1; $shown_items = array(); // Get character equipment $character_equipment = $__char_db->query("\nSELECT \n\titemid, slot, display_id \nFROM \n\t`items` \nWHERE \n\t`character_id` = " . $internal_id . "\nAND \n\t`inventory` = 0 \nAND \n\t`slot` < 0 \nAND \n\t`slot` > -200 \n/*\n# If you want to hide expired items... uncomment\nAND\n\tTO_FILETIME(NOW()) < `expires` \n*/\nORDER BY \n\t`slot` DESC\n"); while ($row2 = $character_equipment->fetch_assoc()) { $slot = abs($row2['slot']) % 100; $itemid = GetID($row2); $iscash = floor(abs($row2['slot']) / 100) == 1; if (DEBUGGING) { echo 'Slot: ' . $row2['slot'] . ' (' . $slot . ') : ' . $itemid . "\r\n"; } if (!$iscash) { if (isset($shown_items[$slot])) {
echo $name; ?> .<p> <?php } } } $i = 0; $chars_per_row = 3; foreach ($cache as $row) { if ($char_config['main_character'] == null) { $char_config['main_character'] = $row['name']; } $shown_option_value = isset($char_config['characters'][$row['internal_name']]) ? $char_config['characters'][$row['internal_name']] : 0; // Default = 0 $shown_face_value = GetCharacterOption($row['internal_id'], 'avatar_face', $row['locale'], 'default'); $data_domain = $row['locale'] . '.' . $domain; if ($i % $chars_per_row == 0) { if ($i > 0) { ?> </div> <?php } ?> <div class="row"> <?php } ?> <script> $(function () { $("#<?php
ParseItem($skin + 10000); ParseItem($hair); ParseItem($face); // non-naked clothes ParseItem($gender == 0 ? 1060026 : 1061039); if ($ds_mark > 0) { ParseItem($ds_mark); } foreach ($shown_items as $slot => $itemid) { ParseItem($itemid); } krsort($zlayers); //if (DEBUGGING) // print_r($zlayers); if (isset($_GET['use_bg'])) { $bg = GetCharacterOption($internal_id, 'avatar_bg'); if ($bg !== null) { $bgname = ''; switch ($bg) { case 0: $bgname = 'fm'; break; case 1: $bgname = 'kerning'; break; case 2: $bgname = 'kerning_hideout'; break; case 3: $bgname = 'monsterpark'; break;