JohnnFF

Macro de Obsidian PREMIUM

Apr 4th, 2021
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 KB | None | 0 0
  1. $${
  2.  
  3. toggle(vender);
  4. if(vender);
  5. log("&5&l[OBSIDIAN] &a&lON");
  6.  
  7.  
  8.  
  9.  
  10. //// Variavies
  11.  
  12. &home=/home obsidian;
  13. #look=91,59;
  14. #idobsidian=49;
  15. #idchao=3;
  16. #redstone=331;
  17. #pic=278;
  18. #pedra=4;
  19. #slotpick=9;
  20. #slotred=7;
  21. #slotdima=8;
  22.  
  23.  
  24.  
  25. do;
  26.  
  27.  
  28.  
  29. echo("%&home%");
  30. gui;
  31. do(3);
  32. key(attack);
  33. wait(500ms);
  34. loop;
  35.  
  36. pick(278);
  37. wait(500ms);
  38. if(%DURABILITY%<150);
  39. wait(500ms);
  40. echo("/reparar");
  41. endif;
  42.  
  43. do(640);
  44.  
  45. look(271,59);
  46.  
  47.  
  48.  
  49.  
  50. if(%HITID%=%#idobsidian%);
  51. pick(%#pic%);
  52. do;
  53. key(attack);
  54. wait(-1t);
  55. until(%HITID%!=%#idobsidian%);
  56. endif;
  57.  
  58.  
  59. if(%HITID%=%#idchao%);
  60. wait(150ms);
  61. slot(%#slotred%);
  62. wait(100ms);
  63. key(use);
  64. endif;
  65.  
  66. if(%ITEM%=0);
  67. wait(150ms);
  68. echo("/home redstone");
  69. wait(2);
  70. gui(INVENTORY);
  71. wait(1);
  72. slotclick(6,l,true);
  73. wait(500ms);
  74. gui;
  75. wait(15ms);
  76. keydown(sneak);
  77. wait(250ms);
  78. echo("/esconder");
  79. wait(250ms);
  80. echo("/menuloja off");
  81. wait(250ms);
  82. key(use);
  83. wait(250ms);
  84. keyup(sneak);
  85. wait(1);
  86. echo("/home obsidian");
  87. wait(1);
  88. echo("/bench");
  89. wait(500ms);
  90. GETSLOT(331,#slot,0);
  91. slotclick(%#slot%);
  92. slotclick(43);
  93. wait(1);
  94. gui;
  95.  
  96. do(3);
  97. key(attack);
  98. wait(500ms);
  99. loop;
  100.  
  101. endif;
  102.  
  103. endif;
  104.  
  105.  
  106. if(%HITID%=%#pedra%);
  107. pick(%#pic%);
  108. do;
  109. key(attack);
  110. wait(-1t);
  111. until(%HITID%!=%#pedra%);
  112. endif;
  113.  
  114.  
  115. loop;
  116.  
  117.  
  118.  
  119. wait(1);
  120. log("&eVerificando o Inventario");
  121. wait(500ms);
  122. gui(INVENTORY);
  123. wait(1);
  124. GETSLOTITEM(34,#id,#stack,#data);
  125. wait(250ms);
  126.  
  127.  
  128. IF(%#stack%=64);
  129. wait(500ms);
  130. log("&cO Inventario esta cheio, indo guardar");
  131. gui;
  132. wait(1);
  133.  
  134. echo("/home guardar_obsidian");
  135. wait(2);
  136. look(SOUTH);
  137. gui(INVENTORY);
  138. wait(1);
  139. do(40);
  140. GETSLOT(4,#slot,0);
  141. slotclick(%#slot%);
  142. slotclick(-999);
  143. loop;
  144. wait(500ms);
  145. gui;
  146.  
  147.  
  148.  
  149.  
  150.  
  151. do;
  152. slot(6);
  153. wait(150ms);
  154. look(0,313); //// bau 1
  155. wait(250ms);
  156. key(use);
  157. wait(1);
  158.  
  159.  
  160. GETSLOTITEM(53,#id,#stack,#data);
  161. if(%#stack%=0);
  162. FOR(#inv,45,86)
  163. slotclick(%#inv%,l,true);
  164. NEXT;
  165. gui;
  166. elseif(%#stack%=64);
  167. gui;
  168. look(0,334); //// bau 2
  169. wait(250ms);
  170. key(use);
  171. wait(1);
  172. endif;
  173.  
  174.  
  175. GETSLOTITEM(53,#id,#stack,#data);
  176. if(%#stack%=0);
  177. FOR(#inv,45,86)
  178. slotclick(%#inv%,l,true);
  179. NEXT;
  180. gui;
  181. elseif(%#stack%=64);
  182. gui;
  183. look(0,7); //// bau 3
  184. wait(250ms);
  185. key(use);
  186. wait(1);
  187. endif;
  188.  
  189.  
  190. GETSLOTITEM(53,#id,#stack,#data);
  191. if(%#stack%=0);
  192. FOR(#inv,45,86)
  193. slotclick(%#inv%,l,true);
  194. NEXT;
  195. gui;
  196. look(0,33); //// bau 4
  197. wait(250ms);
  198. key(use);
  199. wait(1);
  200. endif;
  201.  
  202.  
  203. GETSLOTITEM(53,#id,#stack,#data);
  204. if(%#stack%=0);
  205. FOR(#inv,45,86)
  206. slotclick(%#inv%,l,true);
  207. NEXT;
  208. gui;
  209. elseif(%#stack%=64);
  210. gui;
  211. look(0,50); //// bau 5
  212. wait(250ms);
  213. key(use);
  214. wait(1);
  215. endif;
  216.  
  217.  
  218. GETSLOTITEM(53,#id,#stack,#data);
  219. if(%#stack%=0);
  220. FOR(#inv,45,86)
  221. slotclick(%#inv%,l,true);
  222. NEXT;
  223. gui;
  224. elseif(%#stack%=64);
  225. gui;
  226. look(NORTH);
  227. wait(500ms);
  228. keydown(sneak);
  229. keydown(right);
  230. wait(750ms);
  231. keyup(sneak);
  232. keyup(right);
  233. wait(1);
  234. echo("/sethome guardar_obsidian");
  235. wait(250ms);
  236. echo("/sethome guardar_obsidian");
  237. endif;
  238. endif;
  239.  
  240.  
  241. until(%ITEM%=0);
  242.  
  243. endif;
  244. endif;
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257. loop;
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264. else;
  265. log("&5&l[OBSIDIAN] &c&lOFF");
  266. stop;
  267. endif;
  268. }$$
  269.  
Advertisement
Add Comment
Please, Sign In to add comment