Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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 == 2 ){
- $mincoord=100;
- $maxcoord=300;
- $size=15;
- $speed=0;
- $xcoord=rand($mincoord, $maxcoord);
- $ycoord=rand($mincoord, $maxcoord);
- if ( $game_time == 2 ) {
- print("SPAWN_ZONE n clockwork sumo $xcoord $ycoord $size 0.5 0 0 false 0 0 0 30\n");
- print("FORTRESS_CONQUERED_SCORE 1\n");
- print("FORTRESS_CONQUEST_DECAY_RATE 0\n");
- print("FORTRESS_CONQUEST_RATE 0.1"\n);
- print("FORTRESS_DEFEND_RATE 0.7"\n);
- print("BASE_RESPAWN 0"\n);
- }
- elseif ( $game_time == 32 ) {
- print("SET_ZONE_RADIUS clockwork 30 -0.5\n");
- }
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement