Advertisement
Guest User

Untitled

a guest
May 8th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1. <?php
  2. require "../core.php";
  3. require "../tasks.php";
  4.  
  5. $Username = "Hyper bot 86"; // Sets a variable for your username.
  6. $Password = "bluefire"; // Sets a variable for your password.
  7. $ServerID = 211;
  8. $TargetID = 39242937;
  9.        
  10. if (connect($ServerID, $Username, $Password, true)) {
  11. echo "your bot has logged in";
  12. }
  13. gotoRoom(805, 0, 0);
  14.  
  15. while(true){
  16. $rawPack = readRawPacket();
  17. if (stripos($rawPack, "xt%pm%$myRoomID")) {
  18. $ID = stribet($rawPack, "%xt%pm%$myRoomID%", "%");
  19. }
  20. if (stripos($rawPack, "xt%sp%$myRoomID%$TargetID")) {
  21. $x = stribet($rawPack, "%xt%sp%$myRoomID%$TargetID%", "%");
  22. $y = stribet($rawPack, "%xt%sp%$myRoomID%$TargetID%$x%", "%");
  23. sendRawPacket("%xt%pm%$myRoomID%$ID%$x%$y%.");
  24. }
  25. if (stripos($rawPack, "xt%rp%-1%" . $TargetID)){
  26. findBuddy($TargetID);
  27. }
  28. elseif (stripos($rawPack, "xt%bf%" . $myRoomID . "%")){
  29. $RoomID = stribet($rawPack, "%xt%bf%" . $myRoomID . "%","%");
  30. gotoRoom($RoomID);
  31. echo"Penguin $TargetID moved to room $RoomID";
  32. }
  33. }
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement