|
|
|
@ -166,9 +166,9 @@ if ($kampf1['id']) {
|
|
|
|
|
if ($kampf1['art2'] == "NPC") {
|
|
|
|
|
$item = mysql_fetch_array(mysql_query('SELECT item, mal, datensatz, wieviel, feld FROM npc_item WHERE charakter='.$kampf1['char2'].';'));
|
|
|
|
|
|
|
|
|
|
$schon_bekommen = mysql_num_rows(mysql_query("SELECT id FROM npc_ware WHERE charakter='$kampf1[char2]' AND user='$user_ida[id]' LIMIT 20"));
|
|
|
|
|
$schon_bekommen = mysql_fetch_assoc(mysql_query("SELECT Count(*) as anzahl FROM npc_ware WHERE charakter='$kampf1[char2]' AND user='$user_ida[id]'"));
|
|
|
|
|
|
|
|
|
|
if ($schon_bekommen >= $item['mal']) {
|
|
|
|
|
if ($schon_bekommen['anzahl'] >= $item['mal']) {
|
|
|
|
|
/////item schon bekommen
|
|
|
|
|
//wtf?! :D wasn das für ne if-anweisung :D :D :D
|
|
|
|
|
} else {
|
|
|
|
|