if($row[round] == 9 AND $row[win] == $row[c2id]) {
$new_exp_2 += 250000;
$add_exp2 += 250000;
$new_lernpunkte2 += 30;
$trainings_points2 += 50;
$new_geld2 += 2000000;
}
$old_win = $row[win];
if($row['round'] == 9 AND $row['win'] == $row['c2id']) {
$new_exp_2 += 250000;
$add_exp2 += 250000;
$new_lernpunkte2 += 30;
$trainings_points2 += 50;
$new_geld2 += 2000000;
}
$old_win = $row['win'];
//mysql_query("UPDATE chars SET training_points=training_points+'$trainings_points1', lernpunkte='$new_lernpunkte1', hp='$new_hp[$new_hp2],$or_hp1[1]', mp='$new_mp[$new_mp2],$or_mp1[1]', exp='$new_exp,$or_exp1[1]' WHERE id='$row[c1id]'");
//mysql_query("UPDATE chars SET training_points=training_points+'$trainings_points2',lernpunkte='$new_lernpunkte2', hp='$new_hp_2[$new_hp2_2],$or_hp1_2[1]', mp='$new_mp_2[$new_mp2_2],$or_mp1_2[1]', exp='$new_exp_2,$or_exp1_2[1]' WHERE id='$row[c2id]'");
//mysql_query("UPDATE chars SET exp='$new_exp,$or_exp1[1]' WHERE id='$row[c1id]'");
//mysql_query("UPDATE chars SET exp='$new_exp_2,$or_exp1_2[1]' WHERE id='$row[c2id]'");
//mysql_query("UPDATE chars SET training_points=training_points+'$trainings_points1', lernpunkte='$new_lernpunkte1', hp='$new_hp[$new_hp2],$or_hp1[1]', mp='$new_mp[$new_mp2],$or_mp1[1]', exp='$new_exp,$or_exp1[1]' WHERE id='$row[c1id]'");
//mysql_query("UPDATE chars SET training_points=training_points+'$trainings_points2',lernpunkte='$new_lernpunkte2', hp='$new_hp_2[$new_hp2_2],$or_hp1_2[1]', mp='$new_mp_2[$new_mp2_2],$or_mp1_2[1]', exp='$new_exp_2,$or_exp1_2[1]' WHERE id='$row[c2id]'");
//mysql_query("UPDATE chars SET exp='$new_exp,$or_exp1[1]' WHERE id='$row[c1id]'");
//mysql_query("UPDATE chars SET exp='$new_exp_2,$or_exp1_2[1]' WHERE id='$row[c2id]'");
addExpToChar($row['c1id'],$add_exp1);
addExpToChar($row['c2id'],$add_exp2);
addExpToChar($row['c1id'],$add_exp1);
addExpToChar($row['c2id'],$add_exp2);
mysql_query("UPDATE user SET geld='$new_geld1' WHERE id='$row[i1id]' LIMIT 1");
mysql_query("UPDATE user SET geld='$new_geld2' WHERE id='$row[i2id]' LIMIT 1");
mysql_query("UPDATE user SET geld='$new_geld1' WHERE id='$row[i1id]' LIMIT 1");
mysql_query("UPDATE user SET geld='$new_geld2' WHERE id='$row[i2id]' LIMIT 1");
}
@ -108,12 +109,18 @@ mysql_query("UPDATE online SET turnier_gross='$win_online[turnier_gross],$win_us
$sql = 'select u.clan, c.id, u.id as userid from chars c inner join user u on c.besitzer = u.id where c.id IN ('.$rang1['win'].','.$rang2['win'].','.$rang3['win'].','.$rang4['win'].','.$rang5['win'].','.$rang6['win'].','.$rang7['win'].','.$rang8['win'].','.$rang9['win'].','.$rang10['win'].','.$rang11['win'].','.$rang12['win'].','.$rang13['win'].','.$rang14['win'].','.$rang15['win'].','.$rang16['win'].')';
@ -187,7 +187,7 @@ mysql_query('DELETE FROM user_activation where TIMESTAMPDIFF(day, registerdate,
mysql_query('DELETE FROM anon_chatter WHERE TIMESTAMPDIFF(day, online, now()) > 35'); // 5 Wochen
// Loesche inaktive user!
$sql = 'Select * from user where TIMESTAMPDIFF(week, online_zeit, now()) > 10 and id > 2';
$sql = 'Select * from user where TIMESTAMPDIFF(week, online_zeit, now()) > 10 and id > 2 and id not in (SELECT user_id FROM user_gruppe_zuordnung WHERE gruppen_id = 7 AND user_id = id)';