Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 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. }$$
  5. $${
  6. endif;
  7.  
  8. do;
  9. ifmatches(%GUI%,None);
  10. if(%#tr%>0);keyup(ForWard);endif;
  11. dec(#tr,%#tr%);
  12. if(KEY_W);sprint;else;unsprint;endif;
  13.  
  14. else;
  15. &dir=%DIRECTION%;
  16.  
  17. ifmatches(%GUI%,Inventory|Chat|Chest|Furnace|Esc);
  18. keydown(FORWARD);SPRINT;
  19. ifmatches(%DIRECTION%,N);#a=-1;#b=0;&op=SOUTH;endif;ifmatches(%DIRECTION%,S);#a=+1;#b=0;&op=NORTH;endif;
  20. ifmatches(%DIRECTION%,W);#a=0;#b=-1;&op=EAST;endif;ifmatches(%DIRECTION%,E);#a=0;#b=+1;&op=WEST;endif;
  21. getidrel(%#b%,1,%#a%,#d,);getidrel(%#b%,0,%#a%,#c,);if((%#c%!=0)|(%#d%!=0));;&dir=%&op%;endif;look(%&dir%);
  22.  
  23. if(KEY_S);
  24. ifmatches(%DIRECTION%,N);#a=-1;#b=0;&op=SOUTH;endif;ifmatches(%DIRECTION%,S);#a=+1;#b=0;&opNORTH;endif;
  25. ifmatches(%DIRECTION%,W);#a=0;#b=-1;&op=EAST;endif;ifmatches(%DIRECTION%,E);#a=0;#b=+1;&op=WEST;endif;
  26. 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;
  27.  
  28. if(KEY_A);
  29. ifmatches(%DIRECTION%,N);#a=-1;#b=0;&op=SOUTH;endif;ifmatches(%DIRECTION%,S);#a=+1;#b=0;&opNORTH;endif;
  30. ifmatches(%DIRECTION%,W);#a=0;#b=-1;&op=EAST;endif;ifmatches(%DIRECTION%,E);#a=0;#b=+1;&op=WEST;endif;
  31. 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;
  32.  
  33.  
  34. if(KEY_D);
  35. ifmatches(%DIRECTION%,N);#a=-1;#b=0;&op=SOUTH;endif;ifmatches(%DIRECTION%,S);#a=+1;#b=0;&opNORTH;endif;
  36. ifmatches(%DIRECTION%,W);#a=0;#b=-1;&op=EAST;endif;ifmatches(%DIRECTION%,E);#a=0;#b=+1;&op=WEST;endif;
  37. 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;
  38.  
  39. if(KEY_SPACE);keydown(jump);else;keyup(jump);endif;
  40. inc(#tr,1);
  41. endif;
  42.  
  43. endif;
  44. loop;
  45. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement