$${
if(herbalivros);
log("&a&l[Macro]&f Herbalivros_v2 &1- [By: Homeless Macros] &f&l[&4&lOFF&f&l]");
do(2);
wait(%#homeless_delay%ms);
key(attack);
loop;
unset(herbalivros);
unset(@sweeping);
stop();
else;
set(herbalivros);
achievementget(Homeless Macros,397:3);
wait(300ms);
clearchat();
log("&a&l[Macro]&f Macro Desenvolvida Por: &1&lHomeless &f(Sv.3-Craftlandia)");
wait(1);
if(homeless_preset_herbalivros);
do;
clearchat();
log("&a&l[Macro]&e Deseja usar a ultima configuração da macro?");
log("&a&l[Macro]&2&l [1]&f Sim.");
log("&a&l[Macro]&2&l [2]&f Não.");
log(" ");
log(" ");
prompt(#homeless_inc,$$?,"Insira o número referente a opção desejada:");
until((%#homeless_inc%=1)||(%#homeless_inc%=2));
#homeless_store=0;
#homeless_replace=0;
set(@sweeping);
unset(@gimmeabreak);
else;
#homeless_inc=2;
endif;
if(%#homeless_inc%=1);
else;
unset(homeless_preset_herbalivros);
do;
clearchat();
log("&a&l[Macro]&e Essa conta é VIP?");
log("&a&l[Macro]&2&l [1]&f Sim.");
log("&a&l[Macro]&2&l [2]&f Não.");
log(" ");
log(" ");
prompt(#homeless_vip,$$?,"Insira o número referente ao bloco que será utilizado:");
until((%#homeless_vip%=1)||(%#homeless_vip%=2));
do;
clearchat();
log("&a&l[Macro]&e Qual delay deseja utilizar? Lembandro que:");
log("&a&l[Macro]&2&l [2]&f É o menor valor de delay.");
log("&a&l[Macro]&2&l [500]&f É o maior valor de delay.");
log("&a&l[Macro]&2&l [10]&f É o valor recomendado.");
log(" ");
log(" ");
prompt(#homeless_delay,$$?,"Insira o número referente a opção desejada:");
until((%#homeless_delay%>=2)&&(%#homeless_delay%<=500));
#homeless_delay=%#homeless_delay%/2;
do;
clearchat();
log("&a&l[Macro]&e A cada quantos segundos deseja verificar o inventário? Lembandro que:");
log("&a&l[Macro]&2&l [1]&f 30 Segundos.");
log("&a&l[Macro]&2&l [2]&f 60 Segundos.");
log("&a&l[Macro]&2&l [3]&f 90 Segundos.");
log("&a&l[Macro]&2&l [4]&f 180 Segundos.");
log("&a&l[Macro]&2&l [5]&f 300 Segundos.");
log(" ");
log(" ");
prompt(#homeless_verify_inv,$$?,"Insira o número referente a opção desejada:");
until((%#homeless_verify_inv%>=1)&&(%#homeless_verify_inv%<=5));
if(%#homeless_verify_inv%=1);
#homeless_delay_inv=23;
endif;
if(%#homeless_verify_inv%=2);
#homeless_delay_inv=46;
endif;
if(%#homeless_verify_inv%=3);
#homeless_delay_inv=69;
endif;
if(%#homeless_verify_inv%=4);
#homeless_delay_inv=138;
endif;
if(%#homeless_verify_inv%=5);
#homeless_delay_inv=230;
endif;
#homeless_delay_inv=#homeless_delay_inv*3;
#homeless_store_chest=1;
#homeless_replace_chest=1;
set(homeless_preset_herbalivros);
endif;
log("&a&l[Macro]&f Herbalivros_v2 &1- [By: Homeless Macros] &f&l[&a&lON&f&l]");
}$$/stats$${
endif;
&dir = %DIRECTION%;
ifmatches(%&dir%,N);
&homeless_dir_front=NORTH;
&homeless_dir_right=EAST;
&homeless_dir_left=WEST;
&homeless_dir_back=SOUTH;
endif;
ifmatches(%&dir%,S);
&homeless_dir_front=SOUTH;
&homeless_dir_right=WEST;
&homeless_dir_left=EAST;
&homeless_dir_back=NORTH;
endif;
ifmatches(%&dir%,E);
&homeless_dir_front=EAST;
&homeless_dir_right=SOUTH;
&homeless_dir_right=NORTH;
&homeless_dir_back=WEST;
endif;
ifmatches(%&dir%,W);
&homeless_dir_front=WEST;
&homeless_dir_right=NORTH;
&homeless_dir_left=SOUTH;
&homeless_dir_back=EAST;
endif;
do;
do(%#homeless_delay_inv%);
do(10);
look(%&homeless_dir_front%);
look(+0,+90);
pick(338);
key(use);
wait(%#homeless_delay%ms);
key(attack);
wait(%#homeless_delay%ms);
if(@gimmeabreak);
unset(@gimmeabreak);
wait(6);
endif;
loop;
loop;
wait(200ms);
gui(inventory);
wait(800ms);
getslotitem(34,#id,#stack);
if(%#stack%!=0);
#homeless_store=1;
endif;
wait(10ms);
getslotitem(42,#id);
if(%#id%!=338);
gui();
}$$/home herbalismo$${
if(%#homeless_vip%=1);
wait(3);
else;
wait(7);
endif;
keydown(jump);
wait(1);
keyup(jump);
wait(1);
gui(inventory);
wait(800ms);
getslotitem(42,#id);
if(%#id%!=338);
gui(inventory);
wait(800ms);
#homeless_replace=1;
slotclick(36,l,true);
wait(350ms);
slotclick(37,l,true);
wait(350ms);
slotclick(38,l,true);
wait(350ms);
slotclick(39,l,true);
wait(350ms);
slotclick(40,l,true);
wait(350ms);
slotclick(41,l,true);
wait(350ms);
slotclick(42,l,true);
wait(350ms);
gui();
wait(800ms);
endif;
endif;
gui();
wait(500ms);
if((%#homeless_store%=0)&&(%#homeless_replace%=0));
}$$/home herbalismo$${
if(%#homeless_vip%=1);
wait(3);
else;
wait(7);
endif;
keydown(jump);
wait(1);
keyup(jump);
wait(1);
else;
if(%#homeless_store%=1);
#homeless_done=0;
do;
if(%#homeless_store_chest%=1);
look(%&homeless_dir_front%);
look(+0,-50);
log("&a&l[Macro]&e Bau de armazenamento: %#homeless_store_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_store_chest%=2);
look(%&homeless_dir_front%);
look(+0,-32);
log("&a&l[Macro]&e Bau de armazenamento: %#homeless_store_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_store_chest%=3);
look(%&homeless_dir_front%);
look(+0,+0);
log("&a&l[Macro]&e Bau de armazenamento: %#homeless_store_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_store_chest%=4);
look(%&homeless_dir_front%);
look(+32,-46);
log("&a&l[Macro]&e Bau de armazenamento: %#homeless_store_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_store_chest%=5);
look(%&homeless_dir_front%);
look(+32,-28);
log("&a&l[Macro]&e Bau de armazenamento: %#homeless_store_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_store_chest%=6);
look(%&homeless_dir_front%);
look(+32,+0);
log("&a&l[Macro]&e Bau de armazenamento: %#homeless_store_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_store_chest%=7);
look(%&homeless_dir_front%);
look(+48,-36);
log("&a&l[Macro]&e Bau de armazenamento: %#homeless_store_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_store_chest%=8);
look(%&homeless_dir_front%);
look(+48,-20);
log("&a&l[Macro]&e Bau de armazenamento: %#homeless_store_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_store_chest%=9);
look(%&homeless_dir_front%);
look(+48,+0);
log("&a&l[Macro]&e Bau de armazenamento: %#homeless_store_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
key(use);
wait(3);
for(#homeless_inc,54,80);
getslotitem(%#homeless_inc%,#id);
if(%#id%!=0);
slotclick(%#homeless_inc%,l,true);
endif;
wait(50ms);
next;
for(#homeless_inc,81,89);
getslotitem(%#homeless_inc%,#id);
if(%#id%!=338);
slotclick(%#homeless_inc%,l,true);
endif;
wait(50ms);
next;
wait(300ms);
getslotitem(53,#id,#stack);
wait(300ms);
if(%#stack%!=0);
inc(#homeless_store_chest);
if(%#homeless_store_chest%=10);
#homeless_store_chest=1;
log("&a&l[Macro]&f Reiniciando a busca por bau vazio. &1- Homeless Macros");
endif;
else;
#homeless_done=1;
endif;
gui();
wait(800ms);
until(%#homeless_done%=1);
#homeless_store=0;
endif;
if(%#homeless_replace%=1);
#homeless_done=0;
#homeless_cane_trasition=1;
do;
if(%#homeless_replace_chest%=1);
look(%&homeless_dir_front%);
look(-48,-36);
log("&a&l[Macro]&e Bau de reposição: %#homeless_replace_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_replace_chest%=2);
look(%&homeless_dir_front%);
look(-48,-20);
log("&a&l[Macro]&e Bau de reposição: %#homeless_replace_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_replace_chest%=3);
look(%&homeless_dir_front%);
look(-48,+0);
log("&a&l[Macro]&e Bau de reposição: %#homeless_replace_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_replace_chest%=4);
look(%&homeless_dir_front%);
look(-32,-46);
log("&a&l[Macro]&e Bau de reposição: %#homeless_replace_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_replace_chest%=5);
look(%&homeless_dir_front%);
look(-32,-28);
log("&a&l[Macro]&e Bau de reposição: %#homeless_replace_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
if(%#homeless_replace_chest%=6);
look(%&homeless_dir_front%);
look(-32,+0);
log("&a&l[Macro]&e Bau de reposição: %#homeless_replace_chest% &1- [By: Homeless Macros]");
wait(500ms);
endif;
key(use);
wait(3);
for(#homeless_inc,0,53);
getslotitem(%#homeless_inc%,#id);
if(%#id%=338);
slotclick(%#homeless_inc%,l,false);
wait(100ms);
if(%#homeless_cane_trasition%=1);
slotclick(87,l,false);
#homeless_cane_trasition=2;
else;
if(%#homeless_cane_trasition%=2);
slotclick(86,l,false);
#homeless_cane_trasition=3;
else;
if(%#homeless_cane_trasition%=3);
slotclick(85,l,false);
#homeless_cane_trasition=4;
else;
if(%#homeless_cane_trasition%=4);
slotclick(84,l,false);
#homeless_cane_trasition=5;
else;
if(%#homeless_cane_trasition%=5);
slotclick(83,l,false);
#homeless_cane_trasition=6;
else;
if(%#homeless_cane_trasition%=6);
slotclick(82,l,false);
#homeless_cane_trasition=7;
else;
if(%#homeless_cane_trasition%=7);
slotclick(81,l,false);
#homeless_cane_trasition=8;
break;
endif;
endif;
endif;
endif;
endif;
endif;
endif;
wait(50ms);
endif;
wait(50ms);
next;
if(%#homeless_cane_trasition%<8);
inc(#homeless_replace_chest);
if(%#homeless_replace_chest%=7);
#homeless_replace_chest=1;
log("&a&l[Macro]&f Reiniciando a busca por canas. &1- Homeless Macros");
wait(500ms);
endif;
else;
#homeless_done=1;
endif;
gui();
wait(500ms);
until(%#homeless_done%=1);
#homeless_replace=0;
endif;
}$$/home herbalismo$${
if(%#homeless_vip%=1);
wait(3);
else;
wait(7);
endif;
keydown(jump);
wait(1);
keyup(jump);
wait(1);
endif;
loop;
}$$