O que a macro faz?
Mata, repara olhando para baixo e guarda no bau.
Como é a trap?
Ah trap pode ser qualquer uma que de para matar.
Como devo setar as homes?
As homes devem ser setadas como /home mob para matar mob e /home carne1 até carne10 na frente dois baus a onde a macro irar guarda os itens.
Á onde devo deixar os itens para matar/repara?
Bom, a espada vai ficar no slot 9 e o item para reparar no 8 pois a macro guarda todos os outros itens do inventario.
---Codigo---
$${
if(espada);
log("&5&l[Macro] &6&lKillMobs &4Off");
unset(espada);
stop();
else;
log("&5&l[Macro] &6&lKillMobs &b&lOn");
set(espada);
&dir = %DIRECTION%;
#bau=1;
set(nf);
ifmatches(%&dir%,N);&dir=NORTH;endif;
ifmatches(%&dir%,S);&dir=SOUTH;endif;
ifmatches(%&dir%,E);&dir=EAST;endif;
ifmatches(%&dir%,W);&dir=WEST;endif;
do;
pick(276);
if(%DURABILITY%<70);
look(0,90);
log("&4[Macro] &6 Durabilidade baixa, reparando...");
wait(500ms);
key(use);
wait(500ms);
key(use);}$$
/pvp off
$${log("&4[Macro] &6 Espada reparada!");
endif;
do(50);
look(%&dir%);
look(,-20);
wait(200ms);
key(attack);
loop;
if(nf);
wait(1);
gui(inventory);
wait(1);
getslotitem(35,#id,#stack);
if(%#stack%=0);
gui();
else;
do;
wait(1);}$$
$${if(%#bau%=1);}$$
/home carne1
$${endif;}$$
$${if(%#bau%=2);}$$
/home carne2
$${endif;}$$
$${if(%#bau%=3);}$$
/home carne3
$${endif;}$$
$${if(%#bau%=4);}$$
/home carne4
$${endif;}$$
$${if(%#bau%=5);}$$
/home carne5
$${endif;}$$
$${if(%#bau%=6);}$$
/home carne6
$${endif;}$$
$${if(%#bau%=7);}$$
/home carne7
$${endif;}$$
$${if(%#bau%=8);}$$
/home carne8
$${endif;}$$
$${if(%#bau%=9);}$$
/home carne9
$${endif;}$$
$${if(%#bau%=10);}$$
/home carne10
$${endif;}$$
$${wait(5);
key(use);
wait(1);
for(#i,54,87);
slotclick(%#i%,l,true);
wait(30ms);
next;
wait(500ms);
getslotitem(53,#id,#stack);
wait(500ms);
if(%#stack%!=0);
inc(#bau);
endif;
if(%#bau%=14);
unset(nf);
log("&4[Macro] &6Baús cheios! Apenas matará mobs agora.");
gui();
else;
gui();
endif;
until(%#stack%=0);}$$
/home mob
$${endif;
endif;
loop;
endif;
}$$