Guest User

Untitled

a guest
Nov 15th, 2019
1,666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.74 KB | None | 0 0
  1. $${
  2. //// uma macro simples enquanto ninguem lança uma mais completa ;
  3. //// qualquer duvida, me procure via discord: lomexicano#2779 ;
  4. //// ou por /tell, se eu estiver ingame. ;
  5. //// o/ ~lomexicano ;
  6.  
  7. &home_pesqueiro_vip = "/home pesqueirovip"; //// home no pesqueiro vip, olhando para onde você quer pescar -> obrigatório estar imerso na água, a cabeça e as pernas!;
  8. &home_baus = "/home baus"; //// home em uma trap de baús, estilo mkb/sleepfb/vendedor mexicano, etc;
  9. &home_com_varas = "/home varas"; //// home olhando pra um baú com varas de pescar com durabilidade boa;
  10. &home_bloco_de_ferro = "/home blocodeferro"; ///// home olhando pra um bloco de ferro, caso você não esteja com 20 de HP para usar /reparar -> recomendo que seja fora da warp vip, e perto dos baus do &home_baus;
  11.  
  12. &reparar = "nao"; ///// Deixe "Sim" se quiser reparar, caso contrario, coloque "Nao" e lembre de configurar o mod para trocar de vara;
  13. #durabilidade_reparar = 11; ///// durabilidade caso queira reparar;
  14. #delay_maximo_sem_guardar = 1400; //// numero de segundos que, no maximo, ele vai esperar pra ir esvaziar/guardar;
  15. #limite_slots_vazios = 5;
  16.  
  17.  
  18.  
  19. &ids_guardar = "enchanted_book|written_book"; //// guardar livros encantados;
  20. &ids_guardar = "%&ids_guardar%|^fish$|^fish:|^diamond$|blaze_rod|ghast_tear|apple"; ///// guardar peixe, diamantes, blaze rod, ghast tear e maça; Se nao quiser, remova esta linha.;
  21. &ids_guardar = "%&ids_guardar%|stone_sword|stone_shovel|stone_pickaxe|stone_axe"; ///// se não quiser guardar itens de pedra, remova esta linha;
  22. &ids_guardar = "%&ids_guardar%|diamond_sword|diamond_shovel|diamond_pickaxe|diamond_axe|diamond_helmet|diamond_chestplate|diamond_leggings|diamond_boots"; ///// se não quiser guardar itens de diamante, remova esta linha;
  23.  
  24.  
  25. &guardar_varas_pescadas = "Sim" //// caso venha a pescar varas (encantadas ou não). Se nao quiser guardar, troque para "Nao";
  26.  
  27.  
  28. &ids_safe = "string|fishing_rod";
  29.  
  30. #bau = 1;
  31. #coluna = 1;
  32. //////////////////////////
  33. //////////////////////////
  34. //////////////////////////
  35.  
  36. toggle(a);
  37. if(a);
  38. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &f&lPescador da &6warp vip&f: &a&lON&f!");
  39. echo("&f[&6MACRO&f] &fPescador da &6warp vip&f: &aON&f!");
  40. else;
  41. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &f&lPescador da &6warp vip&f: &c&lOFF&f!");
  42. stop;
  43. endif;
  44.  
  45. unset(estou_na_trap);
  46. do();
  47. echo(%&home_pesqueiro_vip%);
  48. do(20);
  49. unsafe(0);
  50. getidrel(+0,+0,+0,&id_verif1);
  51. getidrel(+0,+1,+0,&id_verif2);
  52. ifmatches(%&id_verif1%,"water");
  53. ifmatches(%&id_verif2%,"water");
  54. set(estou_na_trap);
  55. endif;
  56. endif;
  57. endunsafe;
  58. wait(300ms);
  59. loop;
  60. if(estou_na_trap);
  61. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &f&lPesqueiro &a&ldetectado&f!");
  62. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &a&lIniciando...");
  63. break;
  64. endif;
  65. loop;
  66.  
  67. #xtrap = %XPOS%;
  68. #ytrap = %YPOS%;
  69. #ztrap = %ZPOS%;
  70.  
  71. echo("/esconder");
  72.  
  73. #pitch = %PITCH%;
  74. #yaw = %YAW%;
  75. inc(#yaw,180);if(#yaw > 360); dec(#yaw,360); endif;
  76.  
  77. if(#bau < 1); #bau = 1; endif;
  78. if(#coluna < 1); #coluna = 1; endif;
  79.  
  80. unset(achei_linha);
  81. unset(pegar_vara);
  82. unset(achei_uma_boa);
  83. unset(foi);
  84.  
  85. ifmatches(%&reparar%,"Sim|SIM|sim");
  86. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r A macro foi configurada para &2&lREPARAR&f.")
  87. set(reparar);
  88. else;
  89. unset(reparar);
  90. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r A macro foi configurada para &4NAO REPARAR&f (verifique se configurou o mod autofish).");
  91. endif;
  92. unset(ja_fui_uma);
  93. #loops_de_verificadores = (#delay_maximo_sem_guardar*1000)/80000;
  94.  
  95.  
  96. if(reparar);
  97. #gasto_limite = 64 - #durabilidade_reparar;
  98. else;
  99. #gasto_limite = 59;
  100. endif;
  101.  
  102. do();
  103. wait(1000ms);
  104. if((%ITEM% == "fishing_rod")&&(%DURABILITY% > 5));
  105. wait(1000ms);
  106. key(use);
  107. else;
  108. for(#slot,1,9);
  109. SLOT(%#slot%);
  110. wait(100ms);
  111. if((%ITEM% == "fishing_rod")&&(%DURABILITY% > 5));
  112. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fVara de pescar boa equipada.");
  113. wait(100ms);
  114. key(use);
  115. break;
  116. elseif((%ITEM% == "fishing_rod")&&(%DURABILITY% <= 5)&&(reparar));
  117. if(%HEALTH% == 20);
  118. echo(/reparar);
  119. wait(1000ms);
  120. if(%DURABILITY% < 5);
  121. wait(1000ms);
  122. if(%DURABILITY% < 5);
  123. echo(%&home_pesqueiro_vip%);
  124. wait(1000ms);
  125. endif;
  126. endif;
  127. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &6Vara &ereparada&f!");
  128.  
  129. else;
  130. do();
  131. echo(%&home_bloco_de_ferro%);
  132. do(20);
  133. wait(320ms);
  134. ifmatches(%HITID%,"iron");
  135. break;
  136. endif;
  137. loop;
  138. ifmatches(%HITID%,"iron");
  139. break;
  140. else;
  141. echo("/esconder");
  142. endif;
  143. loop;
  144. keydown(sneak); wait(1ms); keyup(sneak); wait(200ms);
  145. do(2);
  146.  
  147. key(use);
  148. do(10);
  149. wait(300ms);
  150. if(%DURABILITY% > #durabilidade_reparar);
  151. break;
  152. endif;
  153. loop;
  154. if(%DURABILITY% > #durabilidade_reparar);
  155. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &6Vara &ereparada&f!");
  156. break;
  157. endif;
  158. loop;
  159. do();
  160. echo(%&home_pesqueiro_vip%);
  161. do(22);
  162. if((%XPOS% == %#xtrap%)&&(%ZPOS% == %#ztrap%)&&(%YPOS% == %#ytrap%));
  163. break;
  164. endif;
  165. wait(300ms);
  166. loop;
  167. if((%XPOS% == %#xtrap%)&&(%ZPOS% == %#ztrap%)&&(%YPOS% == %#ytrap%));
  168. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fReiniciando pescaria!");
  169. wait(1000ms);
  170. unset(ja_fui_uma);
  171. echo("/esconder");
  172. break;
  173. endif;
  174. loop;
  175. endif;
  176. break;
  177. endif;
  178. next;
  179. endif;
  180. if((%ITEM% == "fishing_rod")&&(%DURABILITY% > 5));
  181. else;
  182. gui(inventory);
  183. wait(500ms);
  184. unsafe(0);
  185. for(#slot,9,44);
  186. getslotitem(%#slot%,&oq,#stack,#gasto);
  187. ifmatches(%&oq%,"fishing_rod");
  188. if(#gasto < #gasto_limite);
  189. set(achei_uma_boa);
  190. break;
  191. endif;
  192. endif;
  193. next;
  194. endunsafe;
  195. unset(foi);
  196. if(achei_uma_boa);
  197. unset(achei_uma_boa);
  198. if(#slot < 36);
  199. slotclick(36,l,true);
  200. wait(100ms);
  201. slotclick(%#slot%,l,true)
  202. wait(100ms);
  203. getslotitem(36,&oq,#a,#gasto);
  204. ifmatches(%&oq%,"fishing_rod");
  205. if(#gasto < #gasto_limite);
  206. set(foi);
  207. endif;
  208. endif;
  209. endif;
  210. if(!foi);
  211. slotclick(%#slot%,l,false);
  212. wait(100ms);
  213. slotclick(36,l,false);
  214. wait(100ms);
  215. slotclick(%#slot%,l,false);
  216. wait(100ms);
  217. endif;
  218. endif;
  219. SLOT(1);
  220.  
  221. if((%ITEM% == "fishing_rod")&&(%DURABILITY% > 5));
  222. key(use);
  223. else;
  224. set(pegar_vara);
  225. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &6Vara &cnão encontrada&f. Iniciando procedimentos de armazenamento.");
  226. endif;
  227. endif;
  228.  
  229. if(!pegar_vara);
  230. #vazios = 40;
  231. unset(ta_pescando_ok);
  232.  
  233. do(%#loops_de_verificadores%);
  234. unset(#vezes_que_nao_pegou_nada);
  235. do(4);
  236. unsafe(0);
  237. if(ja_fui_uma);
  238. set(&lista_antiga,"%&lista_itens%");;
  239. endif;
  240. unset(&lista_itens);
  241. unset(#vazios);
  242. gui(inventory);
  243. for(#slot,9,44);
  244. getslotitem(%#slot%,&oq,#stack);
  245. &lista_itens = "%&lista_itens%-%&oq% %#stack%";
  246. ifmatches(%&oq%,"air|^0$");
  247. inc(#vazios,1);
  248. endif;
  249. next;
  250. gui();
  251. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fSlots vazios: %#vazios%");
  252.  
  253. if(#vazios <= #limite_slots_vazios);
  254. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &r&fPoucos slots vazios. &cIniciando armazenamento&f.");
  255. break;
  256. endif;
  257. endunsafe;
  258.  
  259. if(ja_fui_uma);
  260. ifmatches(%&lista_antiga%,%&lista_itens%);
  261. inc(#vezes_que_nao_pegou_nada,1);
  262. ///log(%#vezes_que_nao_pegou_nada%)
  263. else;
  264. set(ta_pescando_ok);
  265. endif;
  266. endif;
  267. do(10);
  268. wait(2000ms);
  269. if(reparar);
  270. if((%ITEM% == "fishing_rod")&&(%DURABILITY% < #durabilidade_reparar));
  271. if(%HEALTH% == 20);
  272. echo(/reparar);
  273. wait(1000ms);
  274. if(%DURABILITY% < 5);
  275. wait(1000ms);
  276. if(%DURABILITY% < 5);
  277. echo(%&home_pesqueiro_vip%);
  278. wait(1000ms);
  279. endif;
  280. endif;
  281. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &6Vara &ereparada&f!");
  282. else;
  283. do();
  284. echo(%&home_bloco_de_ferro%);
  285. do(20);
  286. wait(320ms);
  287. ifmatches(%HITID%,"iron");
  288. break;
  289. endif;
  290. loop;
  291. ifmatches(%HITID%,"iron");
  292. break;
  293. else;
  294. echo("/esconder");
  295. endif;
  296. loop;
  297. do(2);
  298. key(use);
  299. do(10);
  300. wait(300ms);
  301. if(%DURABILITY% > #durabilidade_reparar);
  302. break;
  303. endif;
  304. loop;
  305. if(%DURABILITY% > #durabilidade_reparar);
  306. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &6Vara &ereparada&f!");
  307. break;
  308. endif;
  309. loop;
  310. do();
  311. echo(%&home_pesqueiro_vip%);
  312. do(22);
  313. if((%XPOS% == %#xtrap%)&&(%ZPOS% == %#ztrap%)&&(%YPOS% == %#ytrap%));
  314. break;
  315. endif;
  316. wait(300ms);
  317. loop;
  318. if((%XPOS% == %#xtrap%)&&(%ZPOS% == %#ztrap%)&&(%YPOS% == %#ytrap%));
  319. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fReiniciando pescaria!");
  320. wait(1000ms);
  321. unset(ja_fui_uma);
  322. echo("/esconder");
  323. break;
  324. endif;
  325. loop;
  326. endif;
  327. if(%DURABILITY% <= #durabilidade_reparar);
  328. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fA vara &cnao foi reparada&f!");
  329. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fTentando corrigir...");
  330. set(pegar_vara);
  331. break;
  332. endif;
  333. endif;
  334. endif;
  335. loop;
  336. if(!ja_fui_uma); set(ja_fui_uma); endif;
  337. if(pegar_vara); break; endif;
  338. loop;
  339.  
  340. if(pegar_vara); break; endif;
  341. if(#vazios < #limite_slots_vazios);
  342. break;
  343. endif;
  344.  
  345. if(ja_fui_uma);
  346. if(#vezes_que_nao_pegou_nada >= 3);
  347. ///if(!ta_pescando_ok);
  348. if(%DURABILITY% > 5);
  349. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fParece que nada esta sendo pescado ha algum tempo. Tentando corrigir.");
  350. key(use);
  351. else;
  352. set(pegar_vara);
  353. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fParece que nao ha varas boas na hotbar. Tentando corrigir.");
  354. break;
  355. endif;
  356. ///endif;
  357. endif;
  358. #vezes_que_nao_pegou_nada = 0;
  359. endif;
  360. loop;
  361. endif;
  362.  
  363. do();
  364. echo(%&home_baus%);
  365. do(30);
  366. wait(200ms);
  367. unsafe(0);
  368. unset(cheguei_na_trap);
  369. getidrel(0,-1,-2,&id_bau_1);getidrel(0,-1,-3,&id_bau_2);
  370. getidrel(0,-1,-2,&id_bau_3);getidrel(0,-1,-3,&id_bau_4);
  371. getidrel(0,-1,-2,&id_bau_5);getidrel(0,-1,-3,&id_bau_6);
  372. getidrel(0,-1,-2,&id_bau_7);getidrel(0,-1,-3,&id_bau_8);
  373. getidrel(0,-1,-2,&id_bau_9);getidrel(0,-1,-3,&id_bau_10);
  374. ifmatches(%&id_bau_1%,"chest");
  375. ifmatches(%&id_bau_2%,"chest");
  376. ifmatches(%&id_bau_3%,"chest");
  377. ifmatches(%&id_bau_4%,"chest");
  378. ifmatches(%&id_bau_5%,"chest");
  379. ifmatches(%&id_bau_6%,"chest");
  380. ifmatches(%&id_bau_7%,"chest");
  381. ifmatches(%&id_bau_8%,"chest");
  382. ifmatches(%&id_bau_9%,"chest");
  383. ifmatches(%&id_bau_10%,"chest");
  384. set(cheguei_na_trap);
  385. endif;
  386. endif;
  387. endif;
  388. endif;
  389. endif;
  390. endif;
  391. endif;
  392. endif;
  393. endif;
  394. endif;
  395. if(cheguei_na_trap);
  396. break;
  397. endif;
  398. endunsafe;
  399. loop;
  400. if(cheguei_na_trap);
  401. wait(300ms);
  402. look(west);
  403. wait(300ms);
  404. unsafe(0);
  405. gui(inventory);
  406. for(#slot,9,44);
  407. getslotitem(%#slot%,&oq);
  408. ifmatches(%&oq%,%&ids_guardar%);
  409. else;
  410. ifmatches(%&oq%,%&ids_safe%);
  411. else;
  412. ifmatches(%&oq%,"air|^0$");
  413. else;
  414. slotclick(%#slot%,l,false);
  415. slotclick(-999);
  416. endif;
  417. endif;
  418. endif;
  419. next;
  420. gui();
  421. endunsafe;
  422. wait(300ms);
  423. look(north);
  424. wait(300ms);
  425.  
  426. #x_inicio = %XPOS%;
  427. #z_inicio = %ZPOS%;
  428. break;
  429. endif;
  430. loop;
  431.  
  432.  
  433.  
  434. do();
  435. if(proxima_coluna);
  436. unset(proxima_coluna);
  437. endif;
  438.  
  439. if(#coluna > 1);
  440. if(%GUI% != "NONE");
  441. gui();
  442. endif;
  443. #x_final = #x_inicio + #coluna - 1;
  444. look(0,311);
  445. wait(200ms);
  446. do();
  447. look(0,311);
  448. #x_agora = %XPOS%;
  449. #z_agora = %ZPOS%;
  450. if((#x_agora > #x_final)||(#z_agora != #z_inicio)||(#x_agora < #x_inicio));
  451. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fAlgum erro aconteceu, recomecando!");
  452. do();
  453. echo(%&home_baus%);
  454. do();
  455. if((%XPOS% == %#x_inicio%)&&(%ZPOS% == %#z_inicio%));
  456. break;
  457. endif;
  458. loop;
  459. if((%XPOS% == %#x_inicio%)&&(%ZPOS% == %#z_inicio%));
  460. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fPosicionamento corrigido!");
  461. break;
  462. endif;
  463. loop;
  464. elseif(#x_agora == #x_final);
  465. ifmatches(%HITID%,"chest");
  466. keyup(right);
  467. wait(10ms);
  468. keyup(sneak);
  469. wait(200ms);
  470. break;
  471. endif;
  472. elseif((#x_agora < #x_final)&&(#z_agora == #z_inicio));
  473. #diferenca = #x_final - #x_agora;
  474. if(#diferenca < 2);
  475. keydown(sneak);
  476. else;
  477. keyup(sneak);
  478. endif;
  479. keydown(right);
  480. endif;
  481. loop;
  482. endif;
  483.  
  484. do();
  485. unset(bau_cheio);
  486.  
  487. if(%GUI% != "NONE"); gui(); endif;
  488.  
  489. if(#bau == 1); look(0,311); endif;
  490. if(#bau == 2); look(0,333); endif;
  491. if(#bau == 3); look(0,0); endif;
  492. if(#bau == 4); look(0,32); endif;
  493. if(#bau == 5); look(0,54); endif;
  494. if(#bau == 6); inc(#coluna,1); #bau = 1; set(proxima_coluna); break; endif;
  495.  
  496. wait(200ms);
  497.  
  498. do();
  499. key(use);
  500. do(10);
  501. wait(200ms);
  502. if(%GUI% == "GUICHEST");
  503. break;
  504. endif;
  505. loop;
  506. if(%GUI% == "GUICHEST");
  507. look(west);
  508. wait(500ms);
  509. break;
  510. endif;
  511. loop;
  512.  
  513. unsafe(0);
  514. &ids_guardar_temp = "%&ids_guardar%";
  515. for(#slot,54,89);
  516. ifmatches(%&guardar_varas_pescadas%,"Sim");
  517. if(#slot < 81);
  518. &ids_guardar = "%&ids_guardar%|fishing_rod";
  519. else;
  520. &ids_guardar = "%&ids_guardar_temp%";
  521. endif;
  522. endif;
  523. getslotitem(%#slot%,&oq);
  524. ifmatches(%&oq%,"air|^0$");
  525. else;
  526. ifmatches(%&oq%,%&ids_guardar%);
  527. slotclick(%#slot%,l,true);
  528. getslotitem(%#slot%,&oq);
  529. ifmatches(%&oq%,"air|^0$");
  530. else;
  531. set(bau_cheio);
  532. inc(#bau,1);
  533. gui();
  534. break;
  535. endif;
  536. else;
  537. ifmatches(%&oq%,%&ids_safe%);
  538. else;
  539. slotclick(%#slot%,l,false);
  540. slotclick(-999);
  541. endif;
  542. endif;
  543. endif;
  544. next;
  545. &ids_guardar = "%&ids_guardar_temp%";
  546. endunsafe;
  547.  
  548.  
  549.  
  550. if(!bau_cheio);
  551. break;
  552. endif;
  553. loop;
  554. if(!proxima_coluna);
  555. break;
  556. endif;
  557. loop;
  558.  
  559. if(pegar_vara);
  560. unsafe(0);
  561. gui(inventory);
  562. unset(achei_uma_boa);
  563. for(#slot,9,44);
  564. getslotitem(%#slot%,&oq,#stack,#gasto);
  565. ifmatches(%&oq%,"fishing_rod");
  566. if(#gasto < #gasto_limite);
  567. set(achei_uma_boa);
  568. unset(pegar_vara);
  569. break;
  570. endif;
  571. endif;
  572. next;
  573. if(achei_uma_boa);
  574. if(#slot != 36);
  575. slotclick(36,l,true);
  576. wait(100ms);
  577. if(#slot < 36);
  578. slotclick(%#slot%,l,true);
  579. wait(100ms);
  580. else;
  581. slotclick(%#slot%,l,false);
  582. wait(100ms);
  583. slotclick(36,l,false);
  584. wait(100ms);
  585. slotclick(%#slot%,l,false);
  586. wait(100ms);
  587. endif;
  588. else;
  589. SLOT(1);
  590. endif;
  591. endif;
  592. gui();
  593. endunsafe;
  594.  
  595. if(!achei_uma_boa);
  596. unset(pegar_vara);
  597. look(,90);
  598. do();
  599. echo(%&home_com_varas%);
  600. do(20);
  601. ifmatches(%HITID%,"chest");
  602. break;
  603. endif;
  604. wait(300ms);
  605. loop;
  606. ifmatches(%HITID%,"chest");
  607. break;
  608. endif;
  609. loop;
  610.  
  611. do();
  612. key(use);
  613. do(10);
  614. wait(300ms);
  615. if(%GUI% == "GUICHEST");
  616. wait(600ms);
  617. break;
  618. endif;
  619. loop;
  620. if(%GUI% == "GUICHEST");
  621. break;
  622. endif;
  623. loop;
  624.  
  625. unset(achei_uma_boa);
  626. wait(600ms);
  627.  
  628. unsafe(0);
  629. for(#slot,54,89);
  630. getslotitem(%#slot%,&oq,#stack,#gasto);
  631. ifmatches(%&oq%,"fishing_rod");
  632. if(#gasto < #gasto_limite);
  633. set(achei_uma_boa);
  634. break;
  635. else;
  636. slotclick(%#slot%,l,true);
  637. endif;
  638. endif;
  639. next;
  640. if(!achei_uma_boa);
  641. for(#slot,0,53);
  642. getslotitem(%#slot%,&oq,#stack,#gasto);
  643. ifmatches(%&oq%,"fishing_rod");
  644. if(#gasto < #gasto_limite);
  645. set(achei_uma_boa);
  646. slotclick(%#slot%,l,true);
  647. break;
  648. endif;
  649. endif;
  650. next;
  651. endif;
  652. if(reparar);
  653. unset(achei_linha);
  654. do(2);
  655. getslot(string,#slot);
  656. if((#slot < 53)&&(#slot >= 0));
  657. slotclick(%#slot%,l,true);
  658. set(achei_linha);
  659. else;
  660. break;
  661. endif;
  662. loop;
  663. if((!achei_uma_boa)&&(achei_linha));
  664. set(achei_uma_boa);
  665. getslot(fishing_rod,#slot);
  666. if((#slot < 53)&&(#slot >= 0));
  667. slotclick(%#slot%,l,true);
  668. endif;
  669. endif;
  670. endif;
  671. gui();
  672. endunsafe;
  673.  
  674. endif;
  675.  
  676. if(achei_uma_boa);
  677. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fSeu problema de vara foi corrigido &6:P");
  678. if((%ITEM% == "fishing_rod")&&(%DURABILITY% > 5));
  679. else;
  680. unsafe(0);
  681. gui(inventory);
  682. unset(achei_uma_boa);
  683. getslotitem(36,&oq,#a,#gasto);
  684. ifmatches(%&oq%,"fishing_rod");
  685. if(#gasto < #gasto_limite);
  686. SLOT(1);
  687. set(achei_uma_boa);
  688. endif;
  689. endif;
  690. if(!achei_uma_boa);
  691. for(#slot,9,44);
  692. getslotitem(%#slot%,&oq,#stack,#gasto);
  693. ifmatches(%&oq%,"fishing_rod");
  694. if(#gasto < #gasto_limite);
  695. break;
  696. endif;
  697. endif;
  698. next;
  699. endif;
  700. endunsafe;
  701. if(!achei_uma_boa);
  702. slotclick(%#slot%,l,false);
  703. wait(100ms);
  704. slotclick(36,l,false);
  705. wait(100ms);
  706. slotclick(%#slot%,l,false);
  707. wait(100ms);
  708. endif;
  709. gui();
  710. endif;
  711. else;
  712. for(#slot,1,9);
  713. SLOT(%#slot%);
  714. wait(200ms);
  715. if((%ITEM% == "fishing_rod")&&(%DURABILITY% > 5));
  716. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fVara de pescar boa equipada.");
  717. wait(100ms);
  718. key(use);
  719. break;
  720. endif;
  721. next;
  722. endif;
  723. if((%ITEM% == "fishing_rod")&&(%DURABILITY% > 5));
  724. else;
  725. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fVara de pescar boa não encontrada &c:/&f.");
  726. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fFinalizando.");
  727. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &f&lPescador da &6warp vip&f: &c&lOFF&f!");
  728. toggle(a);
  729. stop;
  730. endif;
  731.  
  732. ///////////////////////////////
  733. endif;
  734.  
  735. unset(achei_uma_boa);
  736. do();
  737. echo(%&home_pesqueiro_vip%);
  738. do(22);
  739. if((%XPOS% == %#xtrap%)&&(%ZPOS% == %#ztrap%)&&(%YPOS% == %#ytrap%));
  740. break;
  741. endif;
  742. wait(300ms);
  743. loop;
  744. if((%XPOS% == %#xtrap%)&&(%ZPOS% == %#ztrap%)&&(%YPOS% == %#ytrap%));
  745. log("&e&l[&2&lMA&f&lC&4&lRO&e&l]&r &fReiniciando pescaria!");
  746. wait(1000ms);
  747. unset(ja_fui_uma);
  748. echo("/esconder");
  749. break;
  750. endif;
  751. loop;
  752. loop;
  753.  
  754.  
  755. //X POSITIVO = LESTE
  756. //X NEGATIVO = OESTE
  757. // Y POSITIVO = CIMA
  758. // Y NEGATIVO = BAIXO
  759. //Z POSITIVO = SUL
  760. //Z NEGATIVO = NORTE
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767. }$$
Advertisement
Add Comment
Please, Sign In to add comment