|
|
|
<?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/fruitdistribution.inc.php');
|
|
|
|
include_once ('inclu/exp.inc.php');
|
|
|
|
|
|
|
|
include_once ('inclu/turnier.inc.php');
|
|
|
|
include_once ('inclu/char.inc.php');
|
|
|
|
include_once(ROOT_PATH. "/include/random.inc.php");
|
|
|
|
|
|
|
|
// do the stuff for the whole exp and money distribution there ;)
|
|
|
|
$results = generateTournamentResults('wochen', 15000, 0);
|
|
|
|
$rang1 = getChar($results[0][0]);
|
|
|
|
|
|
|
|
insertIntoHallOfFame('Wochenturnier', $rang1['id'], $rang1['besitzer']);
|
|
|
|
|
|
|
|
$xiu=5;
|
|
|
|
|
|
|
|
if($xiu >= mt_random_wrapper(1, 100)) {
|
|
|
|
////////////////FRUCHT ARRAY
|
|
|
|
//include "array.php";
|
|
|
|
distributeFruit($rang1['besitzer']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$prices[] = 50; // 1.
|
|
|
|
$prices[] = 40; // 2.
|
|
|
|
$prices[] = 30; // 3. + 4.
|
|
|
|
$prices[] = 20; // 5. - 8.
|
|
|
|
|
|
|
|
distributeShopPoints($prices, $results, 'Wochenturnier');
|