toma ai
16 baus /sethome bau1 ....
/home lixo - pra jogar itens foras (sete em frente a uma lava)
/home matar - seta aonde mata os pig
$${
if(sword1);
log("&4[Macro] &6Matar mobs desativado.");
unset(sword1);
stop();
else;
log("&4[Macro] &6Matar mobs ativado.");
set(sword1);
&dir = %DIRECTION%;
#bau=1;
set(nf);
ifmatches(%&dir%,N);&dir=NORTH;endif;
ifmatches(%&dir%,S);&dir=SOUTH;endif;
ifmatches(%&dir%,E);&dir=EAST;endif;
ifmatches(%&dir%,W);&dir=WEST;endif;
do;
PICK(276);
IF(%DURABILITY%<200);
LOOK(0,90);
log("&d[Macro] &f Durabilidade baixa, reparando !");
WAIT(50ms);
DO(2);
KEY(use);
log("&d[Macro] &f Espada reparada !");
WAIT(50ms);
LOOP;
ENDIF;
do(50);
pick(%&it%);
look(%&dir%);
look(,-20);
key(attack);
wait(19ms);
loop;
PRESS(e);
wait(100ms);
PRESS(e);
endif;
set(inventariocheq);
GETSLOTITEM(35,#id,#stack);
if(%#stack%!=0);
ARRAYSIZE(#li,#size);#size = #size - 1;
FOR(#y,0,%#size%);
POP(#li,#tempvar);
NEXT;
#tempvar = 0;
#li[] = 283;
log(&d[Macro] &fEsvaziando inventario ...);
}$$/home lixo$${
wait(2);
gui(inventory);
for(#slotn,9,44);
GETSLOTITEM(%#slotn%,#id,#stack);INDEXOF(#li,#index,%#id%);
IF((#index != -1) && (%#id% != 0));
SLOTCLICK(%#slotn%);SLOTCLICK(-999);WAIT(200ms);
ENDIF;
next;
gui();
LOOP;
}$$
$${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;}$$
$${wait(5);
key(use);
wait(1);
for(#i,54,87);
slotclick(%#i%,l,true);
wait(30ms);
next;
wait(500ms);
getslotitem(53,#id,#stack);
wait(500ms);
if(%#stack%!=0);
inc(#bau);
endif;
if(%#bau%=14);
unset(nf);
log("&4[Macro] &6Baús cheios! Apenas matará mobs agora.");
gui();
else;
gui();
endif;
until(%#stack%=0);}$$
/home matar
$${endif;
endif;
loop;
endif;
}$$