$${
if(testebaus);
log(&fDesligado);
unset(testebaus);
stop();
else;
log(&aLigando);
set(testebaus);
#bau=1;
if(%#bau%=1);wait(100ms);
look(north);wait(100ms);
look(297,-30);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=2);wait(100ms);
look(north);wait(100ms);
look(307,-37);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=3);wait(100ms);
look(north);wait(100ms);
look(325,-45);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=4);wait(100ms);
look(north);wait(100ms);
look(360,-50);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=5);wait(100ms);
look(north);wait(100ms);
look(390,-45);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=6);wait(100ms);
look(north);wait(100ms);
look(410,-35);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=7);wait(100ms);
look(north);wait(100ms);
look(297,-15);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=8);wait(100ms);
look(north);wait(100ms);
look(307,-15);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=9);wait(100ms);
look(north);wait(100ms);
look(325,-15);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=10);wait(100ms);
look(north);wait(100ms);
look(360,-15);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=11);wait(100ms);
look(north);wait(100ms);
look(390,-15);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=12);wait(100ms);
look(north);wait(100ms);
look(410,-15);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=13);wait(100ms);
look(north);wait(100ms);
look(297,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=14);wait(100ms);
look(north);wait(100ms);
look(307,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=15);wait(100ms);
look(north);wait(100ms);
look(325,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=16);wait(100ms);
look(north);wait(100ms);
look(360,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=17);wait(100ms);
look(north);wait(100ms);
look(390,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=18);wait(100ms);
look(north);wait(100ms);
look(410,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=19);wait(100ms);
look(north);wait(100ms);
look(297,20);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=20);wait(100ms);
look(north);wait(100ms);
look(307,20);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=21);wait(100ms);
look(north);wait(100ms);
look(325,30);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=22);wait(100ms);
look(north);wait(100ms);
look(360,30);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=23);wait(100ms);
look(north);wait(100ms);
look(390,30);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=24);wait(100ms);
look(north);wait(100ms);
look(405,30);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=25);wait(100ms);
look(south);wait(100ms);
look(130,-40);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=26);wait(100ms);
look(south);wait(100ms);
look(150,-45);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=27);wait(100ms);
look(south);wait(100ms);
look(180,-45);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=28);wait(100ms);
look(south);wait(100ms);
look(210,-43);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=29);wait(100ms);
look(south);wait(100ms);
look(233,-35);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=30);wait(100ms);
look(south);wait(100ms);
look(244,-32);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=31);wait(100ms);
look(south);wait(100ms);
look(130,-17);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=32);wait(100ms);
look(south);wait(100ms);
look(150,-17);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=33);wait(100ms);
look(south);wait(100ms);
look(180,-15);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=34);wait(100ms);
look(south);wait(100ms);
look(210,-17);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=35);wait(100ms);
look(south);wait(100ms);
look(235,-17);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=36);wait(100ms);
look(south);wait(100ms);
look(244,-15);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=37);wait(100ms);
look(south);wait(100ms);
look(130,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=38);wait(100ms);
look(south);wait(100ms);
look(150,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=39);wait(100ms);
look(south);wait(100ms);
look(180,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=40);wait(100ms);
look(south);wait(100ms);
look(210,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=41);wait(100ms);
look(south);wait(100ms);
look(233,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=42);wait(100ms);
look(south);wait(100ms);
look(245,0);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=43);wait(100ms);
look(south);wait(100ms);
look(130,27);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=44);wait(100ms);
look(south);wait(100ms);
look(150,27);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=45);wait(100ms);
look(south);wait(100ms);
look(180,27);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=46);wait(100ms);
look(south);wait(100ms);
look(211,27);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=47);wait(100ms);
look(south);wait(100ms);
look(232,25);log(&3&l%#bau%);wait(1);endif;inc(#bau);
if(%#bau%=48);wait(100ms);
look(south);wait(100ms);
look(246,22);log(&3&l%#bau%);wait(1);endif;inc(#bau);
log(&aDESLIGADO);
unset(bauteste);
stop();
endif;
}$$
$${
if(sword1);
ACHIEVEMENTGET(Mata Mata Desativado,276);
unset(sword1);
stop();
else;
ACHIEVEMENTGET(Mata Mata Ativado,276)
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%<50);
look(0,90);
log("&4[Macro] &6Reparando...");
wait(500ms);
key(use);
wait(500ms);
key(use);
log("&4[Macro] &6Reparado...");
endif;
//#############################
do(70);
look(%&dir%);
look(,-20);
wait(200ms);
key(attack);
loop;
if(nf);
wait(1);
gui(inventory);
wait(1);
getslotitem(35,#id,#stack);
if(%#stack%=0);
gui()
else;
//############Guardando Itens..
wait(1);
}$$
/home baumob
$${
do;
wait(10);
if(%#bau%=1);wait(100ms);
look(north);wait(100ms);
look(297,-30);wait(1);endif;
if(%#bau%=2);wait(100ms);
look(north);wait(100ms);
look(307,-37);wait(1);endif;
if(%#bau%=3);wait(100ms);
look(north);wait(100ms);
look(325,-45);wait(1);endif;
if(%#bau%=4);wait(100ms);
look(north);wait(100ms);
look(360,-50);wait(1);endif;
if(%#bau%=5);wait(100ms);
look(north);wait(100ms);
look(390,-45);wait(1);endif;
if(%#bau%=6);wait(100ms);
look(north);wait(100ms);
look(410,-35);wait(1);endif;
if(%#bau%=7);wait(100ms);
look(north);wait(100ms);
look(297,-15);wait(1);endif;
if(%#bau%=8);wait(100ms);
look(north);wait(100ms);
look(307,-15);wait(1);endif;
if(%#bau%=9);wait(100ms);
look(north);wait(100ms);
look(325,-15);wait(1);endif;
if(%#bau%=10);wait(100ms);
look(north);wait(100ms);
look(360,-15);wait(1);endif;
if(%#bau%=11);wait(100ms);
look(north);wait(100ms);
look(390,-15);wait(1);endif;
if(%#bau%=12);wait(100ms);
look(north);wait(100ms);
look(410,-15);wait(1);endif;
if(%#bau%=13);wait(100ms);
look(north);wait(100ms);
look(297,0);wait(1);endif;
if(%#bau%=14);wait(100ms);
look(north);wait(100ms);
look(307,0);wait(1);endif;
if(%#bau%=15);wait(100ms);
look(north);wait(100ms);
look(325,0);wait(1);endif;
if(%#bau%=16);wait(100ms);
look(north);wait(100ms);
look(360,0);wait(1);endif;
if(%#bau%=17);wait(100ms);
look(north);wait(100ms);
look(390,0);wait(1);endif;
if(%#bau%=18);wait(100ms);
look(north);wait(100ms);
look(410,0);wait(1);endif;
if(%#bau%=19);wait(100ms);
look(north);wait(100ms);
look(297,20);wait(1);endif;
if(%#bau%=20);wait(100ms);
look(north);wait(100ms);
look(307,20);wait(1);endif;
if(%#bau%=21);wait(100ms);
look(north);wait(100ms);
look(325,30);wait(1);endif;
if(%#bau%=22);wait(100ms);
look(north);wait(100ms);
look(360,30);wait(1);endif;
if(%#bau%=23);wait(100ms);
look(north);wait(100ms);
look(390,30);wait(1);endif;
if(%#bau%=24);wait(100ms);
look(north);wait(100ms);
look(410,30);wait(1);endif;
if(%#bau%=25);wait(100ms);
look(south);wait(100ms);
look(130,-40);wait(1);endif;
if(%#bau%=26);wait(100ms);
look(south);wait(100ms);
look(150,-45);wait(1);endif;
if(%#bau%=27);wait(100ms);
look(south);wait(100ms);
look(180,-45);wait(1);endif;
if(%#bau%=28);wait(100ms);
look(south);wait(100ms);
look(210,-43);wait(1);endif;
if(%#bau%=29);wait(100ms);
look(south);wait(100ms);
look(233,-37);wait(1);endif;
if(%#bau%=30);wait(100ms);
look(south);wait(100ms);
look(242,-32);wait(1);endif;
if(%#bau%=31);wait(100ms);
look(south);wait(100ms);
look(130,-17);wait(1);endif;
if(%#bau%=32);wait(100ms);
look(south);wait(100ms);
look(150,-17);wait(1);endif;
if(%#bau%=33);wait(100ms);
look(south);wait(100ms);
look(180,-15);wait(1);endif;
if(%#bau%=34);wait(100ms);
look(south);wait(100ms);
look(210,-17);wait(1);endif;
if(%#bau%=35);wait(100ms);
look(south);wait(100ms);
look(235,-17);wait(1);endif;
if(%#bau%=36);wait(100ms);
look(south);wait(100ms);
look(244,-15);wait(1);endif;
if(%#bau%=37);wait(100ms);
look(south);wait(100ms);
look(130,0);wait(1);endif;
if(%#bau%=38);wait(100ms);
look(south);wait(100ms);
look(150,0);wait(1);endif;
if(%#bau%=39);wait(100ms);
look(south);wait(100ms);
look(180,0);wait(1);endif;
if(%#bau%=40);wait(100ms);
look(south);wait(100ms);
look(210,0);wait(1);endif;
if(%#bau%=41);wait(100ms);
look(south);wait(100ms);
look(233,0);wait(1);endif;
if(%#bau%=42);wait(100ms);
look(south);wait(100ms);
look(242,0);wait(1);endif;
if(%#bau%=43);wait(100ms);
look(south);wait(100ms);
look(130,27);wait(1);endif;
if(%#bau%=44);wait(100ms);
look(south);wait(100ms);
look(150,27);wait(1);endif;
if(%#bau%=45);wait(100ms);
look(south);wait(100ms);
look(180,27);wait(1);endif;
if(%#bau%=46);wait(100ms);
look(south);wait(100ms);
look(211,27);wait(1);endif;
if(%#bau%=47);wait(100ms);
look(south);wait(100ms);
look(232,25);wait(1);endif;
if(%#bau%=48);wait(100ms);
look(south);wait(100ms);
look(246,22);wait(1);endif;
//########################################
//########################################
//#### Abrindo Bau e colocando Itens.
wait(2);
key(use);
wait(2);
for(#i,54,80);
wait(40ms);
slotclick(%#i%,l,true);
next;
endif;
//##############Verificar se Bau Está cheio.
wait(500ms);
getslotitem(53,#id,#stack);
if(%#stack%!=0);
wait(100ms);
inc(#bau,1);
endif;
//######Verificar se TODOS os baús estão cheios.
if(%#bau%=48);
unset(baucheq);
wait(100ms);
gui();else;gui();
endif;
//#######Voltando a Matar mobs.
until(%#stack%=0);
wait(100ms);
}$$
/home mob
$${
wait(%#delay%);
endif;endif;
loop;
}$$