$${
if(cav);
unset(cav);
log( );
log("&6&l[VIP] &1Cava-Cava &4(OFF) &f- &aAproximadamente &a%#exp% de EXP.");
log( );
unset(@cav);
unset(@autoesc);
stop();
else;
set(cav);
log( );
log("&6&l[VIP] &1Cava-Cava &2(ON)");
log( );
set(@cav);
set(@autoesc);
IFMATCHES(%DIRECTION%,N);&near = NORTH;ENDIF;
IFMATCHES(%DIRECTION%,S);&near = SOUTH;ENDIF;
IFMATCHES(%DIRECTION%,W);&near = WEST;ENDIF;
IFMATCHES(%DIRECTION%,E);&near = EAST;ENDIF;
#nether = 0;
#exp = 0;
#bau = 1;
#repq=0;
&rep="diamond";
&pa="diamond_shovel"
&bloco="gravel";
look(%&near%);
look(,71);
set(cav2);
do;
do(350);
pick(%&bloco%);
key(use);
wait(1ms);
pick(%&pa%);
if(%DURABILITY%<30);
gui(inventory);
for(#i,9,45);
getslotitem(%#i%,&id,#stack1);
if(%&id%=%&rep%);
#repq=%#repq%+%#stack1%;
endif;
next;
wait(1);
gui();
if(%#repq%=0);
log( );
log("&6&l[VIP] &d&lCava-Cava &4(OFF) &dNão pôde reparar &f- &aAproximadamente &a%#exp% de EXP.");
log( );
unset(@cav);
unset(cav);
unset(cav2);
stop();
else(%#repq%>0%);
#repq=0;
look(%&near%);
look(,90);
key(use);
wait(2);
#repq=0;
endif;
endif;
endif;
look(%&near%);
look(,71);
if(%HITID%=%&bloco%);
key(attack);
inc(#exp, 1);
elseif(%HITID%="cake");
do(30);
look(%&near%);
look(,71);
key(attack);
wait(0.00000001ms);
loop;
elseif(%HITID%="netherrack");
do(80);
look(%&near%);
look(,71);
key(attack);
wait(0.00000001ms);
loop;
endif;
loop;
if(cav2);
gui(inventory);
wait(1);
getslotitem(35,&ida,#stack);
if(%#stack%=0);
else;
unset(@cav);
wait(1);
}$$/home esclixo$${
wait(3);
gui(inventory);
wait(300ms);
for(#lixo,9,35);
getslotitem(%#lixo%,&idl,#stackl);
if((%&idl%="cake")||(%&idl%="netherrack")||(%&idl%="record_wait")||(%&idl%="gunpowder"))
slotclick(%#lixo%,l,false);
wait(200ms);
slotclick(-999);
endif;
next;
do;
wait(1);
if(%#bau%=1);}$$/home bau1$${endif;
if(%#bau%=2);}$$/home bau2$${endif;
if(%#bau%=3);}$$/home bau3$${endif;
if(%#bau%=4);}$$/home bau4$${endif;
if(%#bau%=5);}$$/home bau5$${endif;
if(%#bau%=6);}$$/home bau6$${endif;
if(%#bau%=7);}$$/home bau7$${endif;
if(%#bau%=8);}$$/home bau8$${endif;
if(%#bau%=9);}$$/home bau9$${endif;
if(%#bau%=10);}$$/home bau10$${endif;
if(%#bau%=11);}$$/home bau11$${endif;
if(%#bau%=12);}$$/home bau12$${endif;
if(%#bau%=13);}$$/home bau13$${endif;
if(%#bau%=14);}$$/home bau14$${endif;
if(%#bau%=15);}$$/home bau15$${endif;
if(%#bau%=16);}$$/home bau16$${endif;
if(%#bau%=17);}$$/home bau17$${endif;
if(%#bau%=18);}$$/home bau18$${endif;
if(%#bau%=19);}$$/home bau19$${endif;
if(%#bau%=20);}$$/home bau20$${endif;
if(%#bau%=21);}$$/home bau21$${endif;
if(%#bau%=22);}$$/home bau22$${endif;
if(%#bau%=23);}$$/home bau23$${endif;
if(%#bau%=24);}$$/home bau24$${endif;
if(%#bau%=25);}$$/home bau25$${endif;
if(%#bau%=26);}$$/home bau26$${endif;
if(%#bau%=27);}$$/home bau27$${endif;
if(%#bau%=28);}$$/home bau28$${endif;
if(%#bau%=29);}$$/home bau29$${endif;
if(%#bau%=30);}$$/home bau30$${endif;
if(%#bau%=31);}$$/home bau31$${endif;
if(%#bau%=32);}$$/home bau32$${endif;
wait(5);
key(use);
wait(2);
for(#slotn,54,89);
GETSLOTITEM(%#slotn%,&id,#stack);
if((%&id%=%&pa%) || (%&id%=%&bloco%) || (%&id%=%&rep%));
else;
slotclick(%#slotn%,l,true);
wait(30ms);
slotclick(%#slotn%,l,true);
wait(30ms);
endif;
next;
wait(500ms);
getslotitem(53,#id,#stack);
wait(500ms);
if(%#stack%!=0);
inc(#bau);
endif;
if(%#bau%=33);
unset(cav2);
log(&d&l[MACRO] Cava-Cava &b"Baús cheios! Voltando a escavar.");
gui();
else;
gui();
endif;
set(@cav);
until(%#stack%=0);
}$$ /home macroesc $${
endif;//esse
endif;
gui(inventory);
wait(600ms);
for(#cli,36,45);
getslotitem(%#cli%,&ida,#stack);
if((%&ida%=%&bloco%)||(%&ida%=%&pa%));
else;
slotclick(%#cli%,l,true);
wait(50ms);
endif;
next;
wait(400ms);
for(#slot,9,35);
GETSLOTITEM(%#slot%,&id,#stack);
if((%&id%=%&pa%) || (%&id%=%&bloco%));
slotclick(%#slot%,l,true);
wait(30ms);
endif;
next;
getslotitem(35,&id35,#stack35);
if((%&id35%=%&bloco%)||(%&id35%=%&rep%));
slotclick(35,l,false);
wait(200ms);
slotclick(34,l,false);
wait(300ms);
endif;
gui();
loop;
endif;
}$$