Advertisement
lomexicano

Vendedor Mexicano v4.21 [1.5 e 1.8]

Jan 25th, 2020
673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.14 KB | None | 0 0
  1. $${
  2. ///////////////////////////////////////////////////////
  3. //vendedor mexicano v4.21 ~ feito por lomexicano; ////
  4. //Testado em minecraft 1.5.2 e 1.8.9; ////
  5. //Edite e republique como quiser; ////
  6. //Macro exclusivamente GRATUITA. ////
  7. //////////////////////////////////////////////////
  8.  
  9.  
  10. //Informacoes extras e aplicaçao para cloudscript;
  11. unset(@cloud);
  12. set(&versao_macro,"4.21");
  13. &dev_mode = "Nao";
  14. ifmatches(%&dev_mode%,"Sim|sim|S|s|Y|y|Yes|yes"); set(dev); else; unset(dev); endif;
  15.  
  16. set(&cloudscripttitle,"&0&k@&0&k@&r &fVendedor &2&lMEX&fIC&4ANO &fv&6%&versao_macro% &0&k@&0&k@");
  17. toggle(@vendedor_mexicano_v4);
  18. log(" ");
  19.  
  20. if(@vendedor_mexicano_v4);
  21. #conta_packs = #conta_itens / 64;
  22. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fVendedor &2Mex&fic&4ano &cFinalizado&f.");
  23. keyup(right);keyup(left);keyup(sneak);keyup(jump);keyup(forward);keyup(back);
  24. if(#conta_itens > 0);
  25. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &f&lContagem: &r&6%#conta_baus% baus verificados&f, &7%#conta_itens% &7itens&f (&a%#conta_packs% packs&f).");
  26. endif;
  27. stop;
  28. endif;
  29.  
  30. // Resetar contagem de baus e itens;
  31. #conta_baus = 1;
  32. #conta_colunas = 1;
  33. #conta_itens = 0;
  34.  
  35.  
  36. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fVendedor &2Mex&fic&4ano &aIniciado&f.");
  37. wait(500ms);
  38.  
  39. ifmatches(%ITEM%,"[a-zA-Z]");
  40. set(&version,"1.8");
  41. set(&exit_code,"SAIR");
  42. set(&extra_items,"§e-> §bCristais §3de prismarinho,§e-> §9Fragmentos §3de prismarinho,");
  43. else;
  44. unset(&extra_items);
  45. set(&version,"1.5");
  46. set(&exit_code,"9999");
  47. endif;
  48.  
  49. if(@cloud);
  50. if(@cloud_mexican_var);
  51. unset(first_blood);
  52. unset(configuracoes);
  53. unset(&item);
  54. unset(&trap);
  55. unset(&pergunta_set_temp);
  56. unset(&reiniciar);
  57. unset(&home_baus);
  58. unset(&home_venda);
  59. unset(&setar_home_temporaria);
  60. unset(&set_temp);
  61. unset(&sethome_set_temp);
  62. unset(#delay);
  63. ifmatches("%@&cloud_mexican_var[0]%","FirstBlood: OK");
  64. set(first_blood);
  65. else;
  66. unset(first_blood);
  67. endif;
  68. ifmatches("%@&cloud_mexican_var[1]%","Configuracoes: OK");
  69. set(configuracoes);
  70. else;
  71. unset(configuracoes);
  72. endif;
  73. set(&item,"%@&cloud_mexican_var[2]%");
  74. set(&trap,"%@&cloud_mexican_var[3]%");
  75. set(&pergunta_set_temp,"%@&cloud_mexican_var[4]%");
  76. set(&reiniciar,"%@&cloud_mexican_var[5]%");
  77. set(&home_baus,"%@&cloud_mexican_var[6]%");
  78. set(&home_venda,"%@&cloud_mexican_var[7]%");
  79. set(&setar_home_temporaria,"%@&cloud_mexican_var[8]%");
  80. set(&set_temp,"%@&cloud_mexican_var[9]%");
  81. set(&sethome_set_temp,"%@&cloud_mexican_var[10]%");
  82. set(#delay,"%@&cloud_mexican_var[11]%");
  83. endif;
  84. endif;
  85.  
  86. if((!first_blood)|(!&item)|(!&trap)|(!&set_temp)|(!&reiniciar)|(!&home_baus)|(!&home_venda));
  87. if(!first_blood);
  88. set(&home_baus,"/home sleepfb");
  89. set(&home_venda,"/home sleepfv");
  90. set(&setar_home_temporaria,"/sethome home_temporaria");
  91. if(dev); log("first_blood"); endif;
  92. set(#delay,300);
  93. endif;
  94. set(first_blood);
  95. unset(configuracoes); set(perguntar_tudo);
  96. if(dev);
  97. log("unset(configuracoes)");
  98. log("set(perguntar tudo)");
  99. endif;
  100. endif;
  101.  
  102. do();
  103. if(configuracoes);
  104. unset(&resposta);
  105. if(@cloud);
  106. unset(@&cloud_mexican_var[]);
  107. if(first_blood);
  108. put(@&cloud_mexican_var[],"FirstBlood: OK"); // 0;
  109. else;
  110. put(@&cloud_mexican_var[],"FirstBlood: NO"); // 0;
  111. endif;
  112. if(configuracoes);
  113. put(@&cloud_mexican_var[],"Configuracoes: OK"); // 1;
  114. else;
  115. put(@&cloud_mexican_var[],"Configuracoes: NO"); // 1;
  116. endif;
  117. put(@&cloud_mexican_var[],"%&item%"); // 2;
  118. put(@&cloud_mexican_var[],"%&trap%"); // 3;
  119. put(@&cloud_mexican_var[],"%&pergunta_set_temp%"); // 4;
  120. put(@&cloud_mexican_var[],"%&reiniciar%"); // 5;
  121. put(@&cloud_mexican_var[],"%&home_baus%"); // 6;
  122. put(@&cloud_mexican_var[],"%&home_venda%"); // 7;
  123. put(@&cloud_mexican_var[],"%&setar_home_temporaria%"); // 8;
  124. put(@&cloud_mexican_var[],"%&set_temp%"); // 9;
  125. put(@&cloud_mexican_var[],"%&sethome_set_temp%"); // 10;
  126. put(@&cloud_mexican_var[],"%#delay%"); // 11;
  127. set(@cloud_mexican_var);
  128. endif;
  129.  
  130. set(&empty," ");
  131. unset(&empty_big);
  132. unsafe(0); do(24); set(&empty_big,"%&empty_big%%&empty%"); loop; endunsafe;
  133. do();
  134. prompt(&resposta,"$$[Resposta[§f§lVENDEDOR §2§lMEX§f§lIC§4§lANO,%&empty_big%§7%&versao_macro%,§e§l-> §fItem: §e%&item%,§e§l-> §fTrap: §e%&trap%%&pergunta_set_temp%,§e§l-> §fReiniciar: %&reiniciar%,,§6§l-> §fBaus: %&home_baus%,§6§l-> §fVenda: %&home_venda%%&sethome_set_temp%,§6§l-> §fDelay: %#delay%§7ms,,§2§l-> §aContinuar,§4§l-> §cSair]]","");
  135. ifmatches(%&resposta%,"Item|Trap|Sethome temp|Reiniciar|Home|Venda|Continuar|Sair|Temp|Delay");
  136. break;
  137. endif;
  138. loop;
  139. ifmatches(%&resposta%,"Sair");
  140. toggle(@vendedor_mexicano_v4);
  141. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fVendedor &2Mex&fic&4ano &cFinalizado&f.");
  142. stop;
  143. endif;
  144. ifmatches(%&resposta%,"Continuar");
  145. if(dev); log("continuar"); endif;
  146. break;
  147. else;
  148. unset(@cloud_mexican_var);
  149. unset(@&cloud_mexican_var[]);
  150. unset(configuracoes);
  151. endif;
  152. else;
  153. set(&resposta,"Item - Trap - §e§l-> §fSethome temp: - Reiniciar");
  154. if(dev); log("perguntar tudo"); endif;
  155. set(perguntar_tudo);
  156. endif;
  157. if(!configuracoes);
  158. ifmatches(%&resposta%,"Item");
  159. set(come_back);
  160. unset(@cloud_mexican_var);
  161. unset(@&cloud_mexican_var[]);
  162. unset(&item);
  163. do();
  164. prompt(&item,"$$[Resposta[§f§lESCOLHA O ITEM,,§6§l-> §a§lOutro,,§f§lPLANTACOES,§e-> §eBatata,§e-> §eBatata envenenada,§e-> §aCana,§e-> §6Cenoura,§e-> §cFungo do nether,§e-> §cMelancia,,§f§lMOBs,§e-> §6Blaze rod,§e-> §4Carne podre,%&extra_items%§e-> §7Linha,§e-> §5Olho de aranha,§e-> §7Osso,§e-> §8Polvora,§e-> §9Saco de tinta,,§f§lPESCARIA,§e-> §bPeixe cru,§e-> §bPeixe §6assado,,§f§lMINERACAO,§e-> §7Barra de Ferro,§e-> §6Barra de Ouro,§e-> §8Carvao,§e-> §bDiamante,§e-> §aEsmeralda,,§4-> §cSair]]","");
  165. ifmatches(%&item%,"Outro|Batata$|Batata envenenada|Cana|Cenoura|Fungo do nether|Melancia|Blaze rod|Carne podre|Cristais|Fragmentos|Linha|Olho de aranha|Osso|Polvora|Saco de tinta|Peixe cru|Peixe §6assado|Barra de Ferro|Barra de Ouro|Carvao|Diamante|Esmeralda|Sair");
  166. break;
  167. endif;
  168. loop;
  169. unsafe(0);
  170. ifmatches(%&item%,"Sair");
  171. unset(&item);
  172. unset(@cloud_mexican_var);
  173. unset(@&cloud_mexican_var[]);
  174. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fVendedor &2Mex&fic&4ano &cFinalizado&f.");
  175. toggle(@vendedor_mexicano_v4);
  176. stop;
  177. endif;
  178. endunsafe;
  179. ifmatches(%&item%,"Outro");
  180. unset(@cloud_mexican_var);
  181. unset(@&cloud_mexican_var[]);
  182. unset(&item);
  183. do();
  184. prompt(&item,$$i:d,"§fSelecione um item para ser vendido. §7§oDigite §c§o%&exit_code% §7§opara sair.");
  185. until(&item);
  186. ifmatches(%&item%,"SAIR|9999");
  187. unset(@cloud_mexican_var);
  188. unset(@&cloud_mexican_var[]);
  189. unset(&item);
  190. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fVendedor &2Mex&fic&4ano &cFinalizado&f.");
  191. toggle(@vendedor_mexicano_v4);
  192. stop;
  193. endif;
  194. endif;
  195. unsafe(0);
  196. ifmatches(%&item%,"Cristais §3de prismarinho");
  197. set(&item,"prismarine_crystals");
  198. endif;
  199. ifmatches(%&item%,"Fragmentos §3de prismarinho");
  200. set(&item,"prismarine_shard");
  201. endif;
  202. ifmatches(%&item%,"Melancia");
  203. ifmatches(%&version%,"1.5");
  204. set(&item,"360");
  205. else;
  206. set(&item,"melon");
  207. endif;
  208. if(dev); log(%&item%); endif;
  209. endif;
  210. ifmatches(%&item%,"Peixe cru");
  211. ifmatches(%&version%,"1.5");
  212. set(&item,"349");
  213. else;
  214. set(&item,"fish");
  215. endif;
  216. if(dev); log(%&item%); endif;
  217. endif;
  218. ifmatches(%&item%,"§bPeixe §6assado");
  219. ifmatches(%&version%,"1.5");
  220. set(&item,"350");
  221. else;
  222. set(&item,"cooked_fish");
  223. endif;
  224. if(dev); log(%&item%); endif;
  225. endif;
  226. ifmatches(%&item%,"Barra de Ferro");
  227. ifmatches(%&version%,"1.5");
  228. set(&item,"265");
  229. else;
  230. set(&item,"iron_ingot");
  231. endif;
  232. if(dev); log(%&item%); endif;
  233. endif;
  234. ifmatches(%&item%,"Barra de Ouro");
  235. ifmatches(%&version%,"1.5");
  236. set(&item,"266");
  237. else;
  238. set(&item,"gold_ingot");
  239. endif;
  240. if(dev); log(%&item%); endif;
  241. endif;
  242. ifmatches(%&item%,"Diamante");
  243. ifmatches(%&version%,"1.5");
  244. set(&item,"264");
  245. else;
  246. set(&item,"diamond");
  247. endif;
  248. if(dev); log(%&item%); endif;
  249. endif;
  250. ifmatches(%&item%,"Carvao");
  251. ifmatches(%&version%,"1.5");
  252. set(&item,"263");
  253. else;
  254. set(&item,"coal");
  255. endif;
  256. if(dev); log(%&item%); endif;
  257. endif;
  258. ifmatches(%&item%,"Esmeralda");
  259. ifmatches(%&version%,"1.5");
  260. set(&item,"388");
  261. else;
  262. set(&item,"emerald");
  263. endif;
  264. if(dev); log(%&item%); endif;
  265. endif;
  266. ifmatches(%&item%,"Batata$");
  267. ifmatches(%&version%,"1.5");
  268. set(&item,"392");
  269. else;
  270. set(&item,"potato");
  271. endif;
  272. if(dev); log(%&item%); endif;
  273. endif;
  274. ifmatches(%&item%,"Batata envenenada");
  275. ifmatches(%&version%,"1.5");
  276. set(&item,"394");
  277. else;
  278. set(&item,"poisonous_potato");
  279. endif;
  280. if(dev); log(%&item%); endif;
  281. endif;
  282. ifmatches(%&item%,"Cana");
  283. ifmatches(%&version%,"1.5");
  284. set(&item,"338");
  285. else;
  286. set(&item,"reeds");
  287. endif;
  288. if(dev); log(%&item%); endif;
  289. endif;
  290. ifmatches(%&item%,"Cenoura");
  291. ifmatches(%&version%,"1.5");
  292. set(&item,"391");
  293. else;
  294. set(&item,"carrot");
  295. endif;
  296. if(dev); log(%&item%); endif;
  297. endif;
  298. ifmatches(%&item%,"Fungo do nether");
  299. ifmatches(%&version%,"1.5");
  300. set(&item,"372");
  301. else;
  302. set(&item,"nether_wart");
  303. endif;
  304. if(dev); log(%&item%); endif;
  305. endif;
  306. ifmatches(%&item%,"Blaze rod");
  307. ifmatches(%&version%,"1.5");
  308. set(&item,"369");
  309. else;
  310. set(&item,"blaze_rod");
  311. endif;
  312. if(dev); log(%&item%); endif;
  313. endif;
  314. ifmatches(%&item%,"Carne podre");
  315. ifmatches(%&version%,"1.5");
  316. set(&item,"367");
  317. else;
  318. set(&item,"rotten_flesh");
  319. endif;
  320. if(dev); log(%&item%); endif;
  321. endif;
  322. ifmatches(%&item%,"Linha");
  323. ifmatches(%&version%,"1.5");
  324. set(&item,"287");
  325. else;
  326. set(&item,"string");
  327. endif;
  328. if(dev); log(%&item%); endif;
  329. endif;
  330. ifmatches(%&item%,"Olho de aranha");
  331. ifmatches(%&version%,"1.5");
  332. set(&item,"375");
  333. else;
  334. set(&item,"spider_eye");
  335. endif;
  336. if(dev); log(%&item%); endif;
  337. endif;
  338. ifmatches(%&item%,"Osso");
  339. ifmatches(%&version%,"1.5");
  340. set(&item,"352");
  341. else;
  342. set(&item,"bone");
  343. endif;
  344. if(dev); log(%&item%); endif;
  345. endif;
  346. ifmatches(%&item%,"Polvora");
  347. ifmatches(%&version%,"1.5");
  348. set(&item,"289");
  349. else;
  350. set(&item,"gunpowder");
  351. endif;
  352. if(dev); log(%&item%); endif;
  353. endif;
  354. ifmatches(%&item%,"Saco de tinta");
  355. ifmatches(%&version%,"1.5");
  356. set(&item,"351");
  357. else;
  358. set(&item,"dye");
  359. endif;
  360. if(dev); log(%&item%); endif;
  361. endif;
  362. endunsafe;
  363. endif;
  364. if((!come_back)||(perguntar_tudo));
  365. ifmatches(%&resposta%,"Trap");
  366. set(come_back);
  367. unset(@cloud_mexican_var);
  368. unset(@&cloud_mexican_var[]);
  369. unset(&trap);
  370. if(dev);log("Pergunta da trap");endif;
  371. do();
  372. prompt(&trap,"$$[Resposta[§f§lTRAP DE BAUS,,§e-> §6Infinita §f(mkb e sleep colheita),§e-> §6Pesqueiro comum §f(sleep pesca e ztools),§e-> §6zMatheus22 §f(infinito 16 baus),§e-> §6Pesca Mexicana§7/§6homeless]]","");
  373. ifmatches(%&trap%,"Infinita|Pesqueiro|zMatheus22|Mexicana");
  374. ifmatches(%&trap%,"-> "); match(%&trap%,"-> (.*)",{&trap}); if(dev); log("%&trap%"); endif; endif;
  375. ifmatches(%&trap%,"Infinita|zMatheus22");
  376. set(&pergunta_set_temp,",§e§l-> §fSethome temp: %&set_temp%");
  377. ifmatches(%&set_temp%,"Sim$");
  378. set(&sethome_set_temp,",§6§l-> §fTemp: %&setar_home_temporaria%");
  379. else;
  380. set(&sethome_set_temp,"");
  381. endif;
  382. else;
  383. set(&pergunta_set_temp,"");
  384. set(&set_temp,"§cNao");
  385. set(&sethome_set_temp,"");
  386. //set(&sethome_set_temp,"");
  387. ifmatches(%&resposta%,"Sethome temp");
  388. match(%&resposta%,"(.*)Sethome temp(.*)",{&part1,&part2});
  389. set(&resposta,"%&part1%%&part2%");
  390. endif;
  391. endif;
  392. break;
  393. endif;
  394. loop;
  395. endif;
  396. endif;
  397. if((!come_back)||(perguntar_tudo));
  398. ifmatches(%&resposta%,"§e§l-> §fSethome temp:");
  399. set(come_back);
  400. unset(@cloud_mexican_var);
  401. unset(@&cloud_mexican_var[]);
  402. unset(&set_temp);
  403. do();
  404. prompt(&set_temp,"$$[Resposta[§f§lSETHOME TEMPORARIA,,§2-> §aSim,§4-> §cNao,,§fO que faz:, §7utiliza uma sethome, §7(setada e substituida, §7automaticamente), §7para nao precisar, §7caminhar ao mudar, §7de coluna em §7§otrap, §7§oinfinita§7. Nao interfere, §7na trap do pesqueiro]]","");
  405. ifmatches(%&set_temp%,"Sim$|Nao$");
  406. ifmatches(%&set_temp%,"-> "); match(%&set_temp%,"-> (.*)",{&set_temp}); if(dev); log("%&set_temp%"); endif; endif;
  407. set(&pergunta_set_temp,",§e§l-> §fSethome temp: %&set_temp%");
  408.  
  409. ifmatches(%&set_temp%,"Sim$");
  410. set(&sethome_set_temp,",§6§l-> §fTemp: %&setar_home_temporaria%");
  411. else;
  412. set(&sethome_set_temp,"");
  413. endif;
  414.  
  415. break;
  416. endif;
  417. loop;
  418. endif;
  419. endif;
  420. if((!come_back)||(perguntar_tudo));
  421. ifmatches(%&resposta%,"Reiniciar");
  422. set(come_back);
  423. unset(@cloud_mexican_var);
  424. unset(@&cloud_mexican_var[]);
  425. unset(&reiniciar);
  426. do();
  427. prompt(&reiniciar,"$$[Resposta[§f§lREINICIAR, §7apos terminar,§2-> §aSim,§4-> §cNao]]","");
  428. ifmatches(%&reiniciar%,"Sim|Nao");
  429. ifmatches(%&reiniciar%,"-> "); match(%&reiniciar%,"-> (.*)",{&reiniciar}); if(dev); log("%&reiniciar%"); endif; endif;
  430. break;
  431. endif;
  432. loop;
  433. endif;
  434. endif;
  435. if((!come_back)||(perguntar_tudo));
  436. ifmatches(%&resposta%,"Baus:");
  437. set(come_back);
  438. unset(@cloud_mexican_var);
  439. unset(@&cloud_mexican_var[]);
  440. unset(&home_baus);
  441. do();
  442. prompt(&home_baus,$$?,"§eQual a sua §6sethome §ena trap de §e§obaus§r§e? §7(ex: §f/home baus§7)");
  443. ifmatches(%&home_baus%,"^/home (.*)");
  444. break;
  445. endif;
  446. loop;
  447. endif;
  448. endif;
  449. if((!come_back)||(perguntar_tudo));
  450. ifmatches(%&resposta%,"Venda:");
  451. set(come_back);
  452. unset(@cloud_mexican_var);
  453. unset(@&cloud_mexican_var[]);
  454. unset(&home_venda);
  455. do();
  456. prompt(&home_venda,$$?,"§eQual a sua §6sethome §eolhando para a §e§oplaca da loja§r§e? §7(ex: §f/home venda§7)");
  457. ifmatches(%&home_venda%,"^/home (.*)");
  458. break;
  459. endif;
  460. loop;
  461. endif;
  462. endif;
  463. if((!come_back)||(perguntar_tudo));
  464. ifmatches(%&resposta%,"§6§l-> §fTemp:");
  465. set(come_back);
  466. unset(@cloud_mexican_var);
  467. unset(@&cloud_mexican_var[]);
  468. unset(&setar_home_temporaria);
  469. do();
  470. prompt(&setar_home_temporaria,$$?,"§eQual a sua §6sethome temporaria§e? §7(ex: §f/sethome home_temporaria§7)");
  471. ifmatches(%&setar_home_temporaria%,"^/sethome (.*)");
  472. set(&sethome_set_temp,",§6§l-> §fTemp: %&setar_home_temporaria%");
  473. break;
  474. endif;
  475. loop;
  476. endif;
  477. endif;
  478. if((!come_back)||(perguntar_tudo));
  479. ifmatches(%&resposta%,"Delay");
  480. set(come_back);
  481. unset(@cloud_mexican_var);
  482. unset(@&cloud_mexican_var[]);
  483. unset(#delay);
  484. do();
  485. prompt(#delay,$$?,"§eDigite o §e§onumero §r§ede §6milissegundos §ede delay para abrir o bau §7(ex: §f500§7 - max 99999ms)");
  486. ifmatches(%#delay%,"[0-9]{1,5}");
  487. break;
  488. endif;
  489. loop;
  490. endif;
  491. endif;
  492. endif;
  493. unset(@cloud_mexican_var);
  494. unset(@&cloud_mexican_var[]);
  495. unset(come_back);
  496. unset(perguntar_tudo);
  497. set(configuracoes);
  498. loop;
  499. ifmatches(%&trap%,"Infinita|zMatheus22");
  500. ifmatches(%&set_temp%,"Sim");
  501. set(home_temporaria);
  502. else;
  503. unset(home_temporaria);
  504. endif;
  505. else;
  506. unset(home_temporaria);
  507. endif;
  508.  
  509.  
  510.  
  511. //Comandos, ids e variaveis (edite, se achar necessario);
  512. &hide_players = "/esconder";
  513. &menu_loja_off = "/menuloja off";
  514. &comando_fly = "/mc";
  515. &id_chest = "chest|trapped_chest|54|146";
  516. &id_sign = "wall_sign|^68$";
  517.  
  518. //Ordem dos lados nos baus do pesqueiro;
  519. unset(&lado_pesqueiro[]);
  520. put(&lado_pesqueiro[],"North");
  521. put(&lado_pesqueiro[],"East");
  522. put(&lado_pesqueiro[],"South");
  523. put(&lado_pesqueiro[],"West");
  524.  
  525. set(first_hide);
  526.  
  527. //Desativar /mc caso esteja ativo;
  528. do();
  529. ifmatches(%CANFLY%,"True");
  530. log(" ");
  531. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fDesativando &6/mc&f...");
  532. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fCaso voce tenha uma macro de &6/mc&f automatico, desative-a por enquanto.");
  533. echo("%&comando_fly%"); if(dev); log(%&comando_fly%); endif;
  534. do(5);
  535. ifmatches(%CANFLY%,"True");
  536. wait(500ms);
  537. if(dev);
  538. log("/mc continua ativo...");
  539. endif;
  540. else;
  541. break;
  542. endif;
  543. loop;
  544. else;
  545. break;
  546. endif;
  547. loop;
  548.  
  549. //Desativar menus de loja;
  550. echo(%&menu_loja_off%); if(dev); log(%&menu_loja_off%); endif;
  551. wait(500ms);
  552.  
  553. //Teleportar para a home, em uma primeira instancia;
  554. echo(%&home_baus%); if(dev); log(%&home_baus%); endif;
  555. wait(6000ms);
  556. log(" "); log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fIniciando...");
  557.  
  558.  
  559. //Verificar a integridade da home, para garantir que esta nela;
  560. do();
  561. ifmatches(%&trap%,"Infinita|zMatheus22");
  562. ifmatches(%&trap%,"Infinita");
  563. set(#distancia_inferior,2);
  564. set(#distancia_superior,3);
  565. else;
  566. set(#distancia_inferior,4);
  567. set(#distancia_superior,5);
  568. endif;
  569. unset(&verificador_baus);
  570. unset(&verificador_baus_error);
  571. unsafe(0);
  572. for(#distancia,%#distancia_inferior%,%#distancia_superior%);
  573. for(#altura,-1,3);
  574. ifmatches(%&version%,"1.5");
  575. getidrel(+0,%#altura%,-%#distancia%,#id_verificado);
  576. set(&verificador_baus,"%&verificador_baus%%#id_verificado%");
  577. ifmatches(%#id_verificado%,"%&id_chest%");
  578. else;
  579. set(&verificador_baus_error,"%&verificador_baus_error% - (%#id_verificado% : 0,%#altura%,%#distancia%)");
  580. endif;
  581. else;
  582. getidrel(+0,%#altura%,-%#distancia%,&id_verificado);
  583. set(&verificador_baus,"%&verificador_baus%%&id_verificado%");
  584. ifmatches(%&id_verificado%,"%&id_chest%");
  585. else;
  586. set(&verificador_baus_error,"%&verificador_baus_error% - (%&id_verificado% : 0,%#altura%,-%#distancia%)");
  587. endif;
  588. endif;
  589. next;
  590. next;
  591. endunsafe;
  592. ifmatches(%&verificador_baus%,"(%&id_chest%){10}");
  593. set(#x_trap,"%XPOS%");
  594. set(#y_trap,"%YPOS%");
  595. set(#z_trap,"%ZPOS%");
  596. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fCoordenadas da home de baus coletadas!");
  597. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &f(&a%#x_trap%&7,&e%#y_trap%&7,&9%#z_trap%&f)");
  598. break;
  599. else;
  600. log(" ");
  601. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fParece que voce nao esta na home de baus.");
  602. if(dev);
  603. log("&k&d~~&r&3dev mode&k&d~~");
  604. log(%&verificador_baus%);
  605. log("%&verificador_baus_error%");
  606. log("%&id_chest%");
  607. endif;
  608. set(#x_temp,"%XPOS%");
  609. set(#y_temp,"%YPOS%");
  610. set(#z_temp,"%ZPOS%");
  611. echo("%&home_baus%"); if(dev); log(%&home_baus%); endif;
  612. do(30);
  613. wait(250ms);
  614. if((%XPOS% != %#x_temp%)||(%YPOS% != %#y_temp%)||(%ZPOS% != %#z_temp%));
  615. wait(1000ms);
  616. break;
  617. else;
  618. wait(150ms);
  619. endif;
  620. loop;
  621. endif;
  622. endif;
  623. ifmatches(%&trap%,"Pesqueiro|Mexicana");
  624. ifmatches(%&trap%,"Pesqueiro");
  625. #altura_maxima = 1;
  626. #numero_de_baus = 160;
  627. else;
  628. #altura_maxima = 2;
  629. #numero_de_baus = 200;
  630. endif;
  631. unset(&verificador_baus);
  632. unset(&verificador_baus_error);
  633. unsafe(0);
  634. for(#distancia_x,-2,2);
  635. for(#distancia_z,3,4);
  636. for(#altura,-2,%#altura_maxima%)
  637. ifmatches(%&version%,"1.5");
  638. getidrel(%#distancia_x%,%#altura%,%#distancia_z%,#id_verificado);
  639. set(&verificador_baus,"%&verificador_baus%%#id_verificado%");
  640. ifmatches(%#id_verificado%,"%&id_chest%");
  641. else;
  642. set(&verificador_baus_error,"%&verificador_baus_error% - (%#id_verificado% : %#distancia_x%,%#altura%,%#distancia_z%)");
  643. endif;
  644. else;
  645. getidrel(%#distancia_x%,%#altura%,%#distancia_z%,&id_verificado);
  646. set(&verificador_baus,"%&verificador_baus%%&id_verificado%");
  647. ifmatches(%&id_verificado%,"%&id_chest%");
  648. else;
  649. set(&verificador_baus_error,"%&verificador_baus_error% - (%&id_verificado% : %#distancia_x%,%#altura%,%#distancia_z%)");
  650. endif;
  651. endif;
  652. next;
  653. next;
  654. next;
  655. for(#distancia_x,-2,2);
  656. for(#distancia_z,-4,-3);
  657. for(#altura,-2,%#altura_maxima%)
  658. ifmatches(%&version%,"1.5");
  659. getidrel(%#distancia_x%,%#altura%,%#distancia_z%,#id_verificado);
  660. set(&verificador_baus,"%&verificador_baus%%#id_verificado%");
  661. ifmatches(%#id_verificado%,"%&id_chest%");
  662. else;
  663. set(&verificador_baus_error,"%&verificador_baus_error% - (%#id_verificado% : %#distancia_x%,%#altura%,%#distancia_z%)");
  664. endif;
  665. else;
  666. getidrel(%#distancia_x%,%#altura%,%#distancia_z%,&id_verificado);
  667. set(&verificador_baus,"%&verificador_baus%%&id_verificado%");
  668. ifmatches(%&id_verificado%,"%&id_chest%");
  669. else;
  670. set(&verificador_baus_error,"%&verificador_baus_error% - (%&id_verificado% : %#distancia_x%,%#altura%,%#distancia_z%)");
  671. endif;
  672. endif;
  673. next;
  674. next;
  675. next;
  676. for(#distancia_x,-4,-3);
  677. for(#distancia_z,-2,2);
  678. for(#altura,-2,%#altura_maxima%)
  679. ifmatches(%&version%,"1.5");
  680. getidrel(%#distancia_x%,%#altura%,%#distancia_z%,#id_verificado);
  681. set(&verificador_baus,"%&verificador_baus%%#id_verificado%");
  682. ifmatches(%#id_verificado%,"%&id_chest%");
  683. else;
  684. set(&verificador_baus_error,"%&verificador_baus_error% - (%#id_verificado% : %#distancia_x%,%#altura%,%#distancia_z%)");
  685. endif;
  686. else;
  687. getidrel(%#distancia_x%,%#altura%,%#distancia_z%,&id_verificado);
  688. set(&verificador_baus,"%&verificador_baus%%&id_verificado%");
  689. ifmatches(%&id_verificado%,"%&id_chest%");
  690. else;
  691. set(&verificador_baus_error,"%&verificador_baus_error% - (%&id_verificado% : %#distancia_x%,%#altura%,%#distancia_z%)");
  692. endif;
  693. endif;
  694. next;
  695. next;
  696. next;
  697. for(#distancia_x,3,4);
  698. for(#distancia_z,-2,2);
  699. for(#altura,-2,%#altura_maxima%)
  700. ifmatches(%&version%,"1.5");
  701. getidrel(%#distancia_x%,%#altura%,%#distancia_z%,#id_verificado);
  702. set(&verificador_baus,"%&verificador_baus%%#id_verificado%");
  703. ifmatches(%#id_verificado%,"%&id_chest%");
  704. else;
  705. set(&verificador_baus_error,"%&verificador_baus_error% - (%#id_verificado% : %#distancia_x%,%#altura%,%#distancia_z%)");
  706. endif;
  707. else;
  708. getidrel(%#distancia_x%,%#altura%,%#distancia_z%,&id_verificado);
  709. set(&verificador_baus,"%&verificador_baus%%&id_verificado%");
  710. ifmatches(%&id_verificado%,"%&id_chest%");
  711. else;
  712. set(&verificador_baus_error,"%&verificador_baus_error% - (%&id_verificado% : %#distancia_x%,%#altura%,%#distancia_z%)");
  713. endif;
  714. endif;
  715. next;
  716. next;
  717. next;
  718. endunsafe;
  719. ifmatches(%&verificador_baus%,"(%&id_chest%){%#numero_de_baus%}");
  720. set(#x_trap,"%XPOS%");
  721. set(#y_trap,"%YPOS%");
  722. set(#z_trap,"%ZPOS%");
  723. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fCoordenadas da home de baus coletadas!");
  724. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &f(&a%#x_trap%&7,&e%#y_trap%&7,&9%#z_trap%&f)");
  725. break;
  726. else;
  727. log(" ");
  728. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fParece que voce nao esta na home de baus.");
  729. if(dev);
  730. log("&k&d~~&r&3dev mode&k&d~~");
  731. log("%&verificador_baus_error%");
  732. endif;
  733. set(#x_temp,"%XPOS%");
  734. set(#y_temp,"%YPOS%");
  735. set(#z_temp,"%ZPOS%");
  736. echo("%&home_baus%"); if(dev); log("%&home_baus%"); endif;
  737. do(30);
  738. wait(250ms);
  739. if((%XPOS% != %#x_temp%)||(%YPOS% != %#y_temp%)||(%ZPOS% != %#z_temp%));
  740. wait(1000ms);
  741. break;
  742. else;
  743. wait(150ms);
  744. endif;
  745. loop;
  746. endif;
  747. endif;
  748. loop;
  749.  
  750. #bau = 1;
  751. #coluna = 1;
  752. #lado = 1;
  753. unset(vender_ultima);
  754. unset(proxima_coluna);
  755. unset(proximo_bau);
  756. unset(#conta_itens_temp);
  757. match(%&setar_home_temporaria%,"/sethome (.*)",{&home_temporaria});
  758.  
  759. if(home_temporaria);
  760. echo(%&setar_home_temporaria%); if(dev); log(%&setar_home_temporaria%); endif;
  761. wait(700ms);
  762. echo(%&setar_home_temporaria%); if(dev); log(%&setar_home_temporaria%); endif;
  763. wait(700ms);
  764. endif;
  765. ///Inicio do processo;
  766. do();
  767. //do();
  768. if(#bau < 1); #bau = 1; endif;
  769. ifmatches(%&trap%,"pesqueiro|mexicana"); // pegar itens na trap do pesqueiro sleep, pesca mexicana ou homeless;
  770. do();
  771. do(); // olhar pro bau e abrir;
  772. unsafe;
  773. if(#lado == 1);
  774. look(%&lado_pesqueiro[0]%);
  775. elseif(#lado == 2);
  776. look(%&lado_pesqueiro[1]%);
  777. elseif(#lado == 3);
  778. look(%&lado_pesqueiro[2]%);
  779. elseif(#lado == 4);
  780. look(%&lado_pesqueiro[3]%);
  781. elseif(#lado == 5);
  782. ifmatches(%&reiniciar%,"sim");
  783. #lado = 1;
  784. look(%&lado_pesqueiro[0]%);
  785. else;
  786. set(vender_ultima);
  787. break;
  788. endif;
  789. endif;
  790. ifmatches(%&trap%,"Pesqueiro comum");
  791. if(#bau < 5);
  792. #bau = 5;
  793. endif;
  794. endif;
  795.  
  796. if(%GUI% != "NONE"); gui(); endif;
  797.  
  798. if(#bau == 1);
  799. look(-36,-12);
  800. elseif(#bau == 2);
  801. look(-20,-14);
  802. elseif(#bau == 3);
  803. look(+0,-15);
  804. elseif(#bau == 4);
  805. look(+20,-14);
  806. elseif(#bau == 5);
  807. look(+36,-12);
  808. elseif(#bau == 6);
  809. look(-35,+2);
  810. elseif(#bau == 7);
  811. look(-20,+2);
  812. elseif(#bau == 8);
  813. look(+0,+0);
  814. elseif(#bau == 9);
  815. look(+20,+2);
  816. elseif(#bau == 10);
  817. look(+35,+2);
  818. elseif(#bau == 11);
  819. look(-37,+19);
  820. elseif(#bau == 12);
  821. look(-21,+22);
  822. elseif(#bau == 13);
  823. look(+0,+22);
  824. elseif(#bau == 14);
  825. look(+21,+22);
  826. elseif(#bau == 15);
  827. look(+37,+19);
  828. elseif(#bau == 16);
  829. look(-38,+32);
  830. elseif(#bau == 17);
  831. look(-21,+37);
  832. elseif(#bau == 18);
  833. look(+0,+39);
  834. elseif(#bau == 19);
  835. look(+21,+37);
  836. elseif(#bau == 20);
  837. look(+38,+32);
  838. elseif(#bau == 21);
  839. look(-38,+43);
  840. elseif(#bau == 22);
  841. look(-22,+48);
  842. elseif(#bau == 23);
  843. look(+0,+50);
  844. elseif(#bau == 24);
  845. look(+21,+48);
  846. elseif(#bau == 25);
  847. look(+38,+43);
  848. endif;
  849.  
  850. #lado_temp = #lado - 1;
  851. set(&lado_temp,"%&lado_pesqueiro[%#lado_temp%]%");
  852. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &r&eBau &6%#conta_baus% &f- &eLado &6%&lado_temp%&f.");
  853. endunsafe;
  854. keyup(sneak);
  855. //wait(100ms);
  856. unsafe(0);
  857. if(%GUI% != "NONE");
  858. do(); gui(); wait(200ms); until(%GUI% == "NONE");
  859. endif;
  860. wait(200ms);
  861.  
  862. do(2);
  863. key(use);
  864. wait(50ms);
  865. if(%GUI% == "GUICHEST");
  866. break;
  867. endif;
  868. ifmatches(%HITID%,%&id_chest%);
  869. else;
  870. break;
  871. endif;
  872. loop;
  873. if(%GUI% == "GUICHEST");
  874. break;
  875. endif;
  876. ifmatches(%HITID%,%&id_chest%);
  877. else;
  878. break;
  879. endif;
  880. loop;
  881. endunsafe;
  882. if(%GUI% == "GUICHEST");
  883. if(#delay > 0); wait(%#delay%ms); endif;
  884. break;
  885. endif;
  886. loop;
  887. if(!vender_ultima);
  888. unsafe(0);
  889. unset(inv_full);
  890. do();
  891. getslot(%&item%,#slot_com_item);
  892. if((#slot_com_item < 0)||(#slot_com_item > 53)); // bau vazio;
  893. inc(#bau,1);
  894. inc(#conta_baus,1);
  895. if(#bau > 25);
  896. #bau = 1;
  897. inc(#lado,1);
  898. endif;
  899. break;
  900. else;
  901. getslotitem(%#slot_com_item%,#nada,#stack);
  902. inc(#conta_itens_temp,%#stack%);
  903. slotclick(%#slot_com_item%,l,true);
  904. getslotitem(%#slot_com_item%,#nada,#stack);
  905. if(dev); log("dev"); log(%#stack%); endif;
  906. if(#stack > 0); // inventario cheio;
  907. dec(#conta_itens_temp,%#stack%);
  908. if(dev); log("dec(#conta_itens_temp,%#stack%);");endif;
  909. if(dev); log("inv full"); endif;
  910. set(inv_full);
  911. break;
  912. endif;
  913. endif;
  914. loop;
  915. endunsafe;
  916. endif;
  917. if((vender_ultima)|(inv_full));
  918. if(dev); log("vender"); endif;
  919. break;
  920. endif;
  921. if(%GUI% != "NONE"); gui(); endif;
  922. loop;
  923. else; // pegar itens na trap infinita / zMatheus22;
  924. do();
  925. unsafe(0);
  926. #x_final = #x_trap + #coluna - 1;
  927. if(dev);
  928. log("X final: %#x_final%");
  929. log("X agora: %XPOS%");
  930. log("X trap: %#x_trap%");
  931. endif;
  932. if(%XPOS% != %#x_final%);
  933. set(proxima_coluna);
  934. if(dev); log("proxima coluna"); endif;
  935. else;
  936. unset(proxima_coluna);
  937. endif;
  938. endunsafe;
  939. if(proxima_coluna);
  940. unset(voltar_para_home);
  941. do();
  942. if(!voltar_para_home);
  943. unsafe;
  944. do();
  945. look(north);
  946. #x_agora = %XPOS%;
  947. #distancia_ate_coluna = #x_final - #x_agora;
  948. if(dev); log("distancia ate coluna: %#distancia_ate_coluna%"); endif;
  949. if(#distancia_ate_coluna > 2);
  950. SPRINT();
  951. keyup(sneak);
  952. else;
  953. keydown(sneak);
  954. UNSPRINT;
  955. endif;
  956. if(#distancia_ate_coluna == 0);
  957. ifmatches(%HITID%,%&id_chest%);
  958. if(dev); log("vejo bau"); endif;
  959. else;
  960. if(dev); log("nao vejo bau"); endif;
  961. wait(20ms);
  962. keyup(right);
  963. endif;
  964. wait(100ms);
  965. keyup(sneak);
  966. break;
  967. endif;
  968. if((#distancia_ate_coluna < 0)||(%ZPOS% != %#z_trap%));
  969. set(voltar_para_home);
  970. break;
  971. endif;
  972. if(#distancia_ate_coluna > 0);
  973. keydown(right);
  974. endif;
  975. loop;
  976. endunsafe;
  977. endif;
  978. if(voltar_para_home);
  979. ////// voltar para a home dos baus;
  980. if(dev); log("Voltar para a home dos baus"); endif;
  981. #x_temp = %XPOS%;
  982. #y_temp = %YPOS%;
  983. #z_temp = %ZPOS%;
  984. do();
  985. keyup(right);keyup(left);keyup(sneak);keyup(jump);keyup(forward);keyup(back);
  986. if(home_temporaria);
  987. if(vender_ultima);
  988. set(home_final_original);
  989. echo(%&home_baus%); if(dev); log("%&home_baus%"); endif;
  990. else;
  991. if(#coluna != 1);
  992. echo("/home %&home_temporaria%"); if(dev); log("%&home_temporaria%"); endif;
  993. unset(home_final_original);
  994. else;
  995. set(home_final_original);
  996. echo(%&home_baus%); if(dev); log("%&home_baus%"); endif;
  997. endif;
  998. endif;
  999. else;
  1000. echo(%&home_baus%); if(dev); log("%&home_baus%"); endif;
  1001. endif;
  1002. wait(100ms);
  1003. do(60);
  1004. wait(200ms);
  1005. if((%ZPOS% == %#z_trap%)&&(%YPOS% == %#y_trap%));
  1006. else;
  1007. wait(200ms);
  1008. endif;
  1009. if((%ZPOS% == %#z_trap%)&&(%YPOS% == %#y_trap%));
  1010. else;
  1011. wait(200ms);
  1012. endif;
  1013. if((%XPOS% != %#x_temp%)|(%ZPOS% != %#z_temp%)|(%YPOS% != %#y_temp%));
  1014. if((%ZPOS% == %#z_trap%)&&(%YPOS% == %#y_trap%));
  1015. wait(300ms);
  1016. if(dev); log("Teleporte para a trap concluido."); endif;
  1017. if(home_final_original);
  1018. if(%XPOS% == %#x_trap%);
  1019. unset(voltar_para_home);
  1020. break;
  1021. endif;
  1022. else;
  1023. unset(voltar_para_home);
  1024. break;
  1025. endif;
  1026. else;
  1027. ifmatches(%CANFLY%,"False");
  1028. if(dev); log("Pulando para tentar desbugar..."); endif;
  1029. keydown(jump);
  1030. wait(1ms);
  1031. keyup(jump);
  1032. wait(1000ms);
  1033. else;
  1034. wait(1000ms);
  1035. endif;
  1036. endif;
  1037. endif;
  1038. loop;
  1039. if((%ZPOS% == %#z_trap%)&&(%YPOS% == %#y_trap%));
  1040. if(home_final_original);
  1041. if(%XPOS% == %#x_trap%);
  1042. unset(voltar_para_home);
  1043. break;
  1044. endif;
  1045. else;
  1046. unset(voltar_para_home);
  1047. break;
  1048. endif;
  1049. else;
  1050. if(dev);
  1051. log("Nao consegui chegar na posicao exata da trap.");
  1052. log("Tentando dar /home novamente...");
  1053. endif;
  1054. endif;
  1055. loop;
  1056.  
  1057. ///////
  1058.  
  1059. else;
  1060. unsafe(0);
  1061. unset(tudo_certo);
  1062. ifmatches(%&trap%,"Infinita");
  1063. set(#distancia_inferior,2);
  1064. set(#distancia_superior,3);
  1065. else;
  1066. set(#distancia_inferior,4);
  1067. set(#distancia_superior,5);
  1068. endif;
  1069. unset(&verificador_baus);
  1070. unset(&verificador_baus_error);
  1071. for(#distancia,%#distancia_inferior%,%#distancia_superior%);
  1072. for(#altura,-1,3);
  1073. ifmatches(%&version%,"1.5");
  1074. getidrel(+0,%#altura%,-%#distancia%,#id_verificado);
  1075. set(&verificador_baus,"%&verificador_baus%%#id_verificado%");
  1076. ifmatches(%#id_verificado%,"%&id_chest%");
  1077. else;
  1078. set(&verificador_baus_error,"%&verificador_baus_error% - (%#id_verificado% : 0,%#altura%,%#distancia%)");
  1079. endif;
  1080. else;
  1081. getidrel(+0,%#altura%,-%#distancia%,&id_verificado);
  1082. set(&verificador_baus,"%&verificador_baus%%&id_verificado%");
  1083. ifmatches(%&id_verificado%,"%&id_chest%");
  1084. else;
  1085. set(&verificador_baus_error,"%&verificador_baus_error% - (%&id_verificado% : 0,%#altura%,-%#distancia%)");
  1086. endif;
  1087. endif;
  1088. next;
  1089. next;
  1090. ifmatches(%&verificador_baus%,"(%&id_chest%){10}");
  1091. ifmatches(%HITID%,%&id_chest%);
  1092. set(tudo_certo);
  1093. else;
  1094. unset(tudo_certo);
  1095. set(voltar_para_home);
  1096. endif;
  1097. else;
  1098. set(tudo_certo);
  1099. ifmatches(%&reiniciar%,"Nao");
  1100. if(dev); log("TRAP INCOMPLETA! Vendendo ultima rodada."); endif;
  1101. set(vender_ultima);
  1102. else;
  1103. if(dev); log("TRAP INCOMPLETA! Retornando para o inicio."); endif;
  1104. #bau = 1;
  1105. #coluna = 1;
  1106. set(voltar_para_home);
  1107. unset(vender_ultima);
  1108. endif;
  1109. endif;
  1110. endunsafe;
  1111. endif;
  1112. if((!voltar_para_home)&&(tudo_certo));
  1113. if(!vender_ultima);
  1114. if(home_temporaria);
  1115. echo(%&setar_home_temporaria%); if(dev); log(%&setar_home_temporaria%); endif;
  1116. wait(300ms);
  1117. echo(%&setar_home_temporaria%); if(dev); log(%&setar_home_temporaria%); endif;
  1118. wait(300ms);
  1119. endif;
  1120. endif;
  1121. break;
  1122. endif;
  1123. if(vender_ultima);
  1124. break;
  1125. endif;
  1126. loop;
  1127. endif;
  1128. if(vender_ultima);
  1129. break;
  1130. endif;
  1131. do();
  1132. unsafe(0);
  1133. ifmatches(%&trap%,"zMatheus22");
  1134. if(#bau == 1);
  1135. look(3,335);
  1136. elseif(#bau == 2);
  1137. look(3,348);
  1138. elseif(#bau == 3);
  1139. look(3,2);
  1140. elseif(#bau == 4);
  1141. look(3,17);
  1142. elseif(#bau == 5);
  1143. look(3,31);
  1144. elseif(#bau == 6);
  1145. look(3,46);
  1146. elseif(#bau == 7);
  1147. look(3,67);
  1148. elseif(#bau == 8);
  1149. look(177,53);
  1150. elseif(#bau == 9);
  1151. look(177,37);
  1152. elseif(#bau == 10);
  1153. look(177,24);
  1154. elseif(#bau == 11);
  1155. look(177,4);
  1156. elseif(#bau == 12);
  1157. look(177,342);
  1158. elseif(#bau == 13);
  1159. look(177,325);
  1160. elseif(#bau == 14);
  1161. look(177,303);
  1162. elseif(#bau == 15);
  1163. look(3,283);
  1164. elseif(#bau == 16);
  1165. look(3,316);
  1166. elseif((#bau > 16)||(#bau < 1));
  1167. #bau = 1;
  1168. inc(#coluna,1);
  1169. inc(#conta_colunas,1);
  1170. if(dev); log("proxima coluna (%#coluna%)"); endif;
  1171. set(proxima_coluna);
  1172. break;
  1173. endif;
  1174. else;
  1175. if(#bau == 1);
  1176. if(dev); log("bau 1"); endif;
  1177. look(3,313);
  1178. elseif(#bau == 2);
  1179. if(dev); log("bau 2"); endif;
  1180. look(3,335);
  1181. elseif(#bau == 3);
  1182. if(dev); log("bau 3"); endif;
  1183. look(3,5);
  1184. elseif(#bau == 4);
  1185. if(dev); log("bau 4"); endif;
  1186. look(3,35);
  1187. elseif(#bau == 5);
  1188. if(dev); log("bau 5"); endif;
  1189. look(3,52);
  1190. elseif((#bau > 5)||(#bau < 1));
  1191. #bau = 1;
  1192. inc(#coluna,1);
  1193. inc(#conta_colunas,1);
  1194. set(proxima_coluna);
  1195. break;
  1196. endif;
  1197. endif;
  1198. keyup(sneak);
  1199.  
  1200. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &r&eBau &6%#conta_baus% &f- &eColuna &6%#conta_colunas%&f.");
  1201.  
  1202.  
  1203. //wait(100ms);
  1204. if(%GUI% != "NONE");
  1205. do(); gui(); wait(100ms); until(%GUI% == "NONE");
  1206. endif;
  1207. do(2);
  1208. ifmatches(%HITID%,%&id_chest%);
  1209. key(use);
  1210. do(40);
  1211. wait(50ms);
  1212. if(%GUI% == "GUICHEST");
  1213. break;
  1214. endif;
  1215. ifmatches(%HITID%,%&id_chest%);
  1216. else;
  1217. break;
  1218. endif;
  1219. loop;
  1220. else;
  1221. break;
  1222. endif;
  1223. if(%GUI% == "GUICHEST");
  1224. break;
  1225. endif;
  1226. loop;
  1227. if(%GUI% == "GUICHEST");
  1228. if(#delay > 0); wait(%#delay%ms); endif;
  1229. break;
  1230. endif;
  1231. endunsafe;
  1232. loop;
  1233.  
  1234. unsafe(0);
  1235. if(!vender_ultima);
  1236. unset(inv_full);
  1237. do();
  1238. getslot(%&item%,#slot_com_item);
  1239. if((#slot_com_item < 0)||(#slot_com_item > 53)); // bau vazio;
  1240. if(dev); log("bau vazio. Slot %#slot_com_item%"); endif;
  1241. inc(#bau,1);
  1242. inc(#conta_baus,1);
  1243. ifmatches(%&trap%,"zMatheus22");
  1244. if(#bau > 16);
  1245. #bau = 1;
  1246. inc(#coluna,1);
  1247. inc(#conta_colunas,1);
  1248. endif;
  1249. else;
  1250. if(#bau > 5);
  1251. #bau = 1;
  1252. inc(#coluna,1);
  1253. inc(#conta_colunas,1);
  1254. endif;
  1255. endif;
  1256. if(dev);
  1257. log("break");
  1258. endif;
  1259. break;
  1260. else;
  1261. getslotitem(%#slot_com_item%,#nada,#stack);
  1262. inc(#conta_itens_temp,%#stack%);
  1263. slotclick(%#slot_com_item%,l,true);
  1264. getslotitem(%#slot_com_item%,#nada,#stack);
  1265. if(#stack > 0); // inventario cheio;
  1266. dec(#conta_itens_temp,%#stack%);
  1267. if(dev); log("dec(#conta_itens_temp,%#stack%);");endif;
  1268. if(dev); log("inv full"); endif;
  1269. set(inv_full);
  1270. break;
  1271. endif;
  1272.  
  1273. endif;
  1274. loop;
  1275.  
  1276. endif;
  1277. if((vender_ultima)|(inv_full));
  1278. break;
  1279. endif;
  1280. if(%GUI% != "NONE"); gui(); endif;
  1281. endunsafe;
  1282. loop;
  1283. endif;
  1284.  
  1285. // vender itens na loja;
  1286. #x_temp = %XPOS%;
  1287. #z_temp = %ZPOS%;
  1288. if(%GUI% != "NONE"); gui(); endif;
  1289. do();
  1290. echo(%&home_venda%); if(dev); log("%&home_venda%"); endif;
  1291. unsafe(0);
  1292. do(40);
  1293. wait(250ms);
  1294. if((%XPOS% != %#x_temp%)||(%ZPOS% != %#z_temp%));
  1295. break;
  1296. endif;
  1297. ifmatches(%HITID%,%&id_sign%);
  1298. break;
  1299. endif;
  1300. loop;
  1301. if((%XPOS% != %#x_temp%)||(%ZPOS% != %#z_temp%));
  1302. break;
  1303. endif;
  1304. ifmatches(%HITID%,%&id_sign%);
  1305. break;
  1306. endif;
  1307. endunsafe;
  1308. loop;
  1309. ifmatches(%CANFLY%,"True");
  1310. do();
  1311. echo(%&comando_fly%); if(dev); log("%&comando_fly%"); endif;
  1312. do(40);
  1313. wait(500ms);
  1314. ifmatches(%CANFLY%,"False");
  1315. wait(500ms);
  1316. break;
  1317. endif;
  1318. loop;
  1319. ifmatches(%CANFLY%,"False");
  1320. break;
  1321. endif;
  1322. loop;
  1323. endif;
  1324.  
  1325. do(4);
  1326. if((first_hide)||(%HITID% > 10000));
  1327. echo("%&hide_players%"); if(dev); log("%&hide_players%"); endif;
  1328. unset(first_hide);
  1329. endif;
  1330. do(10);
  1331. ifmatches(%HITID%,%&id_sign%);
  1332. break;
  1333. else;
  1334. wait(500ms);
  1335. ifmatches(%CANFLY%,"False");
  1336. if(dev); log("Tentando pular pra desbugar..."); endif;
  1337. keydown(jump);
  1338. wait(1ms);
  1339. keyup(jump);
  1340. wait(750ms);
  1341. endif;
  1342. endif;
  1343. loop;
  1344. if(#delay > 650);
  1345. echo(%&menu_loja_off%);
  1346. if(dev);
  1347. log("%&menu_loja_off%");
  1348. endif;
  1349. wait(300ms);
  1350. endif;
  1351. ifmatches(%HITID%,%&id_sign%);
  1352. break;
  1353. else;
  1354. if(dev); log("Nao vejo placa. Aguardando."); endif;
  1355. wait(1000ms);
  1356. ifmatches(%HITID%,%&id_sign%);
  1357. else;
  1358. if(dev); log("Nao vejo placa. Aguardando."); endif;
  1359. wait(1000ms);
  1360. ifmatches(%HITID%,%&id_sign%);
  1361. else;
  1362. if(dev); log("%&hide_players%"); endif;
  1363. echo("%&hide_players%");
  1364. endif;
  1365. endif;
  1366. endif;
  1367. loop;
  1368. do(40);
  1369. unset(nao_vejo_placa);
  1370. if(%GUI% == "NONE");
  1371. ifmatches(%HITID%,%&id_sign%);
  1372. key(attack);
  1373. wait(300ms);
  1374. else;
  1375. set(nao_vejo_placa);
  1376. endif;
  1377. elseif(%GUI% == "GUICHAT");
  1378. log(" ");
  1379. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fChat detectado. Aguardando.");
  1380. do(200);
  1381. wait(300ms);
  1382. if(%GUI% != "GUICHAT");
  1383. log(" ");
  1384. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fChat fechado. Retomando.");
  1385. break;
  1386. endif;
  1387. loop;
  1388. endif;
  1389.  
  1390. if(%GUI% == "GUICHEST");
  1391. log(" ");
  1392. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &6Janela &fdetectada. Fechando...");
  1393. do();
  1394. gui();
  1395. wait(500ms);
  1396. until(%GUI% == "NONE");
  1397. wait(1000ms);
  1398. echo(%&menu_loja_off%); if(dev); log("%&menu_loja_off%"); endif;
  1399. wait(2000ms);
  1400. if(%GUI% != "NONE");
  1401. do();
  1402. gui();
  1403. wait(500ms);
  1404. until(%GUI% == "NONE");
  1405. endif;
  1406. elseif(nao_vejo_placa);
  1407. unset(nao_vejo_placa);
  1408. do(4);
  1409. wait(500ms);
  1410. ifmatches(%HITID%,%&id_sign%);
  1411. key(attack);
  1412. break;
  1413. else;
  1414. echo(%&hide_players%); if(dev); log("%&hide_players%"); endif;
  1415. wait(1000ms);
  1416. ifmatches(%HITID%,%&id_sign%);
  1417. else;
  1418. wait(1000ms);
  1419. ifmatches(%HITID%,%&id_sign%);
  1420. else;
  1421. wait(1000ms);
  1422. ifmatches(%HITID%,%&id_sign%);
  1423. else;
  1424. wait(1000ms);
  1425. ifmatches(%HITID%,%&id_sign%);
  1426. else;
  1427. wait(1000ms);
  1428. ifmatches(%HITID%,%&id_sign%);
  1429. else;
  1430. wait(1000ms);
  1431. ifmatches(%HITID%,%&id_sign%);
  1432. else;
  1433. wait(1000ms);
  1434. endif;
  1435. endif;
  1436. endif;
  1437. endif;
  1438. endif;
  1439. endif;
  1440. endif;
  1441. loop;
  1442. else;
  1443. unsafe(0);
  1444. unset(venda_finalizada);
  1445. gui(inventory);
  1446. if(%GUI% == "GUIINVENTORY");
  1447. getslot(%&item%,#slot_com_item);
  1448. gui();
  1449. if(#slot_com_item < 0);
  1450. inc(#conta_itens,%#conta_itens_temp%);
  1451. if(dev); log("Itens vendidos agora: %#conta_itens_temp%"); log("Itens vendidos ate agora: %#conta_itens%"); endif;
  1452. unset(#conta_itens_temp);
  1453. break;
  1454. endif;
  1455. endif;
  1456. endunsafe;
  1457. endif;
  1458. loop;
  1459. if(venda_finalizada);
  1460. unset(venda_finalizada);
  1461. endif;
  1462.  
  1463. // Retornar para a trap;
  1464. #x_temp = %XPOS%;
  1465. #y_temp = %YPOS%;
  1466. #z_temp = %ZPOS%;
  1467. do();
  1468. if(home_temporaria);
  1469. if(vender_ultima);
  1470. echo(%&home_baus%); if(dev); log("%&home_baus%"); endif;
  1471. else;
  1472. echo("/home %&home_temporaria%"); if(dev); log("%&home_temporaria%"); endif;
  1473. endif;
  1474. else;
  1475. echo(%&home_baus%); if(dev); log("%&home_baus%"); endif;
  1476. endif;
  1477. do(55);
  1478. wait(100ms);
  1479. if((%ZPOS% == %#z_trap%)&&(%YPOS% == %#y_trap%));
  1480. else;
  1481. wait(100ms);
  1482. endif;
  1483. if((%ZPOS% == %#z_trap%)&&(%YPOS% == %#y_trap%));
  1484. else;
  1485. wait(100ms);
  1486. endif;
  1487. if((%XPOS% != %#x_temp%)|(%ZPOS% != %#z_temp%)|(%YPOS% != %#y_temp%));
  1488. if((%ZPOS% == %#z_trap%)&&(%YPOS% == %#y_trap%));
  1489. wait(100ms);
  1490. unsafe;
  1491. if(dev); log("Teleporte para a trap concluido."); endif;
  1492. break;
  1493. endunsafe;
  1494. else;
  1495. ifmatches(%CANFLY%,"False");
  1496. if(dev); log("Pulando para tentar desbugar..."); endif;
  1497. keydown(jump);
  1498. wait(1ms);
  1499. keyup(jump);
  1500. wait(1000ms);
  1501. endif;
  1502. endif;
  1503. else;
  1504. wait(200ms);
  1505. if(dev); log("Aguardando tp..."); endif;
  1506. endif;
  1507. loop;
  1508. if((%ZPOS% == %#z_trap%)&&(%YPOS% == %#y_trap%));
  1509. break;
  1510. else;
  1511. if(dev);
  1512. log("Nao consegui chegar na posicao exata da trap.");
  1513. log("Tentando dar /home novamente...");
  1514. endif;
  1515. endif;
  1516. loop;
  1517.  
  1518. if(vender_ultima);
  1519. #conta_packs = #conta_itens / 64;
  1520. log(" ");
  1521. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &eVenda finalizada!");
  1522. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &f&lContagem: &r&6%#conta_baus% baus verificados&f, &7%#conta_itens% &7itens&f (&a%#conta_packs% packs&f).");
  1523. unset(vender_ultima);
  1524. break;
  1525. endif;
  1526. loop;
  1527. //X POSITIVO = LESTE;
  1528. //X NEGATIVO = OESTE;
  1529. // Y POSITIVO = CIMA;
  1530. // Y NEGATIVO = BAIXO;
  1531. //Z POSITIVO = SUL;
  1532. //Z NEGATIVO = NORTE;
  1533. toggle(@vendedor_mexicano_v4);
  1534. log("&f&l[&2&lMA&f&lC&4&lRO&f&l] &fVendedor &2Mex&fic&4ano &cFinalizado&f.");
  1535.  
  1536.  
  1537. //edit;
  1538. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement