Guest User

Macro de pesca warp vip

a guest
Oct 8th, 2020
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.04 KB | None | 0 0
  1. $${
  2. &home_pesqueiro = "/home pesqueirovip";
  3. &home_baus = "/home baus_infinitos";
  4. #durabilidade = 20;
  5. &delay = "150ms";
  6. set(&continuar_ultimo_bau,"Perguntar");
  7. set(vip);
  8.  
  9. #id_vara = 346;
  10. #id_linha = 287;
  11. #id_peixe = 349;
  12. #id_ghast = 370;
  13. #id_blaze = 369;
  14. #id_diamante = 264;
  15. #id_maca = 322;
  16. &id_armaduras = "^310$|^311$|^312$|^313$";
  17. &id_ferramentas = "^276$|^277$|^278$|^279$";
  18.  
  19. &ferramentas_de_pedra = "^272$|^273$|^274$|^275$";
  20.  
  21. &direto_pro_bau = "^%#id_peixe%$|^%#id_maca%$|^%#id_diamante%$|^%#id_ghast%$|^%#id_blaze%$|%&ferramentas_de_pedra%";
  22.  
  23. &nao_jogar_fora = "%&id_armaduras%|%&id_ferramentas%|^%#id_vara%$|^%#id_linha%$|%&direto_pro_bau%";
  24. set(p4);
  25. set(s5);
  26. set(eff5);
  27.  
  28. if(a);unset(a);log("pescador simplao: off"); stop; else; log("pescador simplao: on"); set(a); endif;
  29.  
  30. ifmatches(%&continuar_ultimo_bau%,"Desligar"); unset(&continuar_ultimo_bau); endif;
  31.  
  32. if(#coluna > 0);
  33. inc(#coluna,1);
  34. do();
  35. ifmatches(%&continuar_ultimo_bau%,"SIM|NAO|Desligar");
  36. break;
  37. endif;
  38. prompt(&continuar_ultimo_bau,"$$[ [§a§lSIM §f(coluna §6%#coluna%§f - bau §e%#bau%§f),§c§lNAO§f - recomeçar,§6Desligar macro]]","§fDeseja continuar do ultimo bau?");
  39. loop;
  40. ifmatches(%&continuar_ultimo_bau%,"Desligar");
  41. unset(a);
  42. log("pescador simplao: off");
  43. stop;
  44. endif;
  45. ifmatches(%&continuar_ultimo_bau%,"NAO");
  46. log("Bau e coluna resetados.");
  47. #coluna = 1;
  48. #bau = 1;
  49. endif;
  50. endif;
  51. ifmatches(%CANFLY%,"True"); echo("/mc"); endif;
  52. echo("%&home_pesqueiro%");
  53. wait(2000ms);
  54. do();
  55. getidrel(0,0,0,#id_pe);
  56. getidrel(0,1,0,#id_cabeca);
  57. if(((#id_pe == 8)||(#id_pe == 9))&&((#id_cabeca == 8)||(#id_pe == 9)));
  58. echo("/esconder");
  59. break;
  60. else;
  61. echo("%&home_pesqueiro%");
  62. do(14);
  63. wait(500ms);
  64. getidrel(0,0,0,#id_pe);
  65. getidrel(0,1,0,#id_cabeca);
  66. if(((#id_pe == 8)||(#id_pe == 9))&&(#id_cabeca == 8)||(#id_pe == 9)));
  67. break;
  68. endif;
  69. loop;
  70. endif;
  71. loop;
  72.  
  73. #xtrap = %XPOS%;
  74. #ytrap = %YPOS%;
  75. #ztrap = %ZPOS%;
  76.  
  77. #bau_linha = 2;
  78. #coluna_linha = 1;
  79. gui(inventory);
  80. unset(proxima_coluna);
  81. unset(proximo_bau);
  82. unset(guardar);
  83. unset(acabou_linha);
  84. unset(acabou_vara);
  85. if(#coluna <= 0); #coluna = 1; endif;
  86. dec(#coluna,1);
  87. do();
  88. do();
  89. unsafe(0);
  90. if((%XPOS% != %#xtrap%)||(%YPOS% != %#ytrap%)||(%ZPOS% != %#ztrap%));
  91. set(guardar);
  92. log("Erro de posicionamento detectado!");
  93. log("Iniciando procedimentos de armazenamento.");
  94. break;
  95. endif;
  96. endunsafe;
  97. if(%GUI% != "GUIINVENTORY");
  98. log("Inventario Fechado. Aguardando.");
  99. do(10);
  100. wait(500ms);
  101. if((%GUI% == "GUICHAT")||(%GUI% == "GUIINVENTORY")); break; endif;
  102. loop;
  103. if(%GUI% == "GUICHAT");
  104. log("Chat aberto. Aguardando.");
  105. do(30);
  106. wait(500ms);
  107. if((%GUI% != "GUICHAT")&&(%GUI% != "NONE"));
  108. break;
  109. endif;
  110. loop;
  111. endif;
  112. log("Retomando...");
  113. do(5); wait(400ms); if(%GUI% == "GUIINVENTORY"); break; endif; loop;
  114. if(%GUI% != "GUIINVENTORY");
  115. do(); gui(inventory); until(%GUI% == "GUIINVENTORY");
  116. endif;
  117. endif;
  118. if(%ITEM% != %#id_vara%); pick(%#id_vara%); endif;
  119. if(%GUI% == "GUIINVENTORY");
  120. unsafe(0);
  121. getslot(%#id_linha%,#slot_linha,9);
  122. getslot(%#id_vara%,#slot_vara,9);
  123. if(#slot_linha < 0); log("Acabou a linha"); set(acabou_linha); endif;
  124. if(#slot_vara < 0); log("Nao foi encontrada vara."); set(acabou_vara); endif;
  125. if((#slot_vara > 0)&&(#slot_vara < 36));
  126. for(#slot,36,44);
  127. getslotitem(%#slot%,#oq);
  128. if(#oq != #id_vara);
  129. slotclick(%#slot%,l,true);
  130. endif;
  131. next;
  132. wait(100ms);
  133. slotclick(%#slot_vara%,l,true);
  134. pick(%#id_vara%);
  135. wait(300ms);
  136. getslot(%#id_vara%,#slot_vara,36);
  137. if(#slot_vara < 0);
  138. set(acabou_vara);
  139. endif;
  140. endif;
  141. if((acabou_linha)||(acabou_vara));
  142. log("Iniciando procedimentos de armazenamento.");
  143. set(guardar);
  144. break;
  145. endif;
  146. if(%ITEM% != %#id_vara); pick(%#id_vara%); wait(20ms); endif;
  147. endunsafe;
  148. if(%ITEM% == %#id_vara%);
  149. if(%DURABILITY% >= %#durabilidade%);
  150. key(use);
  151. wait(%&delay%);
  152. else;
  153. if(vip);
  154. echo("/reparar");
  155. else;
  156. #yaw = %YAW%+180; if(#yaw > 360); dec(#yaw,360); endif; #pitch = %PITCH%;
  157. look(,90);
  158. wait(500ms);
  159. key(use);
  160. endif;
  161. wait(500ms);
  162. if(%DURABILITY% < %#durabilidade%);
  163. if(!vip); keydown(jump); wait(20ms); keyup(jump); wait(500ms); endif;
  164. wait(1000ms);
  165. if(%DURABILITY% < %#durabilidade%);
  166. if(!vip);
  167. look(,90);
  168. key(use);
  169. else;
  170. echo("/reparar");
  171. endif;
  172. wait(1500ms);
  173. if(%DURABILITY% < %#durabilidade%);
  174. log("Durabilidade nao pode ser corrigida.");
  175. log("Iniciando procedimentos de armazenamento.");
  176. set(guardar);
  177. break;
  178. endif;
  179. endif;
  180. endif;
  181. endif;
  182. endif;
  183. unsafe(0);
  184. if(%GUI% == "GUIINVENTORY");
  185. #vazio = 0;
  186. for(#slot,9,44);
  187. getslotitem(%#slot%,#oq);
  188. if(#oq == 0);
  189. inc(#vazio,1);
  190. endif;
  191. next;
  192. if(#vazio < 3);
  193. log("Menos de 3 slots vazios (%#vazio%)");
  194. log("Iniciando procedimentos de armazenamento.");
  195. set(guardar);
  196. break;
  197. endif;
  198. endif;
  199. endunsafe;
  200. if(guardar); break; endif;
  201. endif;
  202. loop;
  203. if(guardar);
  204. unset(restart);
  205. unset(proxima_coluna);
  206. do();
  207. if(!proxima_coluna);
  208. do();
  209. echo(%&home_baus%);
  210. do(20);
  211. wait(333ms);
  212. unsafe(0);
  213. getidrel(0,-1,-2,#bau1);getidrel(0,0,-2,#bau2);getidrel(0,+1,-2,#bau3);getidrel(0,+2,-2,#bau4);getidrel(0,+3,-2,#bau5);
  214. if(((#bau1 == 54)||(#bau1 == 146))&&((#bau2 == 54)||(#bau2 == 146))&&((#bau3 == 54)||(#bau3 == 146))&&((#bau4 == 54)||(#bau4 == 146))&&((#bau5 == 54)||(#bau5 == 146)));
  215. if(!restart);
  216. break;
  217. else;
  218. if((%XPOS% == %#x_inicio%)&&(%ZPOS% == %#z_inicio%));
  219. break;
  220. endif;
  221. endif;
  222. endif;
  223. endunsafe;
  224. loop;
  225. WAIT(500ms);
  226. if(((#bau1 == 54)||(#bau1 == 146))&&((#bau2 == 54)||(#bau2 == 146))&&((#bau3 == 54)||(#bau3 == 146))&&((#bau4 == 54)||(#bau4 == 146))&&((#bau5 == 54)||(#bau5 == 146)));
  227. if(!restart);
  228. #z_inicio = %ZPOS%;
  229. #y_inicio = %YPOS%;
  230. #x_inicio = %XPOS%;
  231. break;
  232. else;
  233. if((%XPOS% == %#x_inicio%)&&(%ZPOS% == %#z_inicio%)&&(%YPOS% == %#y_inicio%));
  234. #z_inicio = %ZPOS%;
  235. #y_inicio = %YPOS%;
  236. #x_inicio = %XPOS%;
  237. break;
  238. endif;
  239. endif;
  240. endif;
  241. loop;
  242. look(west);
  243. wait(500ms);
  244. unsafe(0);
  245. gui(inventory);
  246. for(#slot,9,44);
  247. getslotitem(%#slot%,#oq);
  248. ifmatches(%#oq%,%&nao_jogar_fora%);
  249. else;
  250. slotclick(%#slot%,l,false);
  251. slotclick(-999);
  252. endif;
  253. next;
  254. gui();
  255. endunsafe;
  256. wait(500ms);
  257. look(north);
  258. endif;
  259. unset(restart);
  260. #x_final = #x_inicio + #coluna;
  261. #x_tolerancia_corrida = #x_final - 1;
  262. #distancia = #x_final - #x_inicio;
  263.  
  264.  
  265.  
  266.  
  267. unsafe();
  268.  
  269.  
  270.  
  271.  
  272. if(%XPOS% != %#x_final%);
  273. do();
  274. #x_agora = %XPOS%;
  275. if((#x_agora > #x_final)||(%ZPOS% != %#z_inicio%)||(%YPOS% != %#y_inicio%));
  276. keyup(forward); keyup(right); keyup(left);keyup(back); keyup(jump); keyup(sneak);
  277. set(restart);
  278. break;
  279. endif;
  280. if(#x_agora == #x_final);
  281. if((%HITID% == 54)||(%HITID% == 146));
  282. keyup(forward); keyup(right); keyup(left);keyup(back); keyup(jump); keyup(sneak);
  283. wait(500ms);
  284. if((%HITID% == 54)||(%HITID% == 146));
  285. unset(restart);
  286. unset(proxima_coluna);
  287. break;
  288. else;
  289. set(restart);
  290. break;
  291. endif;
  292. endif;
  293. endif;
  294. if(#x_agora < #x_final);
  295. if((#distancia > 2)&&(#x_agora < #x_tolerancia_corrida));
  296. SPRINT();
  297. keyup(sneak);
  298. else;
  299. UNSPRINT();
  300. keydown(sneak);
  301. endif;
  302. keydown(right);
  303. endif;
  304. loop;
  305. endif;
  306. endunsafe;
  307. if(!restart);
  308. do();
  309. do();
  310. unset(proximo_bau);
  311. if(#bau == 1); look(0,311); endif;
  312. if(#bau == 2); look(0,333); endif;
  313. if(#bau == 3); look(0,0); endif;
  314. if(#bau == 4); look(0,32); endif;
  315. if(#bau == 5); look(0,54); endif;
  316. if(#bau > 5);
  317. #bau = 1;
  318. inc(#coluna,1);
  319. set(proxima_coluna);
  320. break;
  321. endif;
  322. wait(50ms);
  323. if(%GUI% != "NONE");
  324. gui();
  325. wait(300ms);
  326. endif;
  327. do();
  328. key(use);
  329. unsafe;
  330. do(30);
  331. wait(100ms);
  332. if(%GUI% == "GUICHEST");
  333. break;
  334. endif;
  335. loop;
  336. endunsafe;
  337. if(%GUI% == "GUICHEST");
  338. break;
  339. endif;
  340. loop;
  341. SLOT(1);
  342. unsafe(0);
  343. #vazio = 0;
  344. getslot(0,#vazio);
  345. if((#vazio < 0)||(#vazio > 53));
  346. inc(#bau,1);
  347. gui();
  348. set(proximo_bau);
  349. break;
  350. else;
  351. look(295,20);
  352. endif;
  353.  
  354. for(#slot,54,89);
  355. getslotitem(%#slot%,#oq);
  356. ifmatches(%#oq%,%&nao_jogar_fora%);
  357. ifmatches(%#oq%,%&direto_pro_bau%);
  358. slotclick(%#slot%,l,true);
  359. endif;
  360. else;
  361. if(#oq != 0);
  362. slotclick(%#slot%,l,false);
  363. slotclick(-999);
  364. endif;
  365. endif;
  366. next;
  367.  
  368. #vazio = 0;
  369. getslot(0,#vazio);
  370. if((#vazio < 0)||(#vazio > 53));
  371. inc(#bau,1);
  372. set(proximo_bau);
  373. break;
  374. endif;
  375. endunsafe;
  376. do(4);
  377. unsafe(0);
  378. #contador = 0;
  379. for(#slot,54,89);
  380. getslotitem(%#slot%,#oq);
  381. ifmatches(%#oq%,%&direto_pro_bau%|%&id_armaduras%|%&id_ferramentas%);
  382. inc(#contador,1);
  383. endif;
  384. next;
  385. if(#contador == 0);
  386. break;
  387. endif;
  388. endunsafe;
  389. wait(100ms);
  390. for(#slot,54,89);
  391. unset(&encantamentos);
  392. unsafe(0);
  393. getslot(0,#vazio);
  394. if((#vazio < 0)||(#vazio > 53));
  395. inc(#bau,1);
  396. set(proximo_bau);
  397. break;
  398. endif;
  399. getslotitem(%#slot%,#oq);
  400. endunsafe;
  401. ifmatches(%#oq%,%&nao_jogar_fora%);
  402. unsafe(0);
  403. ifmatches(%#oq%,"%&direto_pro_bau%");
  404. slotclick(%#slot%,l,true);
  405. endif;
  406. endunsafe;
  407. ifmatches(%#oq%,%&id_ferramentas%|%&id_armaduras%);
  408. unsafe();
  409. getslot(0,#slot_vazio,54);
  410. if(#slot_vazio > 0); slotclick(%#slot_vazio%,l,false); endif;
  411. if(#slot < 81);
  412. getslot(0,#slot_vazio,54);
  413. SLOT(1);
  414. slotclick(%#slot%,l,false);
  415. ////wait(50ms);
  416. slotclick(81,l,false);
  417. /////wait(50ms);
  418. slotclick(%#slot%,l,false);
  419. /////wait(50ms);
  420. if(#slot_vazio > 0);
  421. slotclick(%#slot_vazio%,l,false);
  422. //////wait(200ms);
  423. endif;
  424. else;
  425. #qual_slot = #slot - 80;
  426. SLOT(%#qual_slot%);
  427. endif;
  428. endunsafe;
  429. unsafe(0);
  430. unset(&encantamentos);
  431. foreach(enchantments);
  432. set(&encantamentos,"%&encantamentos%-%ENCHANTMENT%");
  433. next;
  434.  
  435. if(s5);
  436. ifmatches(%&encantamentos%,"Sharpness V|Afiada V");
  437. set(pegar_esse);
  438. endif;
  439. endif;
  440. if(p4);
  441. ifmatches(%&encantamentos%,"Protection IV|Prote..o IV");
  442. set(pegar_esse);
  443. endif;
  444. endif;
  445. if(eff5);
  446. ifmatches(%&encantamentos%,"Efficiency V|Efici.ncia V");
  447. set(pegar_esse);
  448. endif;
  449. endif;
  450. endunsafe;
  451. if(pegar_esse);
  452. unset(pegar_esse);
  453. if(#slot < 81);
  454. slotclick(81,l,true);
  455. else;
  456. slotclick(%#slot%,l,true);
  457. endif;
  458. ///wait(200ms);
  459. else;
  460. if(#slot < 81);
  461. slotclick(81,l,false);
  462. else;
  463. slotclick(%#slot%,l,false);
  464. endif;
  465. slotclick(-999);
  466. endif;
  467.  
  468.  
  469. endif;
  470. else;
  471. if(#oq != 0);
  472. slotclick(%#slot%,l,false);
  473. slotclick(-999);
  474. endif;
  475. endif;
  476. next;
  477. loop;
  478. break;
  479.  
  480. loop;
  481. if((!proximo_bau)||(proxima_coluna));
  482. break;
  483. endif;
  484. loop;
  485. endif
  486. if(restart); unset(proxima_coluna); endif;
  487. if((!restart)&&(!proxima_coluna));
  488. break;
  489. endif;
  490.  
  491.  
  492.  
  493. loop;
  494. if(%GUI% == "GUICHEST");
  495. getslot(0,#slot_vazio,54);
  496. if(#slot_vazio > 0);
  497. slotclick(%#slot_vazio%);
  498. endif;
  499. endif;
  500. endif;
  501.  
  502. if(acabou_vara);
  503. unset(acabou_vara);
  504. do(); gui(); until(%GUI% == "NONE");
  505. do(); gui(inventory); until(%GUI% == "GUIINVENTORY");
  506. do();
  507. unsafe;
  508. getslot(%#id_vara%,#slot);
  509. if(#slot > 0); break; endif;
  510. for(#slot,36,44);
  511. getslotitem(%#slot%,#oq);
  512. if((#oq != #id_vara)&&(#oq != 0));
  513. slotclick(%#slot%,l,true);
  514. endif;
  515. next;
  516. gui();
  517. endunsafe;
  518. if((%XPOS% != %#x_inicio%)||(%YPOS% != %#y_inicio%)||(%ZPOS% != %#z_inicio%));
  519. do();
  520. echo("%&home_baus%");
  521. do(20);
  522. wait(333ms);
  523. if((%XPOS% == %#x_inicio%)&&(%YPOS% == %#y_inicio%)&&(%ZPOS% == %#z_inicio%));
  524. break;
  525. endif;
  526. loop;
  527. if((%XPOS% == %#x_inicio%)&&(%YPOS% == %#y_inicio%)&&(%ZPOS% == %#z_inicio%));
  528. break;
  529. endif;
  530. loop;
  531. endif;
  532. look(180,311);
  533. wait(1000ms);
  534. do(3);
  535. look(180,311);
  536. key(use);
  537. do(25);
  538. wait(100ms);
  539. if(%GUI% == "GUICHEST");
  540. break;
  541. endif;
  542. loop;
  543. if(%GUI% == "GUICHEST");
  544. wait(1000ms);
  545. break;
  546. endif;
  547. loop;
  548. if(%GUI% == "GUICHEST");
  549. unsafe(0);
  550. for(#slot,54,89);
  551. getslotitem(%#slot%,#oq);
  552. ifmatches(%#oq%,%&nao_jogar_fora%);
  553. else;
  554. if(#oq != 0);
  555. slotclick(%#slot%,l,false);
  556. wait(5ms);
  557. slotclick(-999);
  558. wait(1ms);
  559. endif;
  560. endif;
  561. next;
  562. endunsafe;
  563. getslot(%#id_vara%,#slot);
  564. if(#slot > 54);
  565. break;
  566. elseif((#slot >= 0)&&(#slot < 54));
  567. slotclick(%#slot%,l,true);
  568. break;
  569. else;
  570. log("Parece que acabaram as varas :/");
  571. log("Finalizando.");
  572. unset(a);
  573. log(off);
  574. stop;
  575. endif;
  576. endif;
  577. loop;
  578. endif;
  579.  
  580. if(acabou_linha);
  581. look(180,311);
  582. unset(acabou_linha);
  583. unset(proximo_bau_linha);
  584. unset(proxima_coluna_linha);
  585. set(restart);
  586. gui();
  587. do();
  588. unset(proxima_coluna_linha);
  589. if(restart);
  590. unset(restart);
  591. if((%XPOS% != %#x_inicio%)||(%YPOS% != %#y_inicio%)||(%ZPOS% != %#z_inicio%));
  592. do();
  593. echo("%&home_baus%");
  594. do(20);
  595. wait(333ms);
  596. if((%XPOS% == %#x_inicio%)&&(%YPOS% == %#y_inicio%)&&(%ZPOS% == %#z_inicio%));
  597. break;
  598. endif;
  599. loop;
  600. if((%XPOS% == %#x_inicio%)&&(%YPOS% == %#y_inicio%)&&(%ZPOS% == %#z_inicio%));
  601. look(180,311);
  602. break;
  603. endif;
  604. loop;
  605. endif;
  606. endif;
  607.  
  608.  
  609. do();
  610. if(!proximo_bau_linha);
  611. unsafe(0);
  612. #x_final_linha = #x_inicio + #coluna_linha - 1;
  613.  
  614. #x_agora = %XPOS%;
  615. #x_tolerancia_corrida_linha = #x_final_linha - 3;
  616. if(#x_agora == #x_final_linha);
  617. keyup(left);
  618. keyup(sneak);
  619. wait(500ms);
  620. if((%HITID% == 54)||(%HITID% == 146));
  621. unset(restart);
  622. break;
  623. else;
  624. set(restart);
  625. break;
  626. endif;
  627. endif;
  628. if(#x_agora < #x_final_linha);
  629. if(%XPOS% < #x_tolerancia_corrida_linha);
  630. SPRINT();
  631. keyup(sneak);
  632. else;
  633. keydown(sneak);
  634. UNSPRINT();
  635. endif;
  636. look(180,311);
  637. keydown(left);
  638. endif;
  639. if(#x_agora > #x_final_linha);
  640. set(restart);
  641. break;
  642. endif;
  643. endunsafe;
  644. endif;
  645. loop;
  646. wait(100ms);
  647.  
  648.  
  649. if(!restart);
  650. do();
  651. unset(proximo_bau_linha);
  652. if(%GUI% != "NONE");
  653. gui();
  654. wait(300ms);
  655. endif;
  656. if(#bau_linha == 1); look(180,311); endif;
  657. if(#bau_linha == 2); look(180,333); endif;
  658. if(#bau_linha == 3); look(180,0); endif;
  659. if(#bau_linha == 4); look(180,32); endif;
  660. if(#bau_linha == 5); look(180,54); endif;
  661. if(#bau_linha > 5);
  662. #bau_linha = 1;
  663. inc(#coluna_linha,1);
  664. set(proxima_coluna_linha);
  665. unset(proximo_bau_linha);
  666. break;
  667. endif;
  668. keyup(sneak);
  669. wait(1000ms);
  670. do();
  671. key(use);
  672. do(25); wait(100ms); if(%GUI% == "GUICHEST"); break; endif; loop;
  673. if(%GUI% == "GUICHEST"); wait(1000ms); break; endif;
  674. loop;
  675. unsafe(0);
  676. getslot(%#id_linha%,#slot,54);
  677. if(#slot > 0); unset(acabou_linha); unset(proximo_bau_linha); break; endif;
  678. for(#slot,54,89);
  679. getslotitem(%#slot%,#oq);
  680. ifmatches(%#oq%,%&nao_jogar_fora%);
  681. else;
  682. slotclick(%#slot%,l,false);
  683. slotclick(-999);
  684. endif;
  685. next;
  686. getslot(%#id_linha%,#slot);
  687. if((#slot >= 0)&&(#slot <= 54));
  688. slotclick(%#slot%,l,true);
  689. unset(acabou_linha);
  690. unset(proximo_bau_linha);
  691. unset(restart);
  692. unset(proxima_coluna_linha);
  693. break;
  694. elseif(#slot < 0);
  695. inc(#bau_linha,1);
  696. set(proximo_bau_linha);
  697. endif;
  698. endunsafe;
  699. loop;
  700. endif;
  701. if((!proximo_bau_linha)&&(!proxima_coluna_linha)&&(!restart));
  702. break;
  703. endif;
  704. loop;
  705. endif;
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715. if((%XPOS% != %#xtrap%)||(%ZPOS% != %#ztrap%));
  716. pick(%#id_vara%);
  717. do();
  718. if((%XPOS% == %#xtrap%)&&(%ZPOS% == %#ztrap%)&&(%YPOS% == %#ytrap%));
  719. break;
  720. endif;
  721. echo("%&home_pesqueiro%");
  722. do(14);
  723. wait(500ms);
  724. if((%XPOS% == %#xtrap%)&&(%ZPOS% == %#ztrap%)&&(%YPOS% == %#ytrap%));
  725. echo("/esconder");
  726. break;
  727. endif;
  728. loop;
  729. loop;
  730. endif;
  731. gui(inventory);
  732. unset(guardar);
  733. loop;
  734.  
  735. loop;
  736. }$$
Advertisement
Add Comment
Please, Sign In to add comment