SHARE
TWEET

Untitled

a guest Jun 30th, 2018 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <?php require_once('Pickle.php');
  2.     define ("NUM_THREAD", 4);
  3.     $user = array();
  4.     $pass = array();
  5.     $server = "Sleet";
  6.     $room = 800;
  7.     $user[1] = "user";
  8.     $user[2] = "user";
  9.     $user[3] = "brufeeqz";
  10.     $user[4] = "user";
  11.     $pass[1] = "senhaqaulquer";
  12.     $pass[2] = "senhaaaa";
  13.     $pass[3] = "(d)";
  14.     $pass[4] = "senhaaa";
  15.     $numberphrases = 5;
  16.     $phrases = array();
  17.     $phrases[0] = "CREEK";
  18.     $phrases[1] = "PANIC";
  19.     $phrases[2] = "SAVE CREEK";
  20.     $phrases[3] = "PANIC";
  21.     $phrases[4] = "SAVE CREEK";
  22.     $phrases[5] = "PANIC";
  23.     $phrases[0] = "THE WORLD IS GOING TO END";
  24.     $phrases[1] = "PANIC";
  25.     $phrases[2] = "THE WORLD IS GOING TO END";
  26.     $phrases[3] = "PANIC";
  27.     $phrases[4] = "SAVE US";
  28.     $phrases[5] = "THE WORLD IS GOING TO END";
  29.      $penguins = array();
  30.      for($x = 1; $x <= NUM_THREAD; $x++){
  31.           $penguins[$x] = new Pickle();
  32.           $connect = $penguins[$x]->connect($user[$x], $pass[$x], $server);
  33.           if($connect != -1){
  34.                die($connect);
  35.           }
  36.           if($penguins[$x]->extRoomID != $room){
  37.                $penguins[$x]->joinRoom($room, rand(100,700), rand(100,700));
  38.            }
  39.       }
  40.      while(true){
  41.      for($x = 1; $x <= NUM_THREAD; $x++){
  42.           $penguins[$x]->sendPosition(rand(100,700), rand(100,700));
  43.           $phrase = rand(1, $numberphrases);
  44.           $penguins[$x]->sendMessage($phrases[$phrase]);
  45.           usleep((2000000 / NUM_THREAD));
  46.       }
  47.       }
  48.  
  49.     ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top