Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1. #!/usr/bin/php
  2.  
  3. <?php
  4.  
  5. while (1)  {
  6.     $line = rtrim(fgets(STDIN, 1024));
  7.     // watch the game time to update settings based on time
  8.     if ( preg_match( "/^GAME_TIME/", $line ) ){
  9.         $keywords = preg_split("/ /", $line);
  10.         $game_time=$keywords[1];
  11.         if ( $game_time == 2 ){
  12.             $mincoord=100;
  13.             $maxcoord=300;
  14.             $size=15;
  15.             $speed=0;
  16.             $xcoord=rand($mincoord, $maxcoord);
  17.             $ycoord=rand($mincoord, $maxcoord);
  18.             if ( $game_time == 2 ) {
  19.                 print("SPAWN_ZONE n clockwork sumo $xcoord $ycoord $size 0.5 0 0 false 0 0 0 30\n");
  20.                 print("FORTRESS_CONQUERED_SCORE 1\n");
  21.                 print("FORTRESS_CONQUEST_DECAY_RATE 0\n");
  22.                 print("FORTRESS_CONQUEST_RATE 0.1"\n);
  23.                 print("FORTRESS_DEFEND_RATE 0.7"\n);
  24.                 print("BASE_RESPAWN 0"\n);
  25.            
  26.             }
  27.             elseif ( $game_time == 32 ) {
  28.                 print("SET_ZONE_RADIUS clockwork 30 -0.5\n");
  29.             }
  30.         }
  31.         }
  32.     }
  33.  
  34.  
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement