Advertisement
Guest User

Macro Sprint 2.0

a guest
Jul 23rd, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. $${
  2. if(x);unset(x);unsprint;log(&f&l[&3&lSPRINT 2.0&f&l] &f&l[&4&lOFF&f&l]);STOP;
  3. else;set(x);log(&f&l[&3&lSPRINT 2.0&f&l] &f&l[&2&lON&f&l]);
  4. ACHIEVEMENTGET(Corre Corre Corre!,373:8226);
  5. log(&a*&3Desenvolvido por &4&lJoninho&a*);
  6. }$$
  7. $${
  8. endif;
  9.  
  10. do;
  11. ifmatches(%GUI%,None);
  12. if(%#tr%>0);keyup(ForWard);endif;
  13. dec(#tr,%#tr%);
  14. if(KEY_W);sprint;else;unsprint;endif;
  15.  
  16. else;
  17. &dir=%DIRECTION%;
  18.  
  19. ifmatches(%GUI%,Inventory|Chat|Chest|Furnace|Esc);
  20. keydown(FORWARD);SPRINT;
  21. ifmatches(%DIRECTION%,N);#a=-1;#b=0;&op=SOUTH;endif;ifmatches(%DIRECTION%,S);#a=+1;#b=0;&op=NORTH;endif;
  22. ifmatches(%DIRECTION%,W);#a=0;#b=-1;&op=EAST;endif;ifmatches(%DIRECTION%,E);#a=0;#b=+1;&op=WEST;endif;
  23. getidrel(%#b%,1,%#a%,#d,);getidrel(%#b%,0,%#a%,#c,);if((%#c%!=0)|(%#d%!=0));;&dir=%&op%;endif;look(%&dir%);
  24.  
  25. if(KEY_S);
  26. ifmatches(%DIRECTION%,N);#a=-1;#b=0;&op=SOUTH;endif;ifmatches(%DIRECTION%,S);#a=+1;#b=0;&opNORTH;endif;
  27. ifmatches(%DIRECTION%,W);#a=0;#b=-1;&op=EAST;endif;ifmatches(%DIRECTION%,E);#a=0;#b=+1;&op=WEST;endif;
  28. getidrel(%#b%,1,%#a%,#d,);getidrel(%#b%,0,%#a%,#c,);if((%#c%!=0)|(%#d%!=0));&dir=%&op%;endif;look(%&dir%);keydown(back);else;keyup(back);endif;
  29.  
  30. if(KEY_A);
  31. ifmatches(%DIRECTION%,N);#a=-1;#b=0;&op=SOUTH;endif;ifmatches(%DIRECTION%,S);#a=+1;#b=0;&opNORTH;endif;
  32. ifmatches(%DIRECTION%,W);#a=0;#b=-1;&op=EAST;endif;ifmatches(%DIRECTION%,E);#a=0;#b=+1;&op=WEST;endif;
  33. getidrel(%#b%,1,%#a%,#d,);getidrel(%#b%,0,%#a%,#c,);if((%#c%!=0)|(%#d%!=0));&dir=%&op%;endif;look(%&dir%);keydown(left);else;keyup(left);endif;
  34.  
  35.  
  36. if(KEY_D);
  37. ifmatches(%DIRECTION%,N);#a=-1;#b=0;&op=SOUTH;endif;ifmatches(%DIRECTION%,S);#a=+1;#b=0;&opNORTH;endif;
  38. ifmatches(%DIRECTION%,W);#a=0;#b=-1;&op=EAST;endif;ifmatches(%DIRECTION%,E);#a=0;#b=+1;&op=WEST;endif;
  39. getidrel(%#b%,1,%#a%,#d,);getidrel(%#b%,0,%#a%,#c,);if((%#c%!=0)|(%#d%!=0));&dir=%&op%;endif;look(%&dir%);keydown(right);else;keyup(right);endif;
  40.  
  41. if(KEY_SPACE);keydown(jump);else;keyup(jump);endif;
  42. inc(#tr,1);
  43. endif;
  44.  
  45. endif;
  46. loop;
  47. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement