Advertisement
kolton

Untitled

May 22nd, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. inGameCheck: function () {
  2. if (me.gamename.toLowerCase() !== this.muleGameName[0].toLowerCase()) {
  3. return false;
  4. }
  5.  
  6. var status = "muling";
  7.  
  8. function DropStatusEvent(mode, msg) {
  9. switch (msg) {
  10. case "quit":
  11. status = "quit";
  12.  
  13. break;
  14. default:
  15. sendCopyData(null, this.muleProfile, 0, status);
  16.  
  17. break;
  18. }
  19. }
  20.  
  21. print("ÿc4AutoMuleÿc0: In mule game.");
  22. addEventListener("copydata", DropStatusEvent);
  23.  
  24. if (!Town.goToTown(1) || !Town.move("stash")) {
  25. throw new Error("Failed to go to stash in act 1");
  26. }
  27.  
  28. this.dropStuff();
  29.  
  30. status = "done";
  31.  
  32. while (true) {
  33. if (status === "quit") {
  34. break;
  35. }
  36.  
  37. delay(500);
  38. }
  39.  
  40. removeEventListener("copydata", DropStatusEvent);
  41.  
  42. return true;
  43. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement