RowCount() == 0) { echo ("BIG_ERROR_1"); } $line = $result->FetchRow(); $STORED_sex = "$line[0]"; //PALASX SET POSE $pose=rand(0,2); $pose_array = array('sit','sta','fig'); $pose=$pose_array[$pose]; if (!$POST_action) { EchoHead(80); echo "
Name: '.$A.'
Lvl.'.$C.' / '.$B.' / Lvl.'.$D.'
Zeny:'.$E.'
'.$G.'
'.$H.'
'.$I.'
'.$J.'
'.$K.'
'.$L.'
'.$M.'
'.$N.'
'.$Guild_Name.'
'.$O.'
x: '.$P.', y: '.$Q.'
', $CONFIG['image_folder'], $STORED_sex, $char_class);
$hair_gif = sprintf('
', $CONFIG['image_folder'], $STORED_sex, $char_hair, $char_color);
$top_gif = sprintf('
', $CONFIG['image_folder'], $STORED_sex, $char_top);
$mid_gif = sprintf('
', $CONFIG['image_folder'], $STORED_sex, $char_mid);
$bot_gif = sprintf('
', $CONFIG['image_folder'], $STORED_sex, $char_bot);
$head_x = 100;
$head_y = 10;
if($STORED_sex == 'F'){$head_x = 95;}
if (!file_exists(sprintf('%s/char/%s/helm_01_%d.gif', $CONFIG['image_folder'], $STORED_sex, $char_top))){$top_gif=" ";}
if (!file_exists(sprintf('%s/char/%s/helm_02_%d.gif', $CONFIG['image_folder'], $STORED_sex, $char_mid))){$mid_gif=" ";}
if (!file_exists(sprintf('%s/char/%s/helm_03_%d.gif', $CONFIG['image_folder'], $STORED_sex, $char_bot))){$bot_gif=" ";}
$col_value = '
Equipment
'.$job_gif.'
'.$hair_gif.'
'.$top_gif.'
'.$mid_gif.'
'.$bot_gif.'
';
echo "$col_value\n";
//---Inventory MGMT-------------------------------------------------------------------------
$query_inv = sprintf(GET_INVENTORY, $char_id);
$result_inv = execute_query($query_inv, "roster.php");
while ($line_inv = $result_inv->FetchRow()) {
foreach ($line_inv as $display_index_inv => $col_value_inv) {
if ($display_index_inv == 0) {
$A = $col_value_inv;
continue;
}
elseif ($display_index_inv == 1) {
$B = $col_value_inv;
continue;
}
elseif ($display_index_inv == 2) {
$C = $col_value_inv;
continue;
}
elseif ($display_index_inv == 3) {
$D = $col_value_inv;
continue;
}
elseif ($display_index_inv == 4) {
$E = $col_value_inv;
if ($E) { $E = "+$E"; } else { $E = ""; }
$Inv_Name = ItemID_To_ItemName($B);
$Inv_Name = str_replace("'", "\'", $Inv_Name);
$inv_pic = '
';
switch($D){
case 1:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 2:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 4:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 8:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 16:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 32:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 34:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 64:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 128:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 256:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 257:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'
'.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 512:
echo ''.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 513:
echo '
'.$inv_pic.''.$E.' '.$Inv_Name.'
'.$inv_pic.''.$Inv_Name.'';
break;
case 768:
echo '
'.$inv_pic.''.$E.' '.$Inv_Name.'
'.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
case 769:
echo '
'.$inv_pic.''.$E.' '.$Inv_Name.'
'.$inv_pic.''.$E.' '.$Inv_Name.'
'.$inv_pic.''.$E.' '.$Inv_Name.'';
break;
default:
$inv_array[] = $B;
$amt_array[] = $C;
$ref_array[] = $E;
break;
}
}
}
}
echo "\n
';
echo '' . $inv_pic . '';
echo "\n";
$j++;
}
}
echo "\n