Advertisement
Guest User

potdofeik.txt

a guest
Jul 5th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.60 KB | None | 0 0
  1. $${
  2. // #********************************#
  3. // # Macro criado por feik - v1.1 #
  4. // # VERSAO BETA #
  5. // # #
  6. // # Inicio: 05/07/2015 #
  7. // # Termino: --/07/2015 #
  8. // # #
  9. // # Sugestao de: zSlayer_ #
  10. // #--------------------------------#
  11.  
  12. if(%MODE% = 1);
  13. log(" &4[ERRO] &fVoce nao pode iniciar o macro no criativo.");
  14.  
  15. unset(@feikpot);
  16. stop();
  17. endif;
  18.  
  19. if(@feikpot);
  20. log(" &b[MACRO DE POT] &4OFF");
  21. log("");
  22.  
  23. unset(@feikpot);
  24. stop();
  25. else;
  26. log("");
  27. log(" &2[DICA] &aNunca interrompa o macro enquanto ele estiver on para garantir que suas pots sejam feitas.");
  28. log("");
  29.  
  30. set(@feikpot);
  31. endif;
  32.  
  33. // Permitir que o macro funcione em qualquer direcao.
  34. &dir=%DIRECTION%;
  35. ifmatches(%&dir%,N); &dir=NORTH; endif;
  36. ifmatches(%&dir%,S); &dir=SOUTH; endif;
  37. ifmatches(%&dir%,E); &dir=EAST; endif;
  38. ifmatches(%&dir%,W); &dir=WEST; endif;
  39.  
  40. // Perguntar numero de ingredientes
  41. prompt(#ig, $$?, "Quantos Ingredientes você vai usar? CONTANDO COM O FUNGO!!");
  42. if(#ig > 0);
  43. if(#ig < 7);
  44. if(#ig = 1);
  45. log(" &2[OK] &eUsando &6%#ig% &eingrediente.");
  46. else;
  47. log(" &2[OK] &eUsando &6%#ig% &eingredientes.");
  48. endif;
  49. else;
  50. log(" &4[ERRO] &fVoce pode usar no maximo 6 ingredientes.");
  51. log(" &4[ERRO] &eMacro desligado.");
  52.  
  53. unset(@feikpot);
  54. stop();
  55. endif;
  56. else;
  57. log(" &4[ERRO] &fO numero de ingredientes precisa ser &2MAIOR &fque &e0&f.");
  58. log(" &4[ERRO] &eMacro desligado.");
  59.  
  60. unset(@feikpot);
  61. stop();
  62. endif;
  63.  
  64. // Perguntar numero de ingredientes
  65. prompt(&cmd, $$?, "(OPCIONAL) Que comando deseja executar apos o fim do macro?");
  66. if(%&cmd% = "");
  67. log(" &2[OK] &aNenhum comando sera usado");
  68. else;
  69. if(%&cmd% = " ");
  70. log(" &2[OK] &aNenhum comando sera usado");
  71. else;
  72. log(" &2[OK] &eComando definido como&6%&cmd%");
  73. endif;
  74. endif;
  75.  
  76. // Checar os GUIs
  77. // Bau de ingredientes
  78. look(%&dir%); look(+0,37); look(-25,37); wait(500ms);
  79. if(%HITID% = 54); log(" &2[OK] &aBau de ingredientes ao alcance.");
  80. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  81. // Suportes
  82. look(%&dir%); look(+0,25); look(-15,25); wait(500ms); // F1 S1
  83. if(%HITID% = 117); log(" &2[OK] &aSuporte ao alcance.");
  84. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  85.  
  86. look(%&dir%); look(+0,25); wait(500ms); // F1 S2
  87. if(%HITID% = 117); log(" &2[OK] &aSuporte ao alcance.");
  88. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  89.  
  90. look(%&dir%); look(+0,25); look(+15,25); wait(500ms); // F1 S3
  91. if(%HITID% = 117); log(" &2[OK] &aSuporte ao alcance.");
  92. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  93.  
  94. look(%&dir%); look(+0,10); look(-15,10); wait(500ms); // F2 S1
  95. if(%HITID% = 117); log(" &2[OK] &aSuporte ao alcance.");
  96. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  97.  
  98. look(%&dir%); look(+0,10); wait(500ms); // F2 S2
  99. if(%HITID% = 117); log(" &2[OK] &aSuporte ao alcance.");
  100. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  101.  
  102. look(%&dir%); look(+0,10); look(+15,10); wait(500ms); // F2 S3
  103. if(%HITID% = 117); log(" &2[OK] &aSuporte ao alcance.");
  104. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  105.  
  106. look(%&dir%); look(+0,-5); look(-15,-5); wait(500ms); // F3 S1
  107. if(%HITID% = 117); log(" &2[OK] &aSuporte ao alcance.");
  108. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  109.  
  110. look(%&dir%); look(+0,-5); look(-3,-5); wait(500ms); // F3 S2
  111. if(%HITID% = 117); log(" &2[OK] &aSuporte ao alcance.");
  112. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  113.  
  114. look(%&dir%); look(+0,-5); look(+15,-5); wait(500ms); // F3 S3
  115. if(%HITID% = 117); log(" &2[OK] &aSuporte ao alcance.");
  116. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  117. // Baus de pot (da esquerda para a direita)
  118. look(%&dir%); look(+0,30); look(-45,30); wait(500ms); // Bau 1
  119. if(%HITID% = 54); log(" &2[OK] &aBau duplo de guardar pot ao alcance.");
  120. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  121.  
  122. look(%&dir%); look(+0,0); look(-45,0); wait(500ms); // Bau 2
  123. if(%HITID% = 54); log(" &2[OK] &aBau duplo de guardar pot ao alcance.");
  124. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  125.  
  126. look(%&dir%); look(+0,-10); look(-45,-10); wait(500ms); // Bau 3
  127. if(%HITID% = 54); log(" &2[OK] &aBau duplo de guardar pot ao alcance.");
  128. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  129.  
  130. look(%&dir%); look(+0,-20); look(-25,-20); wait(500ms); // Bau 4
  131. if(%HITID% = 54); log(" &2[OK] &aBau duplo de guardar pot ao alcance.");
  132. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  133.  
  134. look(%&dir%); look(+0,-20); look(-10,-20); wait(500ms); // Bau 5 (trap)
  135. if(%HITID% = 146); log(" &2[OK] &aBau duplo de guardar pot ao alcance.");
  136. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  137.  
  138. look(%&dir%); look(+0,-20); look(+20,-20); wait(500ms); // bau 6
  139. if(%HITID% = 54); log(" &2[OK] &aBau duplo de guardar pot ao alcance.");
  140. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  141.  
  142. look(%&dir%); look(+0,-10); look(+45,-10); wait(500ms); // Bau 7
  143. if(%HITID% = 54); log(" &2[OK] &aBau duplo de guardar pot ao alcance.");
  144. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  145.  
  146. look(%&dir%); look(+0,0); look(+45,0); wait(500ms); // Bau 8
  147. if(%HITID% = 54); log(" &2[OK] &aBau duplo de guardar pot ao alcance.");
  148. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  149.  
  150. look(%&dir%); look(+0,30); look(+45,30); wait(500ms); // Bau 9
  151. if(%HITID% = 54); log(" &2[OK] &aBau duplo de guardar pot ao alcance.");
  152. else; log(" &4[ERRO] &fCheque onde voce esta."); unset(@feikpot); stop(); endif; wait(250ms);
  153.  
  154. // Checar se o inventarios esta vazio
  155. GUI(inventory);
  156. wait(500ms);
  157. for(#i,9,44); // Percorrer do slot 9 ao 44
  158. ifmatches(%GUI%,GUIINVENTORY);
  159. getSlotItem(%#i%,#tmp);
  160. if(#tmp != 0);
  161. log(" &4[ERRO] &fEsvazie o inventario");
  162. log(" &4[ERRO] &eMacro desligado.");
  163.  
  164. unset(@feikpot);
  165. stop();
  166. endif;
  167. else;
  168. ifmatches(%GUI%,GUICONTAINERCREATIVE);
  169. log(" &4[ERRO] &fInicie o macro no survival");
  170. log(" &4[ERRO] &eMacro desligado.");
  171. else;
  172. log(" &4[ERRO] &fVoce fechou o inventario ou ele nao abriu.");
  173. log(" &4[ERRO] &eMacro desligado.");
  174. endif;
  175.  
  176. unset(@feikpot);
  177. stop();
  178. endif;
  179. next();
  180. #i = 0;#tmp = 0;
  181. log(" &2[OK] &aInventario vazio.");
  182.  
  183. // Sair do inventario
  184. gui();
  185. wait(500ms);
  186.  
  187. // Olhar para o bau de ingredientes
  188. look(%&dir%); look(+0,37); look(-25,37); wait(250ms);
  189.  
  190. // Checar se o bau de ingredientes pode ser aberto
  191. #tempo = 0;
  192. key(use);
  193. do();
  194. wait(500ms);
  195. INC(#tempo, 1);
  196. if(#tempo > 6);
  197. log(" &4[ERRO] &fMais de 3 segundos sem o bau abrir. ");
  198. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  199. log(" &4[ERRO] &eMacro desligado.");
  200.  
  201. unset(@feikpot);
  202. stop();
  203. endif;
  204. until(GUI = "GUICHEST");
  205. #tempo = 0;
  206.  
  207. // Checar se o bau de ingredientes tem frascos suficientes para encher os 9 baus duplos
  208. #frasc = 0; // Quantidade de frascos
  209. #stk = 0; // Quantidade de frascos
  210. for(#i,0,7) // Percorrer os primeiros 8 slots do bau de ingredientes
  211. ifmatches(%GUI%,GUICHEST);
  212. getSlotItem(%#i%,#tmp,#stk);
  213. if((#tmp = 374) && (#stk = 64)); // Se o item for um frasco vazio e tiver 64 dele
  214. // nothing
  215. else;
  216. log(" &4[ERRO] &fVoce nao tem 8 packs de frascos.");
  217. log(" &4[ERRO] &eMacro desligado.");
  218.  
  219. unset(@feikpot);
  220. stop();
  221. endif;
  222. else;
  223. log(" &4[ERRO] &fVoce fechou o inventario");
  224. log(" &4[ERRO] &eMacro desligado.");
  225.  
  226. unset(@feikpot);
  227. stop();
  228. endif;
  229. next();
  230. #i = 0; #tmp = 0; #stk = 0;
  231. log(" &2[OK] &a8 packs de frascos vazios no bau.");
  232.  
  233. // Ingredientes usados [a partir do 1]
  234. #ing[0] = 0; #ing[1] = 0; #ing[2] = 0; #ing[3] = 0; #ing[4] = 0; #ing[5] = 0; #ing[6] = 0;
  235.  
  236. // Slots dos ingredientes [a partir do 1]
  237. #slo[0] = 0; #slo[1] = 9; #slo[2] = 12; #slo[3] = 15; #slo[4] = 18; #slo[5] = 21; #slo[6] = 24;
  238.  
  239. // Checar os ingredientes.
  240. #i = 0;
  241. #stk = 0;
  242. for(#i,1,%#ig%);
  243. ifmatches(%GUI%,GUICHEST);
  244. #cont = 0;
  245.  
  246. #a = #slo[%#i%];
  247. #b = %#a% + 2;
  248.  
  249. for(#j, %#a%, %#b%);
  250. getSlotItem(%#j%,#tmp,#stk);
  251. inc(#cont,%#stk%);
  252.  
  253. if(#i = 1); #ing[1] = %#tmp%; endif;
  254. if(#i = 2); #ing[2] = %#tmp%; endif;
  255. if(#i = 3); #ing[3] = %#tmp%; endif;
  256. if(#i = 4); #ing[4] = %#tmp%; endif;
  257. if(#i = 5); #ing[5] = %#tmp%; endif;
  258. if(#i = 6); #ing[6] = %#tmp%; endif;
  259. next();
  260.  
  261. if(#cont >= 150);
  262. log(" &2[OK] &aVoce possui pelo menos 150 do ingrediente %#i% &e[%#cont%]");
  263. else;
  264. ifmatches(%GUI%,GUICHEST);
  265. log(" &4[ERRO] &fMenos de &e150 &funidades do ingrediente %#i%.");
  266. log(" &4[ERRO] &eMacro desligado.");
  267. else;
  268. log(" &4[ERRO] &fVoce fechou o inventario");
  269. log(" &4[ERRO] &eMacro desligado.");
  270. endif;
  271.  
  272. unset(@feikpot);
  273. stop();
  274. endif;
  275. #cont = 0;
  276. else;
  277. log(" &4[ERRO] &fVoce fechou o inventario");
  278. log(" &4[ERRO] &eMacro desligado.");
  279.  
  280. unset(@feikpot);
  281. stop();
  282. endif;
  283. next();
  284. #tmp = 0; #cont = 0; #i = 0; #stk = 0; #j = 0;
  285. #a = 0; #b = 0; #k = 0;
  286.  
  287.  
  288. // Pegar frascos / ingredientes
  289. #fr = 0; // SLOT DE FRASCO
  290. do;
  291. ifmatches(%GUI%,GUICHEST);
  292. getSlot(374,#fr); // Frasco vazio;
  293. slotClick(%#fr%, 0, 1);
  294. wait(100ms);
  295.  
  296. for(#i,1,%#ig%);
  297. #iga = #ing[%#i%];
  298.  
  299. getSlot(%#iga%,#fr);
  300. slotClick(%#fr%, 0, 1);
  301. wait(100ms);
  302. next();
  303.  
  304. break;
  305. else;
  306. log(" &4[ERRO] &fVoce fechou o inventario");
  307. log(" &4[ERRO] &eMacro desligado.");
  308.  
  309. unset(@feikpot);
  310. stop();
  311. endif;
  312. until(GUI = "NONE");
  313.  
  314. gui();
  315. slot(9);
  316.  
  317. // Olhar para a agua
  318. look(%&dir%); // Ajustar a direcao de inicio
  319. look(+0,45); // Ajustar o angulo para o da agua
  320.  
  321. // Encher os frascos
  322. gui(inventory);
  323. wait(500ms);
  324. UNSAFE(36);
  325. do;
  326. ifmatches(%GUI%,GUIINVENTORY);
  327. key(use);
  328. getSlotItem(29,#tmp);
  329. if(#tmp = 373);
  330. break;
  331. endif;
  332. wait(150ms);
  333. else;
  334. ifmatches(%GUI%,GUICONTAINERCREATIVE);
  335. log(" &4[ERRO] &fMude seu gamemode e reinicie o macro no survival");
  336. log(" &4[ERRO] &eMacro desligado.");
  337. else;
  338. log(" &4[ERRO] &fVoce fechou o inventario ou ele nao abriu.");
  339. log(" &4[ERRO] &eMacro desligado.");
  340. endif;
  341.  
  342. unset(@feikpot);
  343. stop();
  344. endif;
  345. loop;
  346. ENDUNSAFE();
  347.  
  348. wait(2500ms);
  349. #i = 0; #l = 0; // Last slot with
  350. for(#i,26,35);
  351. getSlotItem(%#i%,#tmp);
  352.  
  353. if(%#tmp% = 373);
  354. #l = #i;
  355. endif;
  356. next;
  357. #a = 35 - %#l%;
  358. do(%#a%);
  359. key(use);
  360. wait(750ms);
  361. loop;
  362. gui;
  363. wait(2000ms);
  364.  
  365. #bau = 0; // BAU ATUAL
  366. #baud = 0; // BAU DUPLO FEITO
  367.  
  368. // COMECAR O LOOP;
  369. #lag = 500;
  370. do();
  371. if(#bau = 2); #bau = 0; inc(#baud,1); endif;
  372. if(#baud = 9); break; endif;
  373.  
  374. for(#j, 1, %#ig%);
  375. #sl = 39 - %#j%;
  376. #a = 4; #b = 6;
  377.  
  378. // fileiras de baixo para cima
  379. // Fileira 1
  380. // Mesa 1
  381. look(%&dir%); look(+0,25); look(-15,25); wait(500ms); key(use); #tempo = 0;
  382. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  383. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  384. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  385. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  386. if(%#j% = 1); for(#s,%#a%,%#b%); slotClick(%#s%,0,true); wait(500ms); next(); endif;
  387. slotClick(%#sl%,l,false); wait(%#lag%ms); slotclick(%#sl%,r,false); wait(%#lag%ms);
  388. slotClick(%#sl%,l,true); wait(%#lag%ms); slotclick(%#sl%,l,false); wait(%#lag%ms); wait(750ms); gui;
  389. inc(#a,3); inc(#b,3); wait(750ms); #tempo = 0;
  390.  
  391. // Mesa 2
  392. look(%&dir%); look(+0,25); wait(500ms); key(use);
  393. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  394. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  395. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  396. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  397. if(%#j% = 1); for(#s,%#a%,%#b%); slotClick(%#s%,0,true); wait(500ms); next(); endif;
  398. slotClick(%#sl%,l,false);wait(%#lag%ms);slotclick(%#sl%,r,false);wait(%#lag%ms);
  399. slotClick(%#sl%,l,true);wait(%#lag%ms);slotclick(%#sl%,l,false);wait(%#lag%ms); wait(750ms); gui;
  400. inc(#a,3);inc(#b,3);wait(750ms); #tempo = 0;
  401.  
  402. // Mesa 3
  403. look(%&dir%); look(+0,25); look(+15,25); wait(500ms); key(use);
  404. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  405. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  406. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  407. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  408. if(%#j% = 1); for(#s,%#a%,%#b%); slotClick(%#s%,0,true); wait(500ms); next(); endif;
  409. slotClick(%#sl%,l,false);wait(%#lag%ms);slotclick(%#sl%,r,false);wait(%#lag%ms);
  410. slotClick(%#sl%,l,true);wait(%#lag%ms);slotclick(%#sl%,l,false);wait(%#lag%ms); wait(750ms); gui;
  411. inc(#a,3);inc(#b,3);wait(750ms); #tempo = 0;
  412. // Fileira 2
  413. // Mesa 1
  414. look(%&dir%); look(+0,10); look(-15,10); wait(500ms); key(use);
  415. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  416. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  417. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  418. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  419. if(%#j% = 1); for(#s,%#a%,%#b%); slotClick(%#s%,0,true); wait(500ms); next(); endif;
  420. slotClick(%#sl%,l,false);wait(%#lag%ms);slotclick(%#sl%,r,false);wait(%#lag%ms);
  421. slotClick(%#sl%,l,true);wait(%#lag%ms);slotclick(%#sl%,l,false);wait(%#lag%ms); wait(750ms); gui;
  422. inc(#a,3);inc(#b,3);wait(750ms); #tempo = 0;
  423.  
  424. // Mesa 2
  425. look(%&dir%); look(+0,10); wait(500ms); key(use);
  426. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  427. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  428. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  429. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  430. if(%#j% = 1); for(#s,%#a%,%#b%); slotClick(%#s%,0,true); wait(500ms); next(); endif;
  431. slotClick(%#sl%,l,false);wait(%#lag%ms);slotclick(%#sl%,r,false);wait(%#lag%ms);
  432. slotClick(%#sl%,l,true);wait(%#lag%ms);slotclick(%#sl%,l,false);wait(%#lag%ms); wait(750ms); gui;
  433. inc(#a,3);inc(#b,3);wait(750ms); #tempo = 0;
  434.  
  435. // Mesa 3
  436. look(%&dir%); look(+0,10); look(+15,10); wait(500ms); key(use);
  437. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  438. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  439. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  440. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  441. if(%#j% = 1); for(#s,%#a%,%#b%); slotClick(%#s%,0,true); wait(500ms); next(); endif;
  442. slotClick(%#sl%,l,false);wait(%#lag%ms);slotclick(%#sl%,r,false);wait(%#lag%ms);
  443. slotClick(%#sl%,l,true);wait(%#lag%ms);slotclick(%#sl%,l,false);wait(%#lag%ms); wait(750ms); gui;
  444. inc(#a,3);inc(#b,3);wait(750ms); #tempo = 0;
  445.  
  446. // Fileira 3
  447. // Mesa 1
  448. look(%&dir%); look(+0,-5); look(-15,-5); wait(500ms); key(use);
  449. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  450. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  451. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  452. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  453. if(%#j% = 1); for(#s,%#a%,%#b%); slotClick(%#s%,0,true); wait(500ms); next(); endif;
  454. slotClick(%#sl%,l,false);wait(%#lag%ms);slotclick(%#sl%,r,false);wait(%#lag%ms);
  455. slotClick(%#sl%,l,true);wait(%#lag%ms);slotclick(%#sl%,l,false);wait(%#lag%ms); wait(750ms); gui;
  456. inc(#a,3);inc(#b,3);wait(750ms); #tempo = 0;
  457.  
  458. // Mesa 2
  459. look(%&dir%); look(+0,-5); look(-3,-5); wait(500ms); key(use);
  460. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  461. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  462. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  463. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  464. if(%#j% = 1); for(#s,%#a%,%#b%); slotClick(%#s%,0,true); wait(500ms); next(); endif;
  465. slotClick(%#sl%,l,false);wait(%#lag%ms);slotclick(%#sl%,r,false);wait(%#lag%ms);
  466. slotClick(%#sl%,l,true);wait(%#lag%ms);slotclick(%#sl%,l,false);wait(%#lag%ms); wait(750ms); gui;
  467. inc(#a,3);inc(#b,3);wait(750ms); #tempo = 0;
  468.  
  469. // Mesa 3
  470. look(%&dir%); look(+0,-5); look(+15,-5); wait(500ms); key(use);
  471. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  472. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  473. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  474. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  475. if(%#j% = 1); for(#s,%#a%,%#b%); slotClick(%#s%,0,true); wait(500ms); next(); endif;
  476. slotClick(%#sl%,l,false);wait(%#lag%ms);slotclick(%#sl%,r,false);wait(%#lag%ms);
  477. slotClick(%#sl%,l,true);wait(%#lag%ms);slotclick(%#sl%,l,false);wait(%#lag%ms); wait(750ms); gui;
  478. inc(#a,3);inc(#b,3);wait(750ms); #tempo = 0;
  479.  
  480. wait(2000ms);
  481. next(); //----------------------------------------------------------------
  482.  
  483. // Pegas as pots nos suportes e botar no inventario
  484. // Fileira 1
  485. // Suporte 1
  486. look(%&dir%); look(+0,25); look(-15,25); wait(500ms); key(use);
  487. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  488. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  489. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  490. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  491. for(#s,0,2); slotClick(%#s%,0,true); wait(750ms); next(); endif;
  492. gui(); wait(750ms); #tempo = 0;
  493. // Suporte 2
  494. look(%&dir%); look(+0,25); wait(500ms); key(use);
  495. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  496. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  497. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  498. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  499. for(#s,0,2); slotClick(%#s%,0,true); wait(750ms); next(); endif;
  500. gui(); wait(750ms); #tempo = 0;
  501. // Suporte 3
  502. look(%&dir%); look(+0,25); look(+15,25); wait(500ms); key(use);
  503. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  504. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  505. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  506. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  507. for(#s,0,2); slotClick(%#s%,0,true); wait(750ms); next(); endif;
  508. gui(); wait(750ms); #tempo = 0;
  509. // Fileira 2
  510. // Suporte 1
  511. look(%&dir%); look(+0,10); look(-15,10); wait(500ms); key(use);
  512. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  513. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  514. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  515. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  516. for(#s,0,2); slotClick(%#s%,0,true); wait(750ms); next(); endif;
  517. gui(); wait(750ms); #tempo = 0;
  518. // Suporte 2
  519. look(%&dir%); look(+0,10); wait(500ms); key(use);
  520. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  521. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  522. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  523. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  524. for(#s,0,2); slotClick(%#s%,0,true); wait(750ms); next(); endif;
  525. gui(); wait(750ms); #tempo = 0;
  526. // Suporte 3
  527. look(%&dir%);look(+0,10); look(+15,10); wait(500ms); key(use);
  528. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  529. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  530. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  531. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  532. for(#s,0,2); slotClick(%#s%,0,true); wait(750ms); next(); endif;
  533. gui(); wait(750ms); #tempo = 0;
  534. // Fileira 3
  535. // Suporte 1
  536. look(%&dir%); look(+0,-5); look(-15,-5); wait(500ms); key(use);
  537. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  538. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  539. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  540. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  541. for(#s,0,2); slotClick(%#s%,0,true); wait(750ms); next(); endif;
  542. gui(); wait(750ms); #tempo = 0;
  543. // Suporte 2
  544. look(%&dir%); look(+0,-5); look(-3,-5); wait(500ms); key(use);
  545. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  546. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  547. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  548. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  549. for(#s,0,2); slotClick(%#s%,0,true); wait(750ms); next(); endif;
  550. gui(); wait(750ms); #tempo = 0;
  551. // Suporte 3
  552. look(%&dir%); look(+0,-5); look(+15,-5); wait(500ms); key(use);
  553. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  554. log(" &4[ERRO] &fMais de 3 segundos sem o suporte abrir. ");
  555. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  556. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUIBREWINGSTAND"); wait(250ms);
  557. for(#s,0,2); slotClick(%#s%,0,true); wait(750ms); next(); endif;
  558. gui(); wait(2500ms); #tempo = 0;
  559.  
  560. if(%#baud% = 0); look(%&dir%); look(+0,30); look(-45,30); endif; // Bau 1
  561. if(%#baud% = 1); look(%&dir%); look(+0,0); look(-45,0); endif; // Bau 2
  562. if(%#baud% = 2); look(%&dir%); look(+0,-10); look(-45,-10); endif; // Bau 3
  563. if(%#baud% = 3); look(%&dir%); look(+0,-20); look(-25,-20); endif; // Bau 4
  564. if(%#baud% = 4); look(%&dir%); look(+0,-20); look(-10,-20); endif; // Bau 5
  565. if(%#baud% = 5); look(%&dir%); look(+0,-20); look(+20,-20); endif; // Bau 6
  566. if(%#baud% = 6); look(%&dir%); look(+0,-10); look(+45,-10); endif; // Bau 7
  567. if(%#baud% = 7); look(%&dir%); look(+0,0); look(+45,0); endif; // Bau 8
  568. if(%#baud% = 8); look(%&dir%); look(+0,30); look(+45,30); endif; // Bau 9
  569. gui();
  570. wait(1000ms);
  571.  
  572. key(use); do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  573. log(" &4[ERRO] &fMais de 3 segundos sem o bau abrir. ");
  574. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  575. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUICHEST");
  576. for(#p,54,80); slotClick(%#p%,0,true); wait(500ms); next(); wait(1000ms); gui(); #tempo = 0;
  577.  
  578. // Olhar para o bau de ingredientes
  579. look(%&dir%); look(+0,37); look(-25,37); wait(500ms); key(use);
  580.  
  581. // Encher os ingredientes
  582. do(); wait(500ms); INC(#tempo, 1); if(#tempo > 6);
  583. log(" &4[ERRO] &fMais de 3 segundos sem o bau abrir. ");
  584. log(" &4[ERRO] &fCheque se voce esta com lag ou no lugar certo");
  585. log(" &4[ERRO] &eMacro desligado."); unset(@feikpot); stop(); endif; Until(GUI = "GUICHEST"); #tempo = 0;
  586.  
  587. // Pegar os ingredientes
  588. for(#i,1,%#ig%);
  589. #igp = #ing[%#i%]; // ID do ingrediente
  590. #spo = 62 - %#i%; // Slot do ingrediente
  591.  
  592. do;
  593. getSlot(%#igp%,#sla); wait(250ms);
  594. slotClick(%#sla%,0,true); wait(250ms);
  595.  
  596. getSlotItem(%#spo%,#iid,#stk); wait(250ms);
  597. if(%#stk% >= 64); break; endif; wait(250ms);
  598. loop;
  599. next();
  600.  
  601.  
  602. // Pegar os frascos vazios
  603. do;
  604. #co = 374;
  605. getSlot(%#co%,#slb);
  606. slotClick(%#slb%,0,true);
  607.  
  608. getSlotItem(62,#aid,#sta);
  609. if(%#sta% >= 64); break; endif;
  610. loop;
  611.  
  612. for(#slt,45,53); slotClick(%#slt%,0,true); wait(500ms); next(); gui();
  613.  
  614. // Encher as pot e voltar o loop
  615. look(%&dir%); look(+0,45); // Olhar para a agua
  616.  
  617. // Encher os frascos
  618. gui(inventory);
  619. wait(500ms);
  620. do;
  621. ifmatches(%GUI%,GUIINVENTORY);
  622. key(use);
  623. getSlotItem(29,#tmp);
  624. if(#tmp = 373);
  625. break;
  626. endif;
  627. wait(150ms);
  628. else;
  629. ifmatches(%GUI%,GUICONTAINERCREATIVE);
  630. log(" &4[ERRO] &fMude seu gamemode e reinicie o macro no survival");
  631. log(" &4[ERRO] &eMacro desligado.");
  632. else;
  633. log(" &4[ERRO] &fVoce fechou o inventario ou ele nao abriu.");
  634. log(" &4[ERRO] &eMacro desligado.");
  635. endif;
  636.  
  637. unset(@feikpot);
  638. stop();
  639. endif;
  640. loop;
  641.  
  642. wait(2500ms);
  643. #i = 0; #l = 0; // Last slot with
  644. for(#i,26,35);
  645. getSlotItem(%#i%,#tmp);
  646. if(%#tmp% = 373);
  647. #l = #i;
  648. endif;
  649. next;
  650. #a = 35 - %#l%;
  651. do(%#a%);
  652. key(use);
  653. wait(750ms);
  654. loop;
  655. gui;
  656. wait(2000ms);
  657.  
  658. inc(#bau,1);
  659. loop;
  660.  
  661. log(" &3&lFIM DO MACRO");
  662. echo(%&cmd%);
  663. unset(@feikpot);
  664. stop();
  665. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement