Facebook
From Aqua Camel, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 143
  1. $${
  2.  
  3. TOGGLE(sleep_macro);
  4.     IF(sleep_macro);
  5.         LOG("&f&lAutoArmor &a&l[ON]");
  6.         LOG("");
  7.         SET(elmo_estoque);
  8.         SET(peito_estoque);
  9.         SET(calca_estoque);
  10.         SET(bota_estoque);
  11.         UNSET(autoarmor);
  12.     ELSE;
  13.         LOG("&f&lAutoArmor &c&l[OFF]");
  14.         LOG("");
  15.         STOP;
  16.     ENDIF;
  17.  
  18.     DO;
  19.             IF((%HELMID%=0)&&(elmo_estoque));
  20.                 SET(autoarmor);
  21.                 SET(&armor_name,"&9Elmo");
  22.                 SET(&arm_id,"diamond_helmet");
  23.             ELSEIF((%CHESTPLATEID%=0)&&(peito_estoque));
  24.                 SET(autoarmor);
  25.                 SET(&armor_name,"&9Peitoral");
  26.                 SET(&arm_id,"diamond_chestplate");
  27.             ELSEIF((%LEGGINGSID%=0)&&(calca_estoque));
  28.                 SET(autoarmor);
  29.                 SET(&armor_name,"&9Calças");
  30.                 SET(&arm_id,"diamond_leggings");
  31.             ELSEIF((%BOOTSID%=0)&&(bota_estoque));
  32.                 SET(autoarmor);
  33.                 SET(&armor_name,"&9Botas");
  34.                 SET(&arm_id,"diamond_boots");
  35.             ENDIF;
  36.             IF(autoarmor);
  37.                 GUI(INVENTORY);
  38.                     IF(KEY_W);
  39.                         KEYDOWN(FORWARD);
  40.                     ELSEIF(KEY_S);
  41.                         KEYDOWN(BACK);
  42.                     ENDIF;
  43.                     IF(KEY_A);
  44.                         KEYDOWN(LEFT);
  45.                     ELSEIF(KEY_D);
  46.                         KEYDOWN(RIGHT);
  47.                     ENDIF;
  48.                     IF(SHIFT);
  49.                         KEYDOWN(SNEAK);
  50.                     ELSEIF(KEY_SPACE);
  51.                         KEYDOWN(JUMP);
  52.                     ENDIF;  
  53.                     IF(RMOUSE);
  54.                         KEY(USE);
  55.                     ENDIF;                  
  56.                 GETSLOT(%&arm_id%,#sleep_slot,9);
  57.                     IF(%#sleep_slot%=-1);
  58.                         LOG("&e&l» %&armor_name% &7sem estoque.");
  59.                             IF(%&arm_id%="diamond_helmet");
  60.                                 UNSET(elmo_estoque);
  61.                             ELSEIF(%&arm_id%="diamond_chestplate");
  62.                                 UNSET(peito_estoque);
  63.                             ELSEIF(%&arm_id%="diamond_leggings");
  64.                                 UNSET(calca_estoque);
  65.                             ELSEIF(%&arm_id%="diamond_boots");
  66.                                 UNSET(bota_estoque);
  67.                             ENDIF;
  68.                     ELSE;
  69.                         SLOTCLICK(%#sleep_slot%,L,TRUE);
  70.                         LOG();
  71.                     ENDIF;
  72.                 GUI();
  73.                 WAIT(15MS);  
  74.                     IF((!elmo_estoque)&&(!peito_estoque)&&(!calca_estoque)&&(!bota_estoque));
  75.                         LOG("&fAutoArmor &c[OFF]");
  76.                         TOGGLE(sleep_macro);
  77.                         STOP;                          
  78.                     ENDIF;                  
  79.             ENDIF;
  80.         UNSET(autoarmor);
  81.     LOOP;
  82.  
  83. }$$