$${
if(sleeprepair);
log("&d&l[MACRO] &6Sleep Reparaçao v1 &4&l(OFF)");
ACHIEVEMENTGET("Desligando, by SLEEP",388:4);
unset(sleeprepair);
unset(sleepcheck);
unset(sleeplook);
stop();
else;
log("&d&l[MACRO] &6Sleep Reparaçao v1 &2&l(ON)");
ACHIEVEMENTGET("Iniciando, by SLEEP",264:4);
set(sleeprepair);
set(sleepcheck);
set(sleeplook);
endif;
IFMATCHES(%DIRECTION%,N);&sleeplook2=NORTH;endif;
IFMATCHES(%DIRECTION%,S);&sleeplook2=SOUTH;endif;
IFMATCHES(%DIRECTION%,W);&sleeplook2=WEST;endif;
IFMATCHES(%DIRECTION%,E);&sleeplook2=EAST;endif;
CLEARCHAT;
log("&0-----------------------------------")
log("&a-> &6Qual material é feita a enxada que tu usara para upar ??")
log( );
log("&a-> &9Madeira !! &9Responda &4[1]")
log("&a-> &9Pedra !! &9Responda &4[2]")
log("&a-> &9Ouro !! &9Responda &4[3]")
log("&a-> &9Ferro !! &9Responda &4[4]")
log("&a-> &9Diamante !! &9Responda &4[5]")
log("&0-----------------------------------")
log( );
PROMPT(#sleephoe,$$?,Insira o número correspondente a sua desejada opção !!);
if(%#sleephoe%=nothing);log("&4Stop !! Nao deixe em Branco.");unset(sleeprepair);unset(sleepcheck);unset(@sleeplook);stop();endif;
if(%#sleephoe%=1);#sleepitem=290;endif;
if(%#sleephoe%=2);#sleepitem=291;endif;
if(%#sleephoe%=3);#sleepitem=294;endif;
if(%#sleephoe%=4);#sleepitem=292;endif;
if(%#sleephoe%=5);#sleepitem=293;endif;
if(%#sleephoe%=1);#sleepitemrepair=5;endif;
if(%#sleephoe%=2);#sleepitemrepair=4;endif;
if(%#sleephoe%=3);#sleepitemrepair=266;endif;
if(%#sleephoe%=4);#sleepitemrepair=265;endif;
if(%#sleephoe%=5);#sleepitemrepair=264;endif;
if(%#sleephoe%=1);#sleephoedur=33;endif;
if(%#sleephoe%=2);#sleephoedur=39;endif;
if(%#sleephoe%=3);#sleephoedur=15;endif;
if(%#sleephoe%=4);#sleephoedur=65;endif;
if(%#sleephoe%=5);#sleephoedur=125;endif;
if(%#sleephoe%=1);log("");log("&a-> &6SrMacro configure para enxada de &aMadeira &6!!");&sleepitemname=Madeira;endif;
if(%#sleephoe%=2);log("");log("&a-> &6SrMacro configure para enxada de &aPedra &6!!");&sleepitemname=Pedra;endif;
if(%#sleephoe%=3);log("");log("&a-> &6SrMacro configure para enxada de &aOuro &6!!");&sleepitemname=Ouro;endif;
if(%#sleephoe%=4);log("");log("&a-> &6SrMacro configure para enxada de &aFerro &6!!");&sleepitemname=Ferro;endif;
if(%#sleephoe%=5);log("");log("&a-> &6SrMacro configure para enxada de &aDiamante &6!!");&sleepitemname=Diamante;endif;
log("");
log("&8-> &8Veja como deixar seu inventário:");
log("&7
http://i.imgur.com/t3nzmmk.png &8!!");
log("&8-> &8Veja como deve ficar a trap:");
log("&7
http://i.imgur.com/9h3fxs0.png &8!!");
log("");
unset(@sleepbook);
unset(@sleeplack);
do;
do;
do;
if(@sleepbook);
log("");
log("&8-> &7Livro Detectado !!");
log("&8-> &7Guardando...");
log("");
wait(600ms);
look(269,35);
wait(600ms);
key(attack);
wait(600ms);
key(use);
wait(4500ms);
for(#slotn,54,89);
GETSLOTITEM(%#slotn%,#id,#stack);
if((%#id%=%#sleepitem%) || (%#id%=%#sleepitemrepair%));
else;
slotclick(%#slotn%,l,true);
wait(185ms);
endif;
next;
wait(185ms);
getslotitem(53,#id,#stack);
wait(185ms);
if(%#stack%!=0);
endif;
until(%#stack%=0);
wait(600ms);
unset(@sleepbook);
gui();
wait(600ms);
look(89,298);
wait(600ms);
}$$/home sleeprep$${
log("");
log("&8-> &7Livro Guardado !!");
log("&8-> &7Continuando...");
log("");
endif;
if(@sleeplack);
log("");
log("&8-> &7%&sleepitemname% Faltando !!");
log("&8-> &7Resolvendo...");
log("");
}$$/home item$${wait(7);}$$/home item$${wait(7);
keydown(jump);wait(1);keyup(jump);wait(1);
wait(600ms);
gui(inventory);
wait(3);
#id=%#sleepitemrepair%;
do;
getslotitem(30,#id,#stack);
wait(185ms);
if(%#id%=%#sleepitemrepair%);
#tem=1;
else;
#tem=0;
endif;
gui(inventory);
wait(15ms);
key(use);
wait(300ms);
until(%#tem%=1);
wait(500ms);
gui();
unset(@sleeplack);
gui();
wait(600ms);
}$$/home sleeprep$${wait(7);}$$/home sleeprep$${wait(7);
keydown(jump);wait(1);keyup(jump);wait(1);
log("");
log("&8-> &7Itens Repostos !!");
log("&8-> &7Continuando...");
log("");
endif;
if(%DURABILITY%<%#sleephoedur%);look(%&sleeplook2%);look(,90);pick(%#sleepitem%);key(use);wait(900ms);endif;
look(89,298);key(use);wait(1ms);pick(%#sleepitem%);
if(%DURABILITY%<%#sleephoedur%);look(%&sleeplook2%);look(,90);pick(%#sleepitem%);key(use);wait(900ms);endif;
look(89,309);key(use);wait(1ms);pick(%#sleepitem%);
if(%DURABILITY%<%#sleephoedur%);look(%&sleeplook2%);look(,90);pick(%#sleepitem%);key(use);wait(900ms);endif;
look(89,330);key(use);wait(1ms);pick(%#sleepitem%);
if(%DURABILITY%<%#sleephoedur%);look(%&sleeplook2%);look(,90);pick(%#sleepitem%);key(use);wait(900ms);endif;
look(89,3);key(use);wait(1ms);pick(%#sleepitem%);
if(%DURABILITY%<%#sleephoedur%);look(%&sleeplook2%);look(,90);pick(%#sleepitem%);key(use);wait(900ms);endif;
look(89,330);key(use);wait(1ms);pick(%#sleepitem%);
if(%DURABILITY%<%#sleephoedur%);look(%&sleeplook2%);look(,90);pick(%#sleepitem%);key(use);wait(900ms);endif;
look(89,309);key(use);wait(1ms);pick(%#sleepitem%);
loop;
endif;
endif;
endif;
}$$