|
|
|
@ -20,6 +20,7 @@
|
|
|
|
|
* bei der Schatzsuche gewünscht ^^
|
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Put args into get
|
|
|
|
|
|
|
|
|
|
// Neccessary for cronjob execution
|
|
|
|
@ -40,7 +41,7 @@ if ($argv) {
|
|
|
|
|
include('db.php');
|
|
|
|
|
include('path.inc.php');
|
|
|
|
|
include_once(ROOT_PATH.'/include/char.inc.php');
|
|
|
|
|
|
|
|
|
|
include_once(ROOT_PATH.'/include/rassen.inc.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$name = $_GET['name']; // Name des Turniers (benötigt)
|
|
|
|
@ -124,16 +125,23 @@ if($gruppenphase == 1){
|
|
|
|
|
|
|
|
|
|
mysql_query('DELETE FROM turnier_kampf WHERE art=\''.$name.'\'');
|
|
|
|
|
|
|
|
|
|
$race_type = getRaceTypeName("NPC");
|
|
|
|
|
|
|
|
|
|
// Es sollen keine NPC mitmachen :) und nicht die Spezial Wanted NPCs
|
|
|
|
|
$auswahl_kriteria = ' rasse != \'NPC\' ';
|
|
|
|
|
$auswahl_kriteria = ' type!=\''.$race_type.'\'';
|
|
|
|
|
$auswahl_kriteria .= ' AND besitzer!=2 ';
|
|
|
|
|
if($fusion != 1){
|
|
|
|
|
$auswahl_kriteria .= ' AND fusion=\'nein\' ';
|
|
|
|
|
$auswahl_kriteria .= ' AND fusions_rasse = \'0\' ';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$races = getSpecialRaceIds();
|
|
|
|
|
$special_race_ids = array();
|
|
|
|
|
foreach($races as $race) {
|
|
|
|
|
$special_race_ids[] = '\''.$race['id'].'\'';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($special != 1){
|
|
|
|
|
$auswahl_kriteria .= ' AND char_type = \'\' ';
|
|
|
|
|
$auswahl_kriteria .= ' AND rasse NOT IN('.implode(',',$special_race_ids).') ';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(is_numeric($minlevel)){
|
|
|
|
|