linknaka

Untitled

Feb 22nd, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. $${
  2. #maxbausdep=20;
  3. #maxbausget=20;
  4.  
  5. if(getxu);
  6. unset(getxu);
  7. log(&5 parou a macro de cassino);
  8. stop();
  9. else;
  10. set(getxu);
  11. &itemid=spawn_egg;
  12. #numerobaudep=0;
  13. #numerobauget=0;
  14. #auxbau=0;
  15. #bxbau=0;
  16. #numeroBauGet=0;
  17. do();
  18. @#saida=0;
  19. set(conti);
  20. }$$
  21. /home Cassinobaus
  22. $${
  23.  
  24. wait(3);
  25. &dire=%DIRECTION%;
  26. &rdire=%DIRECTION%;
  27. ifmatches(%&dire%,N);&dire=NORTH;;&rdire=SOUTH;endif;
  28. ifmatches(%&dire%,S);&dire=SOUTH;;&rdire=NORTH;endif;
  29. ifmatches(%&dire%,E);&dire=EAST;;&rdire=WEST;endif;
  30. ifmatches(%&dire%,W);&dire=WEST;&rdire=EAST;endif;
  31.  
  32. log("Chegou na home para depositar:verificando bau: %#numerobaudep%);
  33. #auxbau=#numerobaudep/10;
  34. #bxbau=#numerobaudep-(#auxbau*10);
  35. look(%&dire%);
  36. key(JUMP);
  37. //unset(bauagain);
  38. do();
  39. #posx=%XPOS%;
  40. #posz=%ZPOS%;
  41. if(%#auxbau%=0);
  42. log(Chegou1);
  43. break;
  44. endif;
  45. do;
  46. keydown(RIGHT);
  47. wait(10ms);
  48. keyup(RIGHT);
  49. until((%XPOS%=%#posx%+2)|(%XPOS%=%#posx%-2)|(%ZPOS%=%#posz%+2)|(%ZPOS%=%#posz%- 2));
  50. #auxbau=#auxbau-1;
  51. loop;
  52.  
  53. if(%#bxbau%>4);
  54. do;
  55. keydown(RIGHT);
  56. wait(10ms);
  57. keyup(RIGHT);
  58. until((%XPOS%=%#posx%+1)|(%XPOS%=%#posx%-1)|(%ZPOS%=%#posz%+1)|(%ZPOS%=%#posz%- 1));
  59. #bxbau=#bxbau-5;
  60. endif;
  61.  
  62. if(%#bxbau%=0);
  63. look(,55);
  64. endif;
  65.  
  66. if(%#bxbau%=1);
  67. look(,35);
  68. endif;
  69.  
  70. if(%#bxbau%=2);
  71. look(,7);
  72. endif;
  73.  
  74. if(%#bxbau%=3);
  75. look(,-24);
  76. endif;
  77.  
  78. if(%#bxbau%=4);
  79. look(,-50);
  80. endif;
  81.  
  82. wait(1600ms);
  83. key(use);
  84. wait(1600ms);
  85.  
  86.  
  87. log(Depositando os itens!);
  88. for(#p,54,89);
  89. getslotitem(%#p%,&id,#stack);
  90. if(%#stack%>0);
  91. ifmatches(%&id%,%&itemid%);
  92. log(Pulou "ficha"!);
  93. else;
  94. slotclick(%#p%,right,true);
  95. wait(120ms);
  96. endif;
  97. endif;
  98. next;
  99.  
  100. wait(150ms);
  101. getslotitem(53,&id,#stack);
  102. if(%#stack%>0);
  103. #numerobaudep=#numerobaudep+1;
  104. unset(conti);
  105. endif;
  106.  
  107. gui();
  108. wait(1);
  109.  
  110. if(conti);
  111. }$$
  112. /home Cassinobaus
  113. $${
  114. log("Chegou na home para sacar:verificando bau: %#numerobauget%);
  115. #auxbau=#numerobauget/10;
  116. #bxbau=#numerobauget-(#auxbau*10);
  117. wait(2);
  118. look(%&rdire%);
  119. key(JUMP);
  120. wait(500ms);
  121. unset(bauagain);
  122. do();
  123. #posx=%XPOS%;
  124. #posz=%ZPOS%;
  125. if(%#auxbau%=0);
  126. log(ChegouSa);
  127. break;
  128. endif;
  129. do;
  130. keydown(LEFT);
  131. wait(10ms);
  132. keyup(LEFT);
  133. until((%XPOS%=%#posx%+2)|(%XPOS%=%#posx%-2)|(%ZPOS%=%#posz%+2)|(%ZPOS%=%#posz%- 2));
  134. #auxbau=#auxbau-1;
  135. loop;
  136.  
  137. if(%#bxbau%>4);
  138. do;
  139. keydown(LEFT);
  140. wait(10ms);
  141. keyup(LEFT);
  142. until((%XPOS%=%#posx%+1)|(%XPOS%=%#posx%-1)|(%ZPOS%=%#posz%+1)|(%ZPOS%=%#posz%- 1));
  143. #bxbau=#bxbau-5;
  144. endif;
  145.  
  146. if(%#bxbau%=0);
  147. look(,55);
  148. endif;
  149.  
  150. if(%#bxbau%=1);
  151. look(,35);
  152. endif;
  153.  
  154. if(%#bxbau%=2);
  155. look(,7);
  156. endif;
  157.  
  158. if(%#bxbau%=3);
  159. look(,-24);
  160. endif;
  161.  
  162. if(%#bxbau%=4);
  163. look(,-50);
  164. endif;
  165.  
  166. wait(1500ms);
  167. key(use);
  168. wait(2300ms);
  169. getslotitem(0,&id,#stack);
  170. getslotitem(53,&id,#stackt);
  171. if((%#stackt%=0)&&(%#stack%=0));
  172. log(nao detectou o pack!!);
  173. #numerobauget=#numerobauget+1;
  174. unset(contix);
  175. else;
  176. for(#p,0,53);
  177. //log(tentou);
  178. getslotitem(%#p%,&id,#stack);
  179. ifmatches(%&id%,%&itemid%);
  180. if(%#stack%>0);
  181. slotclick(%#p%,right,true);
  182. // log(clicou no egg);
  183. wait(80ms);
  184. endif;
  185. endif;
  186. next;
  187. endif;
  188.  
  189. for(#p,54,63);
  190. slotclick(%#p%,right,true);
  191. wait(180ms);
  192. next;
  193.  
  194. wait(150ms);
  195. gui();
  196. wait(1);
  197. if(contix);
  198. pick(spawn_egg);
  199. do();
  200. }$$
  201. /home Cassino
  202. $${
  203. log(%@#saida%);
  204. wait(2);
  205. do();
  206. if(%ITEM%!=%&itemid%);
  207. pick(spawn_egg);
  208. if(%ITEM%!=%&itemid%);
  209. wait(280ms);
  210. endif;
  211. endif;
  212. key(attack);
  213. wait(50ms);
  214. while(%@#saida%=0);
  215. gui(inventory);
  216. wait(400ms);
  217. @#saida2=0;
  218. do(9);
  219. getslot(%&itemid%,#i);
  220. if(%#i%<36);
  221. slotclick(%#i%,l,true);
  222. endif;
  223. if(%#i%=-1);
  224. @#saida2=1;
  225. endif;
  226. loop;
  227. gui();
  228. wait(1);
  229. @#saida=0;
  230. log(%@#saida%);
  231. wait(1);
  232. while(%@#saida2%=0);
  233. endif;
  234. endif;
  235. loop;
  236.  
  237.  
  238.  
  239. endif;
  240. }$$
Advertisement
Add Comment
Please, Sign In to add comment