Advertisement
kolton

Untitled

Dec 7th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. // Identify & mule
  2. this.checkTorch = function () {
  3. if (me.area === 136) {
  4. Pather.moveTo(25105, 5140);
  5. Pather.usePortal(109);
  6. }
  7.  
  8. Town.doChores();
  9.  
  10. if (!Config.OrgTorch.MakeTorch) {
  11. return false;
  12. }
  13.  
  14. var item = me.getItem("cm2");
  15.  
  16. if (item) {
  17. do {
  18. if (item.quality === 7 && Pickit.checkItem(item).result === 1) {
  19. if (TorchSystem.FarmerProfiles.indexOf(me.profile) > -1) {
  20. //D2Bot.printToConsole("torch found");
  21. scriptBroadcast("muleTorch");
  22.  
  23. quit();
  24. delay(10000);
  25. } else {
  26. return true;
  27. }
  28. }
  29. } while (item.getNext());
  30. }
  31.  
  32. return false;
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement