Advertisement
karpvp

Untitled

Feb 9th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. $${if(mds);
  2. log(" &c[&3%PLAYER%&c] &5Reparaçao com Enxada &4OFF");
  3. log(" &bForam reparadas um total de : &c%#cont% &benxadas");
  4. unset(mds);
  5. stop();
  6.  
  7.  
  8. else;
  9. set(z);
  10. log(" &c[&3%PLAYER%&c] &5Reparaçao com Enxada &2ON");
  11. endif;
  12.  
  13. &dir=%DIRECTION%;
  14. ifmatches(%&dir%,N);&dir=NORTH;endif;
  15. ifmatches(%&dir%,S);&dir=SOUTH;endif;
  16. ifmatches(%&dir%,E);&dir=EAST;endif;
  17. ifmatches(%&dir%,W);&dir=WEST;endif;
  18. // ------------
  19. #enx=1;
  20. #cont=0;
  21. look(%&dir%);
  22.  
  23.  
  24. do;
  25. wait(10ms);
  26. look(+50,0);
  27. slot(%#enx%);
  28. key(use);
  29.  
  30.  
  31. if(%DURABILITY% < 28)
  32. INC(#enx,1);
  33. wait(100ms);
  34.  
  35.  
  36. if(%#enx% = 10);
  37. wait(250ms);
  38. look(%&dir%);
  39. look(+0,90);
  40. #enx=1;
  41. do;
  42. slot(%#enx%);
  43. wait(250ms);
  44. key(use);
  45. wait(250ms);
  46. key(use);
  47. wait(250ms);
  48. INC(#enx,1);
  49. until(%#enx% = 10);
  50. #enx=1;
  51. #cont= %#cont% + 9;
  52. endif;
  53. endif;
  54. loop;
  55.  
  56.  
  57. log(" &c[&3%PLAYER%&c] &5Reparaçao com Enxada &4OFF");
  58. unset(z);
  59. stop();
  60. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement