Facebook
From das, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 71
  1. $${
  2.     do;
  3.         //Mecanismo de liga e desliga
  4.         toggle(a);
  5.         if(!a);
  6.             log(off);
  7.             stop;
  8.         endif;
  9.         log(on);
  10.        
  11.         //tenta abrir um baú até que ele esteja aberto
  12.         log("abrindo um baú!");
  13.             do;
  14.             key(use);
  15.             wait(1)
  16.         until(%GUI%=="GUICHEST");
  17.        
  18.         //Itera os slots 0 a 53
  19.         for(#slot,0,53);
  20.             ifmatches(%ITEM%,"[a-zA-Z]");
  21.                 getslotitem(%#slot%,&oq);
  22.             else;
  23.                 getslotitem(%#slot%,#oq);
  24.                 set(&oq,"%#oq%");
  25.             endif;
  26.             ifmatches(%&oq%,"^52$|^glowstone_dust$");
  27.                 slotclick(%#slot%,l,true);
  28.                 wait(3t);
  29.             endif;
  30.         next;
  31.        
  32.         //Fica mandando fechar o baú e só sai do loop depois do baú estar fechado
  33.             wait(1);
  34.             gui();
  35.         until(%GUI%!="GUICHEST");
  36.         log("bau fechado!");
  37.        
  38.        
  39.         //Vai para a home
  40.         wait(2);
  41.         echo("/home up");
  42.         wait(2);
  43.        
  44.         //tenta abrir um baú até que ele esteja aberto
  45.         log("abrindo um báu à frente!");
  46.             key(use);
  47.             wait(2);
  48.         until(%GUI%=="GUICHEST");
  49.        
  50.         //Itera os slots 9 a 44
  51.         for(#slot,54,89);
  52.             ifmatches(%ITEM%,"[a-zA-Z]");
  53.                 getslotitem(%#slot%,&oq);
  54.             else;
  55.                 getslotitem(%#slot%,#oq);
  56.                 set(&oq,"%#oq%");
  57.             endif;
  58.             ifmatches(%&oq%,"^52$|^glowstone_dust$");
  59.                 slotclick(%#slot%,l,true);
  60.                 wait(3t);
  61.             endif;
  62.         next;
  63.        
  64.         //Fica mandando fechar o baú e só sai do loop depois do baú estar fechado
  65.             wait(2);
  66.             gui();
  67.         until(%GUI%!="GUICHEST");
  68.        
  69.         log("bau fechado!");
  70.  
  71. if(macro);
  72. unset(macro);
  73. log(Minerando OFF);
  74. endif;
  75. set(macro);
  76. wait(2);
  77. echo("/home bau");
  78. loop();
  79. }$$
  80.  
  81.  
  82.  
  83. $${
  84.             wait(2)
  85.             key(use);
  86.         until(%GUI%=="GUICHEST");
  87.        
  88.         //Itera os slots 0 a 53
  89.         for(#slot,0,53);
  90.             ifmatches(%ITEM%,"[a-zA-Z]");
  91.                 getslotitem(%#slot%,&oq);
  92.             else;
  93.                 getslotitem(%#slot%,#oq);
  94.                 set(&oq,"%#oq%");
  95.             endif;
  96.             ifmatches(%&oq%,"^52$|^coal$");
  97.                 slotclick(%#slot%,l,true);
  98.                 wait(3t);
  99.             endif;
  100.         next;
  101.        
  102.         //Fica mandando fechar o baú e só sai do loop depois do baú estar fechado
  103.             wait(2);
  104.             gui();
  105.         until(%GUI%!="GUICHEST");
  106.         log("bau fechado!");
  107.        
  108.        
  109.         //Vai para a home
  110.         wait(2);
  111.         echo("/home frag");
  112.         wait(2);
  113.        
  114.         //tenta abrir um baú até que ele esteja aberto
  115.         log("abrindo um báu à frente!");
  116.             key(use);
  117.             wait(2);
  118.         until(%GUI%=="GUICHEST");
  119.        
  120.         //Itera os slots 9 a 44
  121.         for(#slot,54,89);
  122.             ifmatches(%ITEM%,"[a-zA-Z]");
  123.                 getslotitem(%#slot%,&oq);
  124.             else;
  125.                 getslotitem(%#slot%,#oq);
  126.                 set(&oq,"%#oq%");
  127.             endif;
  128.             ifmatches(%&oq%,"^52$|^coal$");
  129.                 slotclick(%#slot%,l,true);
  130.                 wait(3t);
  131.             endif;
  132.         next;
  133.        
  134.         //Fica mandando fechar o baú e só sai do loop depois do baú estar fechado
  135.             wait(2);
  136.             gui();
  137.         until(%GUI%!="GUICHEST");
  138.        
  139.         log("bau fechado!");
  140.  
  141. if(macro);
  142. unset(macro);
  143. log(Minerando OFF);
  144. set(macro);
  145. wait(2);
  146. echo("/home bau");
  147. loop;
  148. endif;
  149. }$$