@ -164,12 +164,15 @@ function displayNPCInfo($action, $task, $charid) {
$sql = 'SELECT kl.*, ni.* FROM chars c inner join npc_item ni on ni.charakter = c.id inner join kampf_list kl on ni.charakter = kl.charakter WHERE c.id ='.$charid;
//$sql = 'SELECT * FROM chars c inner join kampf_list kl on c.id = kl.charakter WHERE c.id ='.$charid;
//echo $sql."<br>";
$qry = db_query($sql);
$row = mysql_fetch_assoc($qry);
// Fetch the char array by getChar method (for backwards compat) with no caching enabled!
$char_data = getChar($charid, false);
foreach( $char_data as $key => $value ) {
$row[$key] = $value;
if($key != 'item') {
$row[$key] = $value;
}
}
}
@ -213,9 +216,9 @@ function displayNPCInfo($action, $task, $charid) {