Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // You shouldn't be editing this file!
- $count = 0;
- require("Pickle.php");
- echo "---------------------------------------------------------------------------\nPenguin Trillion PM bomber by SweetTooth. Email: sweettooth606@gmail.com\n\n";
- fwrite(STDOUT, "Penguin Trillion username: ");
- $Username = trim(fgets(STDIN));
- fwrite(STDOUT, "Penguin Trillion password: ");
- $Password = trim(fgets(STDIN));
- fwrite(STDOUT, "Private message to send to everyone: ");
- $PMmessage = trim(fgets(STDIN));
- // Connects to server
- $p = new Pickle;
- $p->connect($Username, $Password, "trillion", "glacier");
- //Room ids
- $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";
- $rooms = explode("%", $rooms);
- //Starts the bombing run
- while(true){
- // # of rooms
- for ($i = 0; $i <= 29; $i++) {
- $p->joinRoom($rooms[$i]);
- $ourRoom = $globrooms[$rooms[$i]]['name'];
- $Players = sizeof($p->arrPlayers) - 3;
- if ($Players == 1){
- echo "\nThere is $Players player in the $ourRoom\n";
- } else {
- echo "\nThere are $Players players in the $ourRoom\n";
- }
- foreach($p->arrPlayers as $objPeng) {
- $user = $objPeng->getUsername();
- // Don't send PM to self or bot
- if (strtolower($user) != strtolower($Username) && $user != "Trillion"){
- // Sends the PM
- $p->sendMessage("!pm $user $PMmessage");
- if ($user != NULL){
- echo "PM sent to: $user '$PMmessage'\n";
- $count = $count + 1;
- }
- }
- // Clears player array
- unset($p->arrPlayers);
- }
- }
- echo "\n\nTotal players on server: $count\n\nMaking another round....\n-----------------------------------------------------------------\n";
- sleep(2);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement