Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. $${
  2. &home_lixo="/home lixo";
  3. &home_pesq="/home pesca";
  4. &nao_dropar="written_book|enchanted_book|Diamond_Sword";
  5.  
  6. if(@pesca);
  7. log(&6&l[Macro] &fPesca autonoma do torabas &4&l[OFF]);
  8. unset(@pesca);
  9. stop();
  10. else;
  11. log(&6&l[Macro] &fPesca autonoma do torabas &2&l[ON]);
  12. set(@pesca);
  13. endif;
  14.  
  15. do;
  16. #x=%XPOS%;#z=%ZPOS%;
  17. do(3);
  18. echo(%&home_lixo%);
  19. do(15);
  20. wait(300ms);
  21. If((%XPOS%!=%#x%)||(%ZPOS%!=%#z%));
  22. break;
  23. endif;
  24. loop;
  25. If((%XPOS%!=%#x%)||(%ZPOS%!=%#z%));
  26. wait(1000ms);
  27. break;
  28. endif;
  29. loop;
  30.  
  31. do(2);
  32. Getidrel(0,-1,0,&chao);
  33. If(&chao != "air"); break; endif;
  34. wait(500ms);
  35. loop;
  36.  
  37. look(0,20);
  38. wait(300ms);
  39. unsafe(0);
  40. gui(inventory);
  41. for(#i,9,35);
  42. GETSLOTITEM(%#i%,&item);
  43. ifmatches(%&item%,%&nao_dropar%);
  44. else;
  45. SLOTCLICK(%#i%);
  46. SLOTCLICK(-999);
  47. endif;
  48. next;
  49. Gui();
  50. endunsafe;
  51.  
  52. #x=%XPOS%;#z=%ZPOS%;
  53. do(3);
  54. echo(%&home_pesq%);
  55. do(15);
  56. wait(300ms);
  57. If((%XPOS%!=%#x%)||(%ZPOS%!=%#z%));
  58. break;
  59. endif;
  60. loop;
  61. If((%XPOS%!=%#x%)||(%ZPOS%!=%#z%));
  62. wait(1000ms);
  63. break;
  64. endif;
  65. loop;
  66. wait(400ms);
  67. wait(1000ms);
  68. Key(use);
  69.  
  70. wait(500); /// acredito que o delay de limpeza seja isso aqui;
  71. loop;
  72. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement