SHARE
TWEET

Untitled

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