You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			37 lines
		
	
	
		
			886 B
		
	
	
	
		
			PHP
		
	
			
		
		
	
	
			37 lines
		
	
	
		
			886 B
		
	
	
	
		
			PHP
		
	
<?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');
 | 
						|
 | 
						|
// 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_rand(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');
 |