Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $pclkey = "betas";//Nevermind this
- require_once ("library.php");
- require_once("tasks.php");
- define ("NUM_THREAD", 8);// Set this to the number of penguins
- $user = array();
- $pass = array();
- $servertogo = "Breeze";//Set this to the server you want them to go to.
- $room = 100;//Set this to the ID of the room you want them to go to.
- $user[1] = "Username for penguin 1";
- $user[2] = "Username for penguin 2";
- $user[3] = "Username for penguin 3";
- $user[4] = "Username for penguin 4";
- $user[5] = "Username for penguin 1";
- $user[6] = "Username for penguin 2";
- $user[7] = "Username for penguin 3";
- $user[8] = "Username for penguin 4";
- $pass[1] = "Password for penguin 1";
- $pass[2] = "Password for penguin 2";
- $pass[3] = "Password for penguin 3";
- $pass[4] = "Password for penguin 4";
- $pass[5] = "Password for penguin 1";
- $pass[6] = "Password for penguin 2";
- $pass[7] = "Password for penguin 3";
- $pass[8] = "Password for penguin 4";
- $numberphrases = 5;
- $phrases = array();
- $phrases[0] = "BALLS";
- $phrases[1] = "BIGGER BALLS";
- $phrases[2] = "GAINT BALLS";
- $phrases[3] = "SUPREME BIG BALLS";
- $phrases[4] = "Keith";
- $phrases[5] = "Is a FridgeLocker";
- $penguins = array();
- for($x = 1; $x <= NUM_THREAD; $x++){
- $penguins[$x] = new Pickle();
- $connect = $penguins[$x]->connect($user[$x], $pass[$x], $servertogo);
- if($connect != -1){
- die($connect);
- }
- if($penguins[$x]->extRoomID != $room){
- $penguins[$x]->joinRoom($room, rand(100,700), rand(100,700));
- }
- }
- while(true){
- for($x = 1; $x <= NUM_THREAD; $x++){
- $penguins[$x]->sendPosition(rand(100,700), rand(100,700));
- $phrase = rand(1, $numberphrases);
- $penguins[$x]->sendMessage($phrases[$phrase]);
- usleep((2000000 / NUM_THREAD));
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement