Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $${
  2. if(auto);
  3. unset(auto);
  4. LOG("&5Macro &4OFF");
  5. stop();
  6. else;
  7. set(auto);
  8. LOG("&5Macro&2ON");
  9. //calculando a direção
  10. #es = 1;
  11. IFMATCHES(%DIRECTION%,N);
  12. &mob = NORTH;
  13. ENDIF;
  14. IFMATCHES(%DIRECTION%,S);
  15. &mob = SOUTH;
  16. ENDIF;
  17. IFMATCHES(%DIRECTION%,W);
  18. &mob = WEST;
  19. ENDIF;
  20. IFMATCHES(%DIRECTION%,E);
  21. &mob = EAST;
  22. ENDIF;
  23. do;
  24. look(%&mob%);
  25. slot(%#es%);
  26. do;
  27. //calculando o hit
  28. SET(&hit, %HIT%);
  29. SET(&target, ENTITY);
  30. //atacando se mob
  31. IF(&hit = &target);
  32. KEY(attack);
  33. wait(50ms);
  34. loop;
  35. Endif;
  36. //reparando
  37. while(%DURABILITY% > 19);
  38. #es = #es+1;
  39. if(%#es% = 10);
  40. unset(auto);
  41. LOG("&5Macro &4OFF");
  42. stop();
  43. else;
  44. endif;
  45. Loop;
  46. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement