daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. ** AirTurtles' Formation Follow Bot
  4. ** Copyright (C) 2010 AirTurtles
  5. */
  6. $pclkey = 'betas';
  7. require ("Pickle.php");
  8.  
  9. DEFINE('USERS', 1); // How many users do we have?
  10. $Username = array();
  11. $Password = array();
  12. $Server = "Icicle"; // What server should we go on? DEFAULT: Icicle
  13. $EachUsernameOffsets = array();
  14.  
  15. $Username[1] = "1st Username here";
  16. $Password[1] = "1st Password here";
  17.  
  18. for($CP = 1; $CP <= USERS; $CP++){
  19. $p[$CP] = new Pickle();
  20. $p[$CP]->connect($Username[$CP], $Password[$CP], $Server);
  21. if($p[$CP]->run){
  22. }else{
  23. echo("Pickle: {$Username[$CP]} has failed to login!");
  24. psleep(9001);
  25. die();
  26. }
  27. }
  28.  
  29. while(true){
  30. for($CP = 1; $CP <= USERS; $CP++){
  31.         $rawPack = $p[$CP]->readRawPacket();
  32.         $p[$CP]->findBuddy($targetID);
  33.  
  34.         if (stripos($rawPack, "xt%bf%" . $p[$CP]->intRoomID . "%")){
  35.             $roomID = $p[$CP]->stribet($rawPack, "%xt%bf%" . $p[$CP]->intRoomID . "", "%");
  36.             if ($roomID < 900){
  37.                 $p[$CP]->joinRoom($roomID, 0, 0);
  38.                 echo("Found target in room $roomID\n");
  39.             }
  40.             elseif (($roomID > 900) and ($roomID < 1000)){
  41.                 echo("Target is in a game. Waiting for game to end...\n");
  42.                 psleep(10);
  43.                 $p[$CP]->findBuddy($targetID);
  44.             }
  45.             elseif ($roomID > 999){
  46.                 $p[$CP]->joinRoom($roomID, 0, 0);
  47.                 echo("Found target in Igloo #" . $roomID . "\n");
  48.             }
  49.             else{
  50.                 echo("Target not found in this server\n");
  51.             }
  52.         }
  53.  
  54.         while(true){
  55.             $rawPack = $p[$CP]->readRawPacket();
  56.  
  57.             if (stripos($rawPack, "xt%sm%" . $p[$CP]->intRoomID . "%" . $targetID)){
  58.                 $message = $p[$CP]->stribet($rawPack, "%xt%sm%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  59.                 $p[$CP]->sendMessage($message);
  60.                 echo("Message: '$message'\n");
  61.             }
  62.             elseif (stripos($rawPack, "xt%ss%". $p[$CP]->intRoomID . "%" . $targetID)) {
  63.                 $safeMessage = $p[$CP]->stribet($rawPack, "%xt%ss" . "%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  64.                 $p[$CP]->sendSafe($safeMessage);
  65.                 echo("Message: $safeMessage\n");
  66.             }
  67.             elseif (stripos($rawPack, "xt%sl%". $p[$CP]->intRoomID . "%" . $targetID)) {
  68.                 $lineMessage = $p[$CP]->stribet($rawPack, "%xt%sl" . "%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  69.                 $p[$CP]->sendLine($lineMessage);
  70.                 echo("Message: $lineMessage\n");
  71.             }
  72.             elseif (stripos($rawPack, "xt%sq%". $p[$CP]->intRoomID . "%" . $targetID)) {
  73.                 $quickMessage = $p[$CP]->stribet($rawPack, "%xt%sq" . "%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  74.                 $p[$CP]->sendQuick($quickMessage);
  75.                 echo("Message: $quickMessage\n");
  76.             }
  77.             elseif (stripos($rawPack, "xt%sg%". $p[$CP]->intRoomID . "%" . $targetID)) {
  78.                 $guideMessage = $p[$CP]->stribet($rawPack, "%xt%sg" . "%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  79.                 $p[$CP]->sendGuide($guideMessage);
  80.                 echo("Message: $guideMessage\n");
  81.             }
  82.             elseif (stripos($rawPack, "xt%sj%". $p[$CP]->intRoomID . "%" . $targetID)) {
  83.                 $jokeMessage = $p[$CP]->stribet($rawPack, "%xt%sj" . "%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  84.                 $p[$CP]->sendJoke($jokeMessage);
  85.                 echo("Message: $jokeMessage\n");
  86.             }
  87.             elseif (stripos($rawPack, "xt%se%". $p[$CP]->intRoomID . "%" . $targetID)) {
  88.                 $id = $p[$CP]->stribet($rawPack, "%xt%se%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  89.                 $p[$CP]->sendEmote($id);
  90.                 echo("Emote: $id\n");
  91.             }
  92.             elseif (stripos($rawPack, "xt%sp%" . $p[$CP]->intRoomID . "%" . $targetID)) {
  93.                 $x = $p[$CP]->stribet($rawPack, "%xt%sp%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  94.                 $y = $p[$CP]->stribet($rawPack, "%xt%sp%" . $p[$CP]->intRoomID . "%" . $targetID . "%" . $x . "%", "%");
  95.                 $p[$CP]->sendPosition($x + $xoff, $y + $yoff);
  96.                 echo("Position: $x, $y\n");
  97.             }
  98.             elseif (stripos($rawPack, "xt%sb%" . $p[$CP]->intRoomID . "%" . $targetID)) {
  99.                 $x = $p[$CP]->stribet($rawPack, "%xt%sb%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  100.                 $y = $p[$CP]->stribet($rawPack, "%xt%sb%" . $p[$CP]->intRoomID . "%" . $targetID . "%". $x . "%", "%");
  101.                 $p[$CP]->snowBall($x, $y);
  102.                 echo("Snowball: $x, $y\n");
  103.             }
  104.             elseif (stripos($rawPack, "xt%sa%" . $p[$CP]->intRoomID . "%" . $targetID)) {
  105.                 $id = $p[$CP]->stribet($rawPack, "%xt%sa%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  106.                 $p[$CP]->sendAction($id);
  107.                 echo("Action: $id\n");
  108.             }
  109.             elseif (stripos($rawPack, "xt%sf%" . $p[$CP]->intRoomID . "%" . $targetID)) {
  110.                 $id = $p[$CP]->stribet($rawPack, "%xt%sf%" . $p[$CP]->intRoomID . "%" . $targetID . "%", "%");
  111.                 $p[$CP]->sendFrame($id);
  112.                 echo("Frame: $id\n");
  113.             }
  114.             elseif (stripos($rawPack, "xt%at%" . $p[$CP]->intRoomID . "%" . $targetID)) {
  115.                 $p[$CP]->openNewspaper();
  116.             }
  117.             elseif (stripos($rawPack, "xt%rt%" . $p[$CP]->intRoomID . "%" . $targetID)) {
  118.                 $p[$CP]->closeNewspaper();
  119.             }
  120.             elseif (stripos($rawPack, "xt%mr%-1%") ){
  121.                 $packet = explode("%", $rawPack);
  122.                 if ($packet[5] == $targetID){
  123.                     $id = $packet[6];
  124.                     $p[$CP]->sendMail($targetID, $id);
  125.                     echo "Mail: $id\n";
  126.                 }
  127.             }
  128.             elseif (stripos($rawPack, "xt%rp%-1%" . $targetID)) {
  129.                 $p[$CP]->findBuddy($targetID);
  130.             }
  131.             elseif (stripos($rawPack, "xt%bf%" . $p[$CP]->intRoomID . "%")){
  132.                 $roomID = $p[$CP]->stribet($rawPack, "%xt%bf%" . $p[$CP]->intRoomID . "%", "%");
  133.                 if (($roomID < 900) and ($roomID != $p[$CP]->extRoomID)){
  134.                     $p[$CP]->joinRoom($roomID, 0, 0);
  135.                     echo("Found target in room $roomID\n");
  136.                 }
  137.                 elseif (($roomID > 900) and ($roomID < 1000)){
  138.                     echo("Target is in a game. Waiting for game to end...\n");
  139.                     psleep(10);
  140.                     $p[$CP]->findBuddy($targetID);
  141.                 }
  142.                 elseif (($roomID > 999) and ($roomID != $extRoomID)){
  143.                     $p[$CP]->joinRoom($roomID, 0, 0);
  144.                     echo("Found target in Igloo #" . $roomID . "\n");
  145.                 }
  146.                 else{
  147.                     echo("Target not found in this server $rawPack\n");
  148.                 }
  149.             }
  150.                 elseif(stripos($rawPack, "xt%ma%")){
  151.                         echo "MOD ACTION ALERT: $rawPack \n";
  152.                 }
  153.            
  154.         }
  155.     }
  156.     }
  157.    
  158.    
  159.     ?>
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