Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.55 KB | None | 0 0
  1.     <?php
  2.     $pclkey = "betas";
  3.     require("Pickle.php");
  4.    
  5.     ///////////////Script made by SweetTooth.//////////////////////////
  6.  
  7.     $Username = ""; // Enter Username
  8.     $Password = ""; // Enter Password
  9.     $Server = ""; // Enter Server
  10.  
  11.     $Target = "";  // Target ID
  12.  
  13.     ///////////////////////////////////////////////////////////////////
  14.  
  15.  
  16.     $p = new Pickle;
  17.     $p->connect($Username, $Password, $Server);
  18.     $myPengID = $p->PlayerID;
  19.     while(true){
  20.     $pack = $p->readRawPacket();
  21.  
  22.     if (stripos($pack, "xt%sm%". $p->intRoomID . "%")) {
  23.         $PenguinID = $p->stribet($pack, "%xt%sm%$p->intRoomID%", "%");
  24.         $Message = $p->stribet($pack, "%xt%sm%$p->intRoomID%$PenguinID%", "%");
  25.         if ($PenguinID == $Target && $PenguinID != $myPengID){
  26.             echo("$PenguinID said '$Message'\n");
  27.             $p->sendMessage($Message);
  28.         }
  29.     }
  30.     elseif (stripos($pack, "xt%sp%$p->intRoomID")){
  31.         $PenguinID = $p->stribet($pack, "%xt%sp%$p->intRoomID%", "%");
  32.         $x = $p->stribet($pack, "%xt%sp%$p->intRoomID%$PenguinID%", "%");
  33.         $y = $p->stribet($pack, "%xt%sp%$p->intRoomID%$PenguinID%$x%", "%");
  34.         if ($PenguinID == $Target && $PenguinID != $myPengID){
  35.             echo("$PenguinID moved to $x, $y\n");
  36.             $p->goto($x,$y);
  37.         }
  38.     }
  39.     elseif(stripos($pack, "xt%sa%$p->intRoomID")){
  40.         $explodedPacket = explode("%", $pack);
  41.         $Action = $explodedPacket[5];
  42.         $PenguinID = $explodedPacket[4];
  43.         if ($PenguinID == $Target && $PenguinID != $myPengID){
  44.             echo("$PenguinID sent action #$Action\n");
  45.             $p->sendAction($Action);
  46.         }
  47.     }
  48.     elseif(stripos($pack, "xt%sf%$p->intRoomID")){
  49.         $explodedPacket = explode("%", $pack);
  50.         $Frame = $explodedPacket[5];
  51.         $PenguinID = $explodedPacket[4];
  52.         if ($PenguinID == $Target && $PenguinID != $myPengID){
  53.             echo("$PenguinID sent frame #$Frame\n");
  54.             $p->sendFrame($Frame);
  55.         }
  56.     }
  57.     elseif (stripos($pack, "xt%se%". $p->intRoomID . "%")) {
  58.         $PenguinID = $p->stribet($pack, "%xt%se%$p->intRoomID%", "%");
  59.         $emoteID = $p->stribet($pack, "%xt%se%$p->intRoomID%$PenguinID%", "%");
  60.         if ($PenguinID == $Target && $PenguinID != $myPengID){
  61.             echo("$PenguinID emoted Emote #$emoteID\n");
  62.             $p->sendEmote($emoteID);
  63.         }  
  64.     }
  65.     elseif (stripos($pack, "xt%sb%". $p->intRoomID . "%")) {
  66.         $PenguinID = $p->stribet($pack, "%xt%sb%$p->intRoomID%", "%");
  67.         $x = $p->stribet($pack, "%xt%sb%$p->intRoomID%$PenguinID%", "%");
  68.         $y = $p->stribet($pack, "%xt%sb%$p->intRoomID%$PenguinID%$x%", "%");
  69.         if ($PenguinID == $Target && $PenguinID != $myPengID){
  70.             echo("$PenguinID threw a Snowball at: $x, $y\n");
  71.             $p->snowball($x,$y);
  72.         }
  73.     }
  74.     elseif (stripos($pack, "xt%sj%". $p->intRoomID . "%")) {
  75.         $PenguinID = $p->stribet($pack, "%xt%sj%$p->intRoomID%", "%");
  76.         $JokeID = $p->stribet($pack, "%xt%sj%$p->intRoomID%$PenguinID%", "%");
  77.         if ($PenguinID == $Target && $PenguinID != $myPengID){
  78.             echo("$PenguinID said Joke #$JokeID\n");
  79.             $p->sendJoke($JokeID);
  80.         }
  81.     }
  82.     elseif (stripos($pack, "xt%ss%". $p->intRoomID . "%")) {
  83.         $PenguinID = $p->stribet($pack, "%xt%ss%$p->intRoomID%", "%");
  84.         $SafeID = $p->stribet($pack, "%xt%ss%$p->intRoomID%$PenguinID%", "%");
  85.         if ($PenguinID == $Target && $PenguinID != $myPengID){
  86.             echo("$PenguinID said the Safe Chat Message #$SafeID\n");
  87.             $p->sendSafe($SafeID);
  88.         }
  89.     }
  90.     elseif (stripos($pack, "xt%br%" . $p->intRoomID . "%" )) {
  91.         $PenguinID = $p->stribet($pack, "%xt%br%$p->intRoomID%", "%");
  92.         $PenguinName = $p->stribet($pack, "%xt%br%$p->intRoomID%$PenguinID%", "%");
  93.         echo("$PenguinName (#$PenguinID) sent a buddy request to you!\n");
  94.     }
  95.     }
  96.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement