Advertisement
jimmyfilips

[MACRO] Cacto automatica

Sep 8th, 2013
9,523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. $${
  2. if(cac);
  3. LOG(&3[%PLAYER%] &6cacto &4[OFF]);
  4. LOG(&3[%PLAYER%] &6numero de andares construidos: &a%#number%);
  5. unset(cac);KEYUP(jump);stop();
  6. else;
  7. set(cac)
  8. LOG(&3[%PLAYER%] &6cacto &a[ON]);
  9. #count=;
  10. PROMPT(#count,$$?,"Andares:");
  11.  
  12. #number=0
  13. &dly=2
  14. &ff = %DIRECTION%;
  15. ifmatches(%&ff%,N);&ff=NORTH;endif;
  16. ifmatches(%&ff%,S);&ff=SOUTH;endif;
  17. ifmatches(%&ff%,E);&ff=EAST;endif;
  18. ifmatches(%&ff%,W);&ff=WEST;endif;
  19.  
  20. if(%#count% <1 )
  21. LOG(&3[%PLAYER%] &6cacto &4[OFF]);
  22. LOG(&3[%PLAYER%] &6numero de andares construidos: &a%#number%);
  23. unset(cac);KEYUP(jump);stop();
  24. endif;
  25.  
  26. do;
  27.  
  28. //=========================================
  29.  
  30. //=======terra
  31.  
  32. //=======frente
  33. pick(3);
  34. look(%&ff%);look(+25,);
  35. look(,35);
  36. wait(100ms);
  37. key(use);
  38. wait(100ms);
  39.  
  40. //=======direita
  41. pick(3);
  42. look(%&ff%);look(+60,);
  43. look(,35);
  44. wait(100ms);
  45. key(use);
  46. wait(100ms);
  47.  
  48. //=======esquerda
  49. pick(3);
  50. look(%&ff%);
  51. look(,60);
  52. wait(100ms);
  53. key(use);
  54. wait(100ms);
  55.  
  56. //=======atras
  57. pick(3);
  58. look(%&ff%);look(+90,);
  59. look(,60);
  60. wait(100ms);
  61. key(use);
  62. wait(100ms);
  63.  
  64. //=======pulo
  65. KEYDOWN(jump);
  66. WAIT(100ms);
  67. KEYUP(jump);
  68. WAIT(%&dly%);
  69.  
  70. //=========================================
  71.  
  72. //=======areia
  73. //=======frente
  74. pick(12);
  75. look(%&ff%);look(+25,);
  76. look(,35);
  77. wait(100ms);
  78. key(use);
  79. wait(100ms);
  80.  
  81. //=======direita
  82. pick(12);
  83. look(%&ff%);look(+60,);
  84. look(,35);
  85. wait(100ms);
  86. key(use);
  87. wait(100ms);
  88.  
  89. //=======esquerda
  90. pick(12);
  91. look(%&ff%);
  92. look(,60);
  93. wait(100ms);
  94. key(use);
  95. wait(100ms);
  96.  
  97. //=======atras
  98. pick(12);
  99. look(%&ff%);look(+90,);
  100. look(,60);
  101. wait(100ms);
  102. key(use);
  103. wait(100ms);
  104.  
  105. //=======pulo
  106. KEYDOWN(jump);
  107. WAIT(100ms);
  108. KEYUP(jump);
  109. WAIT(%&dly%);
  110.  
  111. //=========================================
  112.  
  113. //=======cacto
  114. //=======frente
  115. pick(81);
  116. look(%&ff%);look(+25,);
  117. look(,35);
  118. wait(100ms);
  119. key(use);
  120. wait(100ms);
  121.  
  122. //=======direita
  123. pick(81);
  124. look(%&ff%);look(+60,);
  125. look(,35);
  126. wait(100ms);
  127. key(use);
  128. wait(100ms);
  129.  
  130. //=======esquerda
  131. pick(81);
  132. look(%&ff%);
  133. look(,60);
  134. wait(100ms);
  135. key(use);
  136. wait(100ms);
  137.  
  138. //=======atras
  139. pick(81);
  140. look(%&ff%);look(+90,);
  141. look(,60);
  142. wait(100ms);
  143. key(use);
  144. wait(100ms);
  145.  
  146. //=======pulo
  147. KEYDOWN(jump);
  148. WAIT(100ms);
  149. KEYUP(jump);
  150. WAIT(%&dly%);
  151.  
  152. //=========================================
  153.  
  154. //=======centro
  155. //=======meio
  156. pick(3);
  157. look(%&ff%);look(+40,);
  158. look(,50);
  159. wait(100ms);
  160. key(use);
  161. wait(100ms);
  162.  
  163. //=======pulo
  164. KEYDOWN(jump);
  165. WAIT(100ms);
  166. KEYUP(jump);
  167. WAIT(%&dly%);
  168.  
  169. //=========================================
  170.  
  171. INC(#number,1);
  172.  
  173. if(%#number% = %#count%);
  174. LOG(&3[%PLAYER%] &6cacto &4[OFF]);
  175. LOG(&3[%PLAYER%] &6numero de andares construidos: &a%#number%);
  176. unset(cac);KEYUP(jump);stop();
  177. else;
  178. LOG(&3[%PLAYER%] &6numero de andares construidos: &a%#number%);
  179. endif;
  180. loop;
  181.  
  182. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement