@ -164,14 +164,17 @@ 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 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;
//$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);
$qry = db_query($sql);
$row = mysql_fetch_assoc($qry);
$row = mysql_fetch_assoc($qry);
// Fetch the char array by getChar method (for backwards compat) with no caching enabled!
// Fetch the char array by getChar method (for backwards compat) with no caching enabled!
$char_data = getChar($charid, false);
$char_data = getChar($charid, false);
foreach( $char_data as $key => $value ) {
foreach( $char_data as $key => $value ) {
if($key != 'item') {
$row[$key] = $value;
$row[$key] = $value;
}
}
}
}
}
$attacks = getNPCAttacks();
$attacks = getNPCAttacks();
$colspan = 2;
$colspan = 2;
@ -213,9 +216,9 @@ function displayNPCInfo($action, $task, $charid) {