Advertisement
Guest User

Untitled

a guest
May 8th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. <?php
  2.  
  3. require "core.php"; // Includes Pickle's core.php, required core functions
  4.  
  5. require "tasks.php"; // Includes Pickle's tasks.php, simple game tasks
  6.  
  7.  
  8.  
  9.  
  10.  
  11. $Username = "santa mouse2";
  12.  
  13. $Password = "password2";
  14.  
  15. $Server = "302";
  16.  
  17. $TargetID = "62346243"; //Penguin1302
  18.  
  19.  
  20.  
  21.  
  22.  
  23. if (connect($Server, $Username, $Password, true)) { // Connects to server
  24.  
  25. echo ("Logged in succesfully\n");
  26.  
  27. findBuddy($TargetID);
  28.  
  29.  
  30.  
  31. $rawPack = readRawPacket();
  32.  
  33.  
  34.  
  35. if (stripos($rawPack, "xt%bf%" . $myRoomID . "%")){
  36.  
  37. $Room = stribet($rawPack, "%xt%bf%$myRoomID%", "%");
  38.  
  39.  
  40.  
  41. if (($Room < 900) and ($Room != $extRoomID)){
  42.  
  43. gotoRoom($Room, 0, 0);
  44.  
  45. echo("Found target in room $Room\n");
  46.  
  47. }
  48.  
  49. elseif (($Room > 900) and ($Room < 1000)){
  50.  
  51. echo("Your target is in a game. Waiting for game to end...\n");
  52.  
  53. sleep(5);
  54.  
  55. findBuddy($TargetID);
  56.  
  57. }
  58.  
  59. elseif (($Room > 999) and ($Room != $extRoomID)){
  60.  
  61. gotoRoom($Room, 0, 0);
  62.  
  63. echo("Found target in Igloo #$Room\n");
  64.  
  65. }
  66.  
  67. else{
  68.  
  69. echo("Target not found in this server\n");
  70.  
  71. }
  72.  
  73. }
  74.  
  75. }
  76.  
  77.  
  78.  
  79. while (true) {
  80.  
  81. $rawPack = readRawPacket();
  82.  
  83.  
  84.  
  85. if (stripos($rawPack, "xt%sm%$myRoomID%$TargetID")){
  86.  
  87. $Message = stribet($rawPack, "%xt%sm%$myRoomID%$TargetID%", "%");
  88. echo("Message: '$Message'\n");
  89.  
  90. }
  91.  
  92.  
  93.  
  94. elseif (stripos($rawPack, "xt%rp%-1%" . $TargetID)) {
  95.  
  96. findBuddy($TargetID);
  97.  
  98. echo("Target left, finding target...\n");
  99.  
  100. }
  101.  
  102. if (stripos($rawPack, "xt%bf%" . $myRoomID . "%")){
  103.  
  104. $Room = stribet($rawPack, "%xt%bf%$myRoomID%", "%");
  105.  
  106.  
  107.  
  108. if (($Room < 900) and ($Room != $extRoomID)){
  109.  
  110. gotoRoom($Room, 0, 0);
  111.  
  112. echo("Found target in room $Room\n");
  113.  
  114. }
  115.  
  116. elseif (($Room > 899) and ($Room < 1000)){
  117.  
  118. echo("Your target is in a game. Waiting for game to end...\n");
  119.  
  120. sleep(5);
  121.  
  122. findBuddy($TargetID);
  123.  
  124. }
  125.  
  126. elseif (($Room > 999) and ($Room != $extRoomID)){
  127.  
  128. gotoRoom($Room, 0, 0);
  129.  
  130. echo("Found target in Igloo #$Room\n");
  131.  
  132. }else{
  133.  
  134. echo ("Target not found in server.");
  135.  
  136. sleep(5);
  137.  
  138. findBuddy($TargetID);
  139.  
  140. }
  141.  
  142. }
  143.  
  144.  
  145. }
  146.  
  147. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement