|
|
@ -268,10 +268,10 @@ function displaySchatzSuche($char){
|
|
|
|
$items = getSchatzItems($row['anzahl']);
|
|
|
|
$items = getSchatzItems($row['anzahl']);
|
|
|
|
|
|
|
|
|
|
|
|
for($i=0;$items[$i];$i++){
|
|
|
|
for($i=0;$items[$i];$i++){
|
|
|
|
$res = mysql_query('Update quest_item_stats set anzahl = anzahl + 1 WHERE monster = '.$row['anzahl'].' and id = '.$items[i]['id']);
|
|
|
|
$res = mysql_query('Update quest_item_stats set anzahl = anzahl + 1 WHERE monster = '.$row['anzahl'].' and id = '.$items[$i]['id']);
|
|
|
|
if(mysql_affected_rows() == 0){
|
|
|
|
if(mysql_affected_rows() == 0){
|
|
|
|
// entry not yet present
|
|
|
|
// entry not yet present
|
|
|
|
mysql_query('INSERT INTO quest_item_stats (monster, id, anzahl) values('.$row['anzahl'].', '.$items[i]['id'].', 1)');
|
|
|
|
mysql_query('INSERT INTO quest_item_stats (monster, id, anzahl) values('.$row['anzahl'].', '.$items[$i]['id'].', 1)');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else{
|
|
|
|
} else{
|
|
|
|