$${
TOGGLE(sleep_macro);
IF(sleep_macro);
LOG("&f&lAutoArmor &a&l[ON]");
LOG("");
SET(elmo_estoque);
SET(peito_estoque);
SET(calca_estoque);
SET(bota_estoque);
UNSET(autoarmor);
ELSE;
LOG("&f&lAutoArmor &c&l[OFF]");
LOG("");
STOP;
ENDIF;
DO;
IF((%HELMID%=0)&&(elmo_estoque));
SET(autoarmor);
SET(&armor_name,"&9Elmo");
SET(&arm_id,"diamond_helmet");
ELSEIF((%CHESTPLATEID%=0)&&(peito_estoque));
SET(autoarmor);
SET(&armor_name,"&9Peitoral");
SET(&arm_id,"diamond_chestplate");
ELSEIF((%LEGGINGSID%=0)&&(calca_estoque));
SET(autoarmor);
SET(&armor_name,"&9Calças");
SET(&arm_id,"diamond_leggings");
ELSEIF((%BOOTSID%=0)&&(bota_estoque));
SET(autoarmor);
SET(&armor_name,"&9Botas");
SET(&arm_id,"diamond_boots");
ENDIF;
IF(autoarmor);
GUI(INVENTORY);
IF(KEY_W);
KEYDOWN(FORWARD);
ELSEIF(KEY_S);
KEYDOWN(BACK);
ENDIF;
IF(KEY_A);
KEYDOWN(LEFT);
ELSEIF(KEY_D);
KEYDOWN(RIGHT);
ENDIF;
IF(SHIFT);
KEYDOWN(SNEAK);
ELSEIF(KEY_SPACE);
KEYDOWN(JUMP);
ENDIF;
IF(RMOUSE);
KEY(USE);
ENDIF;
GETSLOT(%&arm_id%,#sleep_slot,9);
IF(%#sleep_slot%=-1);
LOG("&e&l» %&armor_name% &7sem estoque.");
IF(%&arm_id%="diamond_helmet");
UNSET(elmo_estoque);
ELSEIF(%&arm_id%="diamond_chestplate");
UNSET(peito_estoque);
ELSEIF(%&arm_id%="diamond_leggings");
UNSET(calca_estoque);
ELSEIF(%&arm_id%="diamond_boots");
UNSET(bota_estoque);
ENDIF;
ELSE;
SLOTCLICK(%#sleep_slot%,L,TRUE);
LOG();
ENDIF;
GUI();
WAIT(15MS);
IF((!elmo_estoque)&&(!peito_estoque)&&(!calca_estoque)&&(!bota_estoque));
LOG("&fAutoArmor &c[OFF]");
TOGGLE(sleep_macro);
STOP;
ENDIF;
ENDIF;
UNSET(autoarmor);
LOOP;
}$$
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}