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.
38 lines
1.0 KiB
38 lines
1.0 KiB
<?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']);
|
|
|
|
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');
|
|
|
|
?>
|