Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739
Crazy Tronners Wiki - Running a Server

Running a Server

From Tronwiki
Jump to: navigation, search
(Random Flying Deathzones)
Line 69: Line 69:
 
     }
 
     }
 
}
 
}
 +
?></nowiki>
 +
 +
==Alternating Death Pulses==
 +
Create a grid of deathzone markers, then have them alternatively pules with death, gradually getting larger every 7 seconds.
 +
<nowiki>#!/usr/bin/php
 +
<?php
 +
while (1)  {
 +
    $line = rtrim(fgets(STDIN, 1024));
 +
    // watch the game time to update settings based on time
 +
    if (preg_match("/^GAME_TIME/", $line)){
 +
        $keywords = preg_split("/ /", $line);
 +
        $game_time=$keywords[1];
 +
    if ( $game_time == 0 ) {
 +
        for ( $i=0; $i<=500; $i+=50 )
 +
        for ( $j=0; $j<=500; $j+=50 )
 +
        print("spawn_zone death $i $j 1 0\n");
 +
    } else if ( $game_time % 14 == 0 ) {
 +
        for ( $i=0; $i<=500; $i+=100 )
 +
            for ( $j=0; $j<=500; $j+=100 )
 +
                print("spawn_zone death $i $j " . $game_time/2 . " -" . $game_time/5 . "\n");
 +
    } else if ( $game_time % 7 == 0 ) {
 +
        for ( $i=50; $i<=450; $i+=100 )
 +
            for ( $j=50; $j<=450; $j+=100 )
 +
                print("spawn_zone death $i $j " . $game_time/2 . " -" . $game_time/5 . "\n");
 +
            }
 +
        }
 +
    }
 
?></nowiki>
 
?></nowiki>

Revision as of 12:25, 3 October 2007

Personal tools