Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. $${
  2.  
  3. TOGGLE(sleep_macro);
  4. IF(sleep_macro);
  5. LOG("&6[AutoArmor] &aLigado");
  6. LOG("&e&l» &7Script desenvolvido por &9SLEEP&7.");
  7. SET(elmo_estoque);
  8. SET(peito_estoque);
  9. SET(calca_estoque);
  10. SET(bota_estoque);
  11. UNSET(autoarmor);
  12. ELSE;
  13. LOG("&6[AutoArmor] &cDesligado ");
  14. STOP;
  15. ENDIF;
  16.  
  17. DO;
  18. IF((%HELMID%=0)&&(elmo_estoque));
  19. SET(autoarmor);
  20. SET(&armor_name,"&9Elmo");
  21. SET(#arm_id,"310");
  22. ELSEIF((%CHESTPLATEID%=0)&&(peito_estoque));
  23. SET(autoarmor);
  24. SET(&armor_name,"&9Peitoral");
  25. SET(#arm_id,"311");
  26. ELSEIF((%LEGGINGSID%=0)&&(calca_estoque));
  27. SET(autoarmor);
  28. SET(&armor_name,"&9Calças");
  29. SET(#arm_id,"312");
  30. ELSEIF((%BOOTSID%=0)&&(bota_estoque));
  31. SET(autoarmor);
  32. SET(&armor_name,"&9Botas");
  33. SET(#arm_id,"313");
  34. ENDIF;
  35. IF(autoarmor);
  36. GUI(INVENTORY);
  37. IF(KEY_W);
  38. KEYDOWN(FORWARD);
  39. ELSEIF(KEY_S);
  40. KEYDOWN(BACK);
  41. ENDIF;
  42. IF(KEY_A);
  43. KEYDOWN(LEFT);
  44. ELSEIF(KEY_D);
  45. KEYDOWN(RIGHT);
  46. ENDIF;
  47. IF(SHIFT);
  48. KEYDOWN(SNEAK);
  49. ELSEIF(KEY_SPACE);
  50. KEYDOWN(JUMP);
  51. ENDIF;
  52. IF(RMOUSE);
  53. KEY(USE);
  54. ENDIF;
  55. GETSLOT(%#arm_id%,#sleep_slot,9);
  56. IF(%#sleep_slot%=-1);
  57. LOG("&e&l» %&armor_name% &7sem estoque.");
  58. IF(%#arm_id%=310);
  59. UNSET(elmo_estoque);
  60. ELSEIF(%#arm_id%=311);
  61. UNSET(peito_estoque);
  62. ELSEIF(%#arm_id%=312);
  63. UNSET(calca_estoque);
  64. ELSEIF(%#arm_id%=313);
  65. UNSET(bota_estoque);
  66. ENDIF;
  67. ELSE;
  68. SLOTCLICK(%#sleep_slot%,L,TRUE);
  69. LOG("&e&l» %&armor_name% &7equipado.");
  70. ENDIF;
  71. GUI();
  72. WAIT(15MS);
  73. IF((!elmo_estoque)&&(!peito_estoque)&&(!calca_estoque)&&(!bota_estoque));
  74. LOG("&6[AutoArmor] &cDesligado ");
  75. TOGGLE(sleep_macro);
  76. STOP;
  77. ENDIF;
  78. ENDIF;
  79. UNSET(autoarmor);
  80. LOOP;
  81.  
  82. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement