Preste atenção ao copiar o código, pois caso esqueça um '$' ou qualquer outro caractere, pode ocasionar bugs.
Código 1.5
$${
IF(sleepmacro);
LOG("&4&l[Macro] &6SleepClicker &4[OFF]");
ACHIEVEMENTGET("(Up 0) Macro [OFF]",35:14);
UNSET(sleepmacro);
STOP();
ELSE;
LOG("&2&l[Macro] &6SleepClicker &2[ON]");
ACHIEVEMENTGET("(Up 0) Macro [ON]",35:5);
SET(sleepmacro);
ENDIF;
#sleep_id_arco=261;
#sleep_id_dsword=276;
#sleep_id_fsword=267;
#sleep_id_osword=283;
#sleep_id_psword=272;
#sleep_id_msword=268;
#sleep_id_daxe=279;
#sleep_id_faxe=258;
#sleep_id_oaxe=286;
#sleep_id_paxe=275;
#sleep_id_maxe=271;
DO;
IF((%ITEM%=%#sleep_id_dsword%) || (%ITEM%=%#sleep_id_fsword%) || (%ITEM%=%#sleep_id_osword%) || (%ITEM%=%#sleep_id_psword%) || (%ITEM%=%#sleep_id_msword%));
DO;
KEY(ATTACK);
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
IF(%#sleep_inv_true%=1);
LOG("&4 [!] &7Inventário aberto, defendendo &4[!]");
DO;
PICK(%#sleep_id_dsword%,%#sleep_id_fsword%,%#sleep_id_osword%,%#sleep_id_psword%,%#sleep_id_msword%);
IF((%ITEM%=%#sleep_id_dsword%) || (%ITEM%=%#sleep_id_fsword%) || (%ITEM%=%#sleep_id_osword%) || (%ITEM%=%#sleep_id_psword%) || (%ITEM%=%#sleep_id_msword%));
KEY(USE);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
UNTIL(%#sleep_inv_true%=2);
PICK(%#sleep_id_dsword%,%#sleep_id_fsword%,%#sleep_id_osword%,%#sleep_id_psword%,%#sleep_id_msword%);
LOG("&4 [!] &7Inventário fechado, atacando &4[!]");
ENDIF;
UNTIL((%ITEM%!=%#sleep_id_dsword%) || (%ITEM%!=%#sleep_id_fsword%) || (%ITEM%!=%#sleep_id_osword%) || (%ITEM%!=%#sleep_id_psword%) || (%ITEM%!=%#sleep_id_msword%));
ENDIF;
IF((%ITEM%=%#sleep_id_daxe%) || (%ITEM%=%#sleep_id_faxe%) || (%ITEM%=%#sleep_id_fsword%) || (%ITEM%=%#sleep_id_oaxe%) || (%ITEM%=%#sleep_id_paxe%) || (%ITEM%=%#sleep_id_maxe%));
DO;
KEY(ATTACK);
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
IF(%#sleep_inv_true%=1);
LOG("&4 [!] &7Inventário aberto, defendendo &4[!]");
DO;
PICK(%#sleep_id_dsword%,%#sleep_id_fsword%,%#sleep_id_osword%,%#sleep_id_psword%,%#sleep_id_msword%);
IF((%ITEM%=%#sleep_id_dsword%) || (%ITEM%=%#sleep_id_fsword%) || (%ITEM%=%#sleep_id_osword%) || (%ITEM%=%#sleep_id_psword%) || (%ITEM%=%#sleep_id_msword%));
PICK(%#sleep_id_dsword%,%#sleep_id_fsword%,%#sleep_id_osword%,%#sleep_id_psword%,%#sleep_id_msword%);
KEY(USE);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
UNTIL(%#sleep_inv_true%=2);
LOG("&4 [!] &7Inventário fechado, atacando &4[!]");
ENDIF;
UNTIL((%ITEM%!=%#sleep_id_daxe%) || (%ITEM%!=%#sleep_id_faxe%) || (%ITEM%!=%#sleep_id_oaxe%) || (%ITEM%!=%#sleep_id_paxe%) || (%ITEM%!=%#sleep_id_maxe%));
ENDIF;
IF(%ITEM%=%#sleep_id_arco%);
DO;
DO(18);
KEY(USE);
WHILE(%ITEM%=%#sleep_id_arco%);
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
IF(%#sleep_inv_true%=1);
LOG("&4 [!] &7Inventário aberto, defendendo &4[!]");
DO;
PICK(%#sleep_id_dsword%,%#sleep_id_fsword%,%#sleep_id_osword%,%#sleep_id_psword%,%#sleep_id_msword%);
IF((%ITEM%=%#sleep_id_dsword%) || (%ITEM%=%#sleep_id_fsword%) || (%ITEM%=%#sleep_id_osword%) || (%ITEM%=%#sleep_id_psword%) || (%ITEM%=%#sleep_id_msword%));
KEY(USE);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
UNTIL(%#sleep_inv_true%=2);
PICK(%#sleep_id_arco%);
LOG("&4 [!] &7Inventário fechado, atacando &4[!]");
ENDIF;
UNTIL(%ITEM%!=%#sleep_id_arco%);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
IF(%#sleep_inv_true%=1);
LOG("&4 [!] &7Inventário aberto, defendendo &4[!]");
DO;
PICK(%#sleep_id_dsword%,%#sleep_id_fsword%,%#sleep_id_osword%,%#sleep_id_psword%,%#sleep_id_msword%);
IF((%ITEM%=%#sleep_id_dsword%) || (%ITEM%=%#sleep_id_fsword%) || (%ITEM%=%#sleep_id_osword%) || (%ITEM%=%#sleep_id_psword%) || (%ITEM%=%#sleep_id_msword%));
KEY(USE);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
UNTIL(%#sleep_inv_true%=2);
PICK(%#sleep_id_dsword%,%#sleep_id_fsword%,%#sleep_id_osword%,%#sleep_id_psword%,%#sleep_id_msword%);
LOG("&4 [!] &7Inventário fechado, atacando &4[!]");
ENDIF;
LOOP;
}$$
Código 1.7/1.8
$${
IF(sleepmacro);
LOG("&4&l[Macro] &6SleepClicker &4[OFF]");
ACHIEVEMENTGET("(Up 0) Macro [OFF]",wool:14);
UNSET(sleepmacro);
STOP();
ELSE;
LOG("&2&l[Macro] &6SleepClicker &2[ON]");
ACHIEVEMENTGET("(Up 0) Macro [ON]",wool:5);
SET(sleepmacro);
ENDIF;
&sleep_id_arco="bow";
&sleep_id_dsword="diamond_sword";
&sleep_id_fsword="iron_sword";
&sleep_id_osword="golden_sword";
&sleep_id_psword="stone_sword";
&sleep_id_msword="wooden_sword";
&sleep_id_daxe="diamond_axe";
&sleep_id_faxe="iron_axe";
&sleep_id_oaxe="golden_axe";
&sleep_id_paxe="stone_axe";
&sleep_id_maxe="wooden_axe";
DO;
IF((%ITEM%=%&sleep_id_dsword%) || (%ITEM%=%&sleep_id_fsword%) || (%ITEM%=%&sleep_id_osword%) || (%ITEM%=%&sleep_id_psword%) || (%ITEM%=%&sleep_id_msword%));
DO;
KEY(ATTACK);
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
IF(%#sleep_inv_true%=1);
LOG("&4 [!] &7Inventário aberto, defendendo &4[!]");
DO;
PICK(%&sleep_id_dsword%,%&sleep_id_fsword%,%&sleep_id_osword%,%&sleep_id_psword%,%&sleep_id_msword%);
IF((%ITEM%=%&sleep_id_dsword%) || (%ITEM%=%&sleep_id_fsword%) || (%ITEM%=%&sleep_id_osword%) || (%ITEM%=%&sleep_id_psword%) || (%ITEM%=%&sleep_id_msword%));
KEY(USE);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
UNTIL(%#sleep_inv_true%=2);
PICK(%&sleep_id_dsword%,%&sleep_id_fsword%,%&sleep_id_osword%,%&sleep_id_psword%,%&sleep_id_msword%);
LOG("&4 [!] &7Inventário fechado, atacando &4[!]");
ENDIF;
UNTIL((%ITEM%!=%&sleep_id_dsword%) || (%ITEM%!=%&sleep_id_fsword%) || (%ITEM%!=%&sleep_id_osword%) || (%ITEM%!=%&sleep_id_psword%) || (%ITEM%!=%&sleep_id_msword%));
ENDIF;
IF((%ITEM%=%&sleep_id_daxe%) || (%ITEM%=%&sleep_id_faxe%) || (%ITEM%=%&sleep_id_fsword%) || (%ITEM%=%&sleep_id_oaxe%) || (%ITEM%=%&sleep_id_paxe%) || (%ITEM%=%&sleep_id_maxe%));
DO;
KEY(ATTACK);
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
IF(%#sleep_inv_true%=1);
LOG("&4 [!] &7Inventário aberto, defendendo &4[!]");
DO;
PICK(%&sleep_id_dsword%,%&sleep_id_fsword%,%&sleep_id_osword%,%&sleep_id_psword%,%&sleep_id_msword%);
IF((%ITEM%=%&sleep_id_dsword%) || (%ITEM%=%&sleep_id_fsword%) || (%ITEM%=%&sleep_id_osword%) || (%ITEM%=%&sleep_id_psword%) || (%ITEM%=%&sleep_id_msword%));
PICK(%&sleep_id_dsword%,%&sleep_id_fsword%,%&sleep_id_osword%,%&sleep_id_psword%,%&sleep_id_msword%);
KEY(USE);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
UNTIL(%#sleep_inv_true%=2);
LOG("&4 [!] &7Inventário fechado, atacando &4[!]");
ENDIF;
UNTIL((%ITEM%!=%&sleep_id_daxe%) || (%ITEM%!=%&sleep_id_faxe%) || (%ITEM%!=%&sleep_id_oaxe%) || (%ITEM%!=%&sleep_id_paxe%) || (%ITEM%!=%&sleep_id_maxe%));
ENDIF;
IF(%ITEM%=%&sleep_id_arco%);
DO;
DO(18);
KEY(USE);
WHILE(%ITEM%=%&sleep_id_arco%);
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
IF(%#sleep_inv_true%=1);
LOG("&4 [!] &7Inventário aberto, defendendo &4[!]");
DO;
PICK(%&sleep_id_dsword%,%&sleep_id_fsword%,%&sleep_id_osword%,%&sleep_id_psword%,%&sleep_id_msword%);
IF((%ITEM%=%&sleep_id_dsword%) || (%ITEM%=%&sleep_id_fsword%) || (%ITEM%=%&sleep_id_osword%) || (%ITEM%=%&sleep_id_psword%) || (%ITEM%=%&sleep_id_msword%));
KEY(USE);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
UNTIL(%#sleep_inv_true%=2);
PICK(%&sleep_id_arco%);
LOG("&4 [!] &7Inventário fechado, atacando &4[!]");
ENDIF;
UNTIL(%ITEM%!=%&sleep_id_arco%);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
IF(%#sleep_inv_true%=1);
LOG("&4 [!] &7Inventário aberto, defendendo &4[!]");
DO;
PICK(%&sleep_id_dsword%,%&sleep_id_fsword%,%&sleep_id_osword%,%&sleep_id_psword%,%&sleep_id_msword%);
IF((%ITEM%=%&sleep_id_dsword%) || (%ITEM%=%&sleep_id_fsword%) || (%ITEM%=%&sleep_id_osword%) || (%ITEM%=%&sleep_id_psword%) || (%ITEM%=%&sleep_id_msword%));
KEY(USE);
ENDIF;
IFMATCHES(%GUI%,INVENTORY);
#sleep_inv_true=1;
ELSE;
#sleep_inv_true=2;
ENDIF;
UNTIL(%#sleep_inv_true%=2);
PICK(%&sleep_id_dsword%,%&sleep_id_fsword%,%&sleep_id_osword%,%&sleep_id_psword%,%&sleep_id_msword%);
LOG("&4 [!] &7Inventário fechado, atacando &4[!]");
ENDIF;
LOOP;
}$$
Um pouco mais pequeno e diferente do famoso
autosing né?