You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

14 years ago
<?php
/*
*
* @copyright (c) 2010 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include "db.php";
include_once('path.inc.php'); // get the path ;)
include_once (ROOT_PATH.'/include/sqlwrapper.inc.php');
14 years ago
include_once ('inclu/halloffame.inc.php');
include_once ('inclu/turnier.inc.php');
include_once ('inclu/char.inc.php');
14 years ago
$name = 'klein';
// do the stuff for the whole exp and money distribution there ;)
$results = generateTournamentResults($name, 10000, 0);
14 years ago
$rang1 = getChar($results[0][0]);
14 years ago
// Hall of fame!
14 years ago
// insertIntoHallOfFame($title, $charid, $userid);
insertIntoHallOfFame('Anf&auml;ngerturnier', $rang1['id'], $rang1['besitzer']);
14 years ago
/* FIXME: Before we can do this we have to resolve the include chaos!!
if(getHallOfFameEntryCount('Anf&auml;ngerturnier', $rang1['id']) >= 2) {
14 years ago
// remove all chars that are registered
db_query('DELETE FROM turnier1 WHERE art = \'klein\' AND besitzer = '.$rang1['besitzer']);
14 years ago
}
*/
14 years ago
// Now distribute the shop points ;)
14 years ago
$prices[] = 25; // 1. (max win)
$prices[] = 20; // 2. (max win - 1)
$prices[] = 15; // 3. + 4. (max win -2)
14 years ago
distributeShopPoints($prices, $results, 'Anfängerturnier');
14 years ago
?>