SHARE
TWEET

Untitled

a guest Oct 3rd, 2017 374 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Share onFacebookShare onTwitterShare viaemail
  3. <?php
  4.  
  5. // You shouldn't be editing this file!
  6.  
  7. $count = 0;
  8. require("Pickle.php");
  9. echo "---------------------------------------------------------------------------\nPenguin Trillion PM bomber by SweetTooth. Email: sweettooth606@gmail.com\n\n";
  10.        
  11. fwrite(STDOUT, "Penguin Trillion username: ");
  12. $Username = trim(fgets(STDIN));
  13.  
  14. fwrite(STDOUT, "Penguin Trillion password: ");
  15. $Password = trim(fgets(STDIN));
  16.        
  17. fwrite(STDOUT, "Private message to send to everyone: ");    
  18. $PMmessage = trim(fgets(STDIN));
  19.  
  20. // Connects to server
  21. $p = new Pickle;
  22. $p->connect($Username, $Password, "trillion", "glacier");
  23.  
  24. //Room ids
  25. $rooms =  "100%110%111%120%121%130%200%220%221%230%300%310%320%330%400%410%411%800%801%802%803%804%805%806%807%808%809%810%420%421";
  26. $rooms  = explode("%", $rooms);
  27.  
  28. //Starts the bombing run
  29. while(true){
  30.     // # of rooms
  31.     for ($i = 0; $i <= 29; $i++) {
  32.         $p->joinRoom($rooms[$i]);
  33.         $ourRoom = $globrooms[$rooms[$i]]['name'];
  34.         $Players = sizeof($p->arrPlayers) - 3;
  35.             if ($Players == 1){
  36.                 echo "\nThere is $Players player in the $ourRoom\n";
  37.             } else {
  38.                 echo "\nThere are $Players players in the $ourRoom\n";
  39.             }
  40.            
  41.         foreach($p->arrPlayers as  $objPeng)  {
  42.         $user = $objPeng->getUsername();
  43.         // Don't send PM to self or bot
  44.             if (strtolower($user) != strtolower($Username) && $user != "Trillion"){
  45.                 // Sends the PM
  46.                 $p->sendMessage("!pm $user $PMmessage");
  47.                     if ($user != NULL){
  48.                     echo "PM sent to: $user '$PMmessage'\n";
  49.                     $count = $count + 1;
  50.                 }
  51.             }
  52.         // Clears player array
  53.         unset($p->arrPlayers);
  54.     }
  55. }
  56. echo "\n\nTotal players on server: $count\n\nMaking another round....\n-----------------------------------------------------------------\n";
  57. sleep(2);
  58. }
  59. ?>
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