Guest User

macro pesca

a guest
Dec 10th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. $${
  2. if(vip);
  3. log(&6[Macro]&b Pescador Vip Propano &4[Off]);
  4. unset(vip);
  5. unset(@pv);
  6. unset(@rec);
  7. unset(@des);
  8. set(reload);
  9. stop;
  10. else;
  11. set(vip);
  12. set(@rec);
  13. set(@pv);
  14. set(@pergunta);
  15. @&chave[%@#idp%]=%KEYNAME%;
  16. if(!@des);
  17. if(reload);
  18. unset(reset);set(&cor[1],&6&l»);set(&cor[2],&0);set(p1);
  19. do;
  20. clearchat;
  21. log(&b====&6Continuar de onde paro?&b====);
  22. log( &61 &b- %&cor[1]%Sim &f--- %&cor[2]%Não );
  23. log( &60 &b- &fContinuar);
  24. if(KEY_1);wait(1ms);if(!p1);set(&cor[1],&6&l»);set(&cor[2],&0);unset(reset);set(p1);set(reload);else;set(&cor[1],&0);set(&cor[2],&6&l»);unset(p1);unset(reload);set(reset);endif;endif;
  25. if(KEY_0);break;endif;
  26. loop;
  27. else;
  28. set(reset);
  29. endif;
  30. if(reset);
  31. &guar=none;
  32. &guarda=written_book;
  33. do;
  34. prompt(&guar,$$i,Selecione os itens para guardar! (Digite 0 para sair));
  35. ifmatches(%&guar%,air|0|none);
  36. break;
  37. else;
  38. &guarda=%&guarda%|%&guar%;
  39. endif;
  40. loop;
  41. ifmatches(%DIRECTION%,N);&dir=north;endif;
  42. ifmatches(%DIRECTION%,S);&dir=south;endif;
  43. ifmatches(%DIRECTION%,W);&dir=west;endif;
  44. ifmatches(%DIRECTION%,E);&dir=east;endif;
  45. #xp=%XPOS%;
  46. #zp=%ZPOS%;
  47. #yaw=%YAW% + 180;
  48. #pitch=%PITCH%;
  49. endif;
  50. #temp=0;
  51. #bau=4;
  52. #fil=1;
  53. endif;
  54. log(&6[Macro]&b Pescador Vip Propano &2[On]);
  55. log(&6[Macro]&b Coordenadas Gravadas:);
  56. log(&6&lX: &b%#xp%);
  57. log(&6&lZ: &b%#zp%);
  58. set(jog);
  59. do;
  60. do;
  61. look(%&dir%);
  62. look(%#yaw%,%#pitch%);
  63. inc(#temp);
  64. if(%#temp%>=50);
  65. #vazio = 0;
  66. do;gui(inventory);wait(1);until(%GUI%="GUIINVENTORY");
  67. #temp=0;
  68. for(#i,9,44);
  69. look(%&dir%);
  70. look(%#yaw%,%#pitch%);
  71. slot(1);
  72. if(jog);unset(jog);wait(1);slot(1);key(use);endif;
  73. getslotitem(%#i%,&id);
  74. ifmatches(%&id%,air);
  75. inc(#vazio);
  76. endif;
  77. if(%GUI%="NONE");#vazio=4;break;endif;
  78. next;
  79. if(%#vazio%<=3);
  80. break;
  81. gui();
  82. endif;
  83. gui();
  84. endif;
  85. if((%XPOS%!=%#xp%)|(%ZPOS%!=%#zp%));
  86. set(repos);
  87. unset(reparar);
  88. unset(guarda);
  89. #vazio=4;
  90. gui();
  91. break;
  92. endif;
  93. if(%DURABILITY%<20);
  94. #vazio=4;
  95. set(reparar);
  96. gui();
  97. break;
  98. endif;
  99. loop;
  100. if(%#vazio%<=3);
  101. look(%#yaw%,%#pitch%);
  102. do;gui(inventory);wait(1);until(%GUI%="GUIINVENTORY");
  103. for(#i,9,44);
  104. getslotitem(%#i%,&id);
  105. ifmatches(%&id%,%&guarda%|string);else;
  106. if(%#i%!=36);slotclick(%#i%);endif;
  107. slotclick(-999);
  108. wait(100ms);
  109. endif;
  110. next;
  111. #vazio = 0;
  112. for(#i,9,44);
  113. getslotitem(%#i%,&id);
  114. ifmatches(%&id%,air);
  115. inc(#vazio);
  116. endif;
  117. next;
  118. if(%#vazio%<=3);
  119. set(guarda);
  120. endif;
  121. endif;
  122. if(reparar);
  123. unset(reparar);
  124. #x=%XPOS%;#z=%ZPOS%;
  125. do;
  126. }$$/home pescabau$${
  127. wait(10);
  128. until((%XPOS%!=%#x%)|(%ZPOS%!=%#z%));
  129. keydown(jump);wait(1);keyup(jump);wait(1);
  130. look(,90);
  131. do(3);slot(1);key(use);key(attack);loop;
  132. set(repos);
  133. endif;
  134. if(guarda);
  135. unset(guarda);
  136. gui();
  137. #x=%XPOS%;#z=%ZPOS%;
  138. do;
  139. }$$/home pescabau$${
  140. wait(10);
  141. until((%XPOS%!=%#x%)|(%ZPOS%!=%#z%));
  142. keydown(jump);wait(1);keyup(jump);wait(1);
  143. #x = %XPOS%;
  144. #z = %ZPOS%;
  145. do;
  146. #exit = 0;
  147. do;
  148. ifmatches(%DIRECTION%,N);getidrel(0,%#bau%,-2,&vbau);&dir_bau=North;#pos = %XPOS%;#posf = %#x% + (%#fil% - 1);endif;
  149. ifmatches(%DIRECTION%,S);getidrel(0,%#bau%,2,&vbau);&dir_bau=South;#pos = %XPOS%;#posf = %#x% - (%#fil% - 1);endif;
  150. ifmatches(%DIRECTION%,W);getidrel(-2,%#bau%,0,&vbau);&dir_bau=West;#pos = %ZPOS%;#posf = %#z% - (%#fil% - 1);endif;
  151. ifmatches(%DIRECTION%,E);getidrel(2,%#bau%,0,&vbau);&dir_bau=East;#pos = %ZPOS%;#posf = %#z% + (%#fil% - 1);endif;
  152. look(%&dir_bau%);
  153. if(%#bau% = 4);look(,-62);endif;
  154. if(%#bau% = 3);look(,-50);endif;
  155. if(%#bau% = 2);look(,-25);endif;
  156. if(%#bau% = 1);look(,0);endif;
  157. if(%#bau% = 0);look(,35);endif;
  158. if(%#pos% != %#posf%);keydown(right);keydown(sneak);endif;
  159. until(%#pos% = %#posf%);
  160. wait(100ms);
  161. keyup(right);
  162. keyup(sneak);
  163. wait(1);
  164. if((%&vbau%="chest")|(%&vbau%="trapped_chest"));
  165. do;key(use);wait(5);until(%GUI% = "GUICHEST");
  166. wait(1);
  167. #sbv = 0;
  168. for(#i,0,53);
  169. getslotitem(%#i%,&id);
  170. if(%&id% = "air");
  171. #sbv = 1;
  172. break;
  173. endif;
  174. next;
  175. if(%#sbv% = 1);
  176. for(#i,54,89);
  177. getslotitem(%#i%,&id);
  178. ifmatches(%&id%,%&guarda%);
  179. if(%#i%!=81);slotclick(%#i%,l,true);endif;
  180. wait(150ms);
  181. endif;
  182. next;
  183. #exit = 0;
  184. for(#i,0,53);
  185. getslotitem(%#i%,&id);
  186. if(%&id% = "air");
  187. #exit = 1;
  188. break;
  189. endif;
  190. next;
  191. if(%#exit% = 0);
  192. dec(#bau);
  193. gui();
  194. if(%#bau% = -1);
  195. #bau = 4;
  196. inc(#fil);
  197. endif;
  198. endif;
  199. gui();
  200. else;
  201. dec(#bau);
  202. if(%#bau% = -1);
  203. #bau = 4;
  204. inc(#fil);
  205. endif;
  206. gui();
  207. endif;
  208. else;
  209. log(&6[Macro]&b Acabo os baus!!!);
  210. log(&6[Macro]&b Pesca Vip &4[Off]);
  211. unset(vip);
  212. stop;
  213. endif;
  214. until(%#exit% = 1);
  215. set(repos);
  216. endif;
  217. if(repos);
  218. unset(repos);
  219. log(&6[Macro]&b Voltando para o pesqueiro....);
  220. wait(1);
  221. #x=%XPOS%;#z=%ZPOS%;
  222. do;
  223. }$$/warp vip$${
  224. wait(10);
  225. if(@home);
  226. unset(@home);
  227. do(5);
  228. }$$/spawn$${
  229. wait(5);
  230. until((%XPOS%!=%#x%)|(%ZPOS%!=%#z%));
  231. wait(10);
  232. endif;
  233. until((%XPOS%=702)&&(%ZPOS%=656));
  234. keydown(jump);wait(1);keyup(jump);
  235. do;
  236. sprint;
  237. keydown(forward);
  238. look(south);
  239. getidrel(0,0,1,&bl);if(%&bl%!="air");keydown(jump);else;keyup(jump);endif;
  240. if(%ZPOS%>=892);keydown(sneak);else;keyup(sneak);endif;
  241. until(%ZPOS%=895);
  242. unsprint;keyup(forward);keyup(sneak);keyup(jump);
  243. do;
  244. calcyawto(%#xp%,%#zp%,#vist);#vist=%#vist%+180;
  245. look(%#vist%,0);
  246. keydown(forward);
  247. keydown(jump);
  248. getidrel(0,0,1,&bl1);getidrel(0,1,1,&bl2);if((%&bl1%="log")|(%&bl2%="log"));keydown(right);else;keyup(right);endif;
  249. until((%XPOS%=%#xp%)&&(%ZPOS%=%#zp%));
  250. keyup(forward);keyup(sneak);keyup(jump);
  251. gui(inventory);
  252. slot(1);
  253. set(jog);
  254. endif;
  255. loop;
  256. endif;
  257. }$$
Add Comment
Please, Sign In to add comment