Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. $${
  2. if(z);
  3. log(" &c[&3%PLAYER%&c] &5Reparaçao com Enxada &4OFF");
  4. log(" &bForam reparadas um total de : &c%#cont% &benxadas");
  5. unset(z);
  6. stop();
  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. do;
  24. wait(10ms);
  25. look(+50,0);
  26. slot(%#enx%);
  27. key(use);
  28.  
  29. if(%DURABILITY% < 15)
  30. INC(#enx,1);
  31. wait(100ms);
  32.  
  33. if(%#enx% = 10);
  34. wait(250ms);
  35. look(%&dir%);
  36. look(+0,90);
  37. #enx=1;
  38. do;
  39. slot(%#enx%);
  40. wait(250ms);
  41. key(use);
  42. wait(250ms);
  43. key(use);
  44. wait(250ms);
  45. INC(#enx,1);
  46. until(%#enx% = 10);
  47. #enx=1;
  48. #cont= %#cont% + 9;
  49. endif;
  50. endif;
  51. loop;
  52.  
  53. log(" &c[&3%PLAYER%&c] &5Reparaçao com Enxada &4OFF");
  54. unset(z);
  55. stop();
  56. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement