<?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 ('inclu/halloffame.inc.php'); include_once ('inclu/turnier.inc.php'); include_once ('inclu/char.inc.php'); $name = 'klein'; // do the stuff for the whole exp and money distribution there ;) $results = generateTournamentResults($name, 10000, 15000); $rang1 = getChar($results[0][0]); // Hall of fame! // insertIntoHallOfFame($title, $charid, $userid); insertIntoHallOfFame('Anfängerturnier', $rang1['id'], $rang1['besitzer']); /* FIXME: Before we can do this we have to resolve the include chaos!! if(getHallOfFameEntryCount('Anfängerturnier', $rang1['id']) >= 2) { // remove all chars that are registered mysql_query('DELETE FROM turnier1 WHERE art = \'klein\' AND besitzer = '.$rang1['besitzer']); } */ // Now distribute the shop points ;) $prices[] = 25; // 1. (max win) $prices[] = 20; // 2. (max win - 1) $prices[] = 15; // 3. + 4. (max win -2) distributeShopPoints($prices, $results, 'Anfängerturnier'); ?>