*25/03/2015 correção de bugs.
*12/04/2015 não joga mais livro do tesouro fora.
*21/04/2015 Editado para funcionar nos outros servidores 1.7.2.
*21/04/2015 Parte para Não Vips adicionada ao final do tópico.
*03/05/2015 Nova disposição dos baús para o novo sistema de Homes.
[M]acro de Pigman VIP e Não VIP
•[I]ntrodução
- Este Macro foi desenvolvido por mim,podendo tanto ser usado por Vips e Não Vips.
Facilitando os drops para mob trap para os Zombie Pigman,que além de matar,guardar os itens,reparar a espada(Para os Vips) ele joga fora as espadas de ouro.
ATENÇÃO:SÓ É POSSIVEL UTILIZAR ESPADAS DE FERRO E DIAMANTE,
ASSIM COMO CARNE DE PORCO E VACA COMO ALIMENTO.
•[S]ethome
- Serão utilizados esses três:
/sethome pigman
/sethome lixo
/sethome baupigman
•[T]utorial
- Esquema do inventário:
- Posicionamento dos Baús:
#Aviso: Nova disposição dos baús,sua nova forma nos revela uma maior quantidade de baús
para utilizarmos,em uma área de 7x5.
Em uma das partes com 7 baús,exatamente no meio,de baixo pra cima quebre 2 baús,ficando
como se fosse uma porta.
•Os baús deveram estar dispostos dessa maneira:
•Você deverá ficar exatamente no meio dos baús,e a olhar para a porta feita anteriormente e dar /sethome baupigman:
$${
if(rogroote);
log("&4[Macro] &6Matar mobs desativado.");
log("&4[Macro] &2Obrigado por usar meu macro ASS: &bROGROOTE - REGION 2.0.");
unset(rogroote);
stop();
else;
log("&4[Macro] &6Matar mobs ativado.");
log("&4[Macro] &2Obrigado por usar meu macro ASS: &bROGROOTE - REGION 2.0.");
set(rogroote);
&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;
PROMPT(&comida,$$i, Que tipo de comida irá ser usada?);
PROMPT(&espada,$$i, Que tipo de espada irá ser usada?);
do();
// Verifica durabilidade
slot(9);
if(%DURABILITY%<70);
look(,90);
log("&4[Macro] &6 Durabilidade baixa, reparando...");
wait(200ms);
key(use);
wait(200ms);
key(use);
log("&4[Macro] &6 Espada reparada!");
endif;
if(%DURABILITY%<30);
unset(rogroote);
}$$/home$${
log("&4[Macro] &6Matar mobs desativado.");
log("&4[Macro] &2Obrigado por usar meu macro ASS: &bROGROOTE - REGION 2.0.");
stop();
endif;
// Comendo
if(%HUNGER%<17);
slot(8);
wait(10ms);
#st=%STACKSIZE%;
do;
key(use);
until(%STACKSIZE%<%#st%);
endif;
if(HEALTH<=5);
unset(rogroote);
}$$/home$${
log("&4[Macro] &6Matar mobs desativado.");
log("&4[Macro] &2Obrigado por usar meu macro ASS: &bROGROOTE - REGION 2.0.");
stop();
endif;
slot(9);
// Matando Pigman
do(300);
SET(&hit, %HIT%);
SET(&target, ENTITY);
look(,318);
IF(&hit = &target);
key(attack);endif;
loop;
next;
// Verificando inventário
if(nf);
wait(1);
gui(inventory);
wait(1);
GETSLOTITEM(35,#id,#stack);
IF(%#stack%=0);
gui();
else;
// Jogando espadas de ouro fora.
}$$/home lixo$${
wait(7);
&itens=diamond_sword|Iron_sword|Written_Book|%&comida%|%&espada%|Gold_Nugget|Rotten_Flesh|Gold_Ingot|iron_Ingot|diamond|Cooked_Porkchop|Cooked_Chicken|Steak;
gui(inventory);
for(#i,9,44);
getslotitem(%#i%,&id,#stack);
ifmatches(%&id%,%&itens%);
else;
slotclick(%#i%);
slotclick(-999);
wait(50ms);
endif;
wait(3);
next;
// Indo para os baus.
}$$/home baupigman$${
wait(7);
do;
until((%XPOS%!=%#nposx1%)|(%ZPOS%!=%#nposx2%));
keydown(jump);wait(100ms);keyup(jump);wait(1);
&dir=%DIRECTION%;
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;
look(%&dir%);
if(%#bau%=1);look(-50,-24);endif;
if(%#bau%=2);look(-39,-28);endif;
if(%#bau%=3);look(-23,-32);endif;
if(%#bau%=4);look(+1,-34);endif;
if(%#bau%=5);look(+23,-32);endif;
if(%#bau%=6);look(+39,-28);endif;
if(%#bau%=7);look(+50,-24);endif;
if(%#bau%=8);look(+61,-23);endif;
if(%#bau%=9);look(+74,-24);endif;
if(%#bau%=10);look(+91,-26);endif;
if(%#bau%=11);look(+104,-25);endif;
if(%#bau%=12);look(+120,-23);endif;
if(%#bau%=13);look(+130,-24);endif;
if(%#bau%=14);look(+141,-28);endif;
if(%#bau%=15);look(+158,-32);endif;
if(%#bau%=16);look(-179,-34);endif;
if(%#bau%=17);look(-159,-32);endif;
if(%#bau%=18);look(-143,-27);endif;
if(%#bau%=19);look(-131,-24);endif;
if(%#bau%=20);look(-120,-23);endif;
if(%#bau%=21);look(-106,-24);endif;
if(%#bau%=22);look(-89,-26);endif;
if(%#bau%=23);look(-75,-25);endif;
if(%#bau%=24);look(-61,-23);endif;
if(%#bau%=25);look(-50,-10);endif;
if(%#bau%=26);look(-39,-12);endif;
if(%#bau%=27);look(-23,-14);endif;
if(%#bau%=28);look(+1,-16);endif;
if(%#bau%=29);look(+23,-14);endif;
if(%#bau%=30);look(+39,-12);endif;
if(%#bau%=31);look(+50,-10);endif;
if(%#bau%=32);look(+61,-10);endif;
if(%#bau%=33);look(+74,-11);endif;
if(%#bau%=34);look(+91,-11);endif;
if(%#bau%=35);look(+104,-11);endif;
if(%#bau%=36);look(+120,-10);endif;
if(%#bau%=37);look(+130,-10);endif;
if(%#bau%=38);look(+141,-12);endif;
if(%#bau%=39);look(+158,-14);endif;
if(%#bau%=40);look(-179,-16);endif;
if(%#bau%=41);look(-159,-14);endif;
if(%#bau%=42);look(-143,-12);endif;
if(%#bau%=43);look(-131,-10);endif;
if(%#bau%=44);look(-120,-10);endif;
if(%#bau%=45);look(-106,-11);endif;
if(%#bau%=46);look(-89,-11);endif;
if(%#bau%=47);look(-75,-11);endif;
if(%#bau%=48);look(-61,-10);endif;
if(%#bau%=49);look(-50,+4);endif;
if(%#bau%=50);look(-39,+4);endif;
if(%#bau%=51);look(-23,+4);endif;
if(%#bau%=52);look(+23,+4);endif;
if(%#bau%=53);look(+39,+4);endif;
if(%#bau%=54);look(+50,+4);endif;
if(%#bau%=55);look(+61,+4);endif;
if(%#bau%=56);look(+74,+4);endif;
if(%#bau%=57);look(+91,+4);endif;
if(%#bau%=58);look(+104,+4);endif;
if(%#bau%=59);look(+120,+4);endif;
if(%#bau%=60);look(+130,+4);endif;
if(%#bau%=61);look(+141,+4);endif;
if(%#bau%=62);look(+158,+4);endif;
if(%#bau%=63);look(-179,+4);endif;
if(%#bau%=64);look(-159,+4);endif;
if(%#bau%=65);look(-143,+4);endif;
if(%#bau%=66);look(-131,+4);endif;
if(%#bau%=67);look(-120,+4);endif;
if(%#bau%=68);look(-106,+4);endif;
if(%#bau%=69);look(-89,+4);endif;
if(%#bau%=70);look(-75,+4);endif;
if(%#bau%=71);look(-61,+4);endif;
if(%#bau%=72);look(-50,+16);endif;
if(%#bau%=73);look(-39,+20);endif;
if(%#bau%=74);look(-23,+22);endif;
if(%#bau%=75);look(+23,+22);endif;
if(%#bau%=76);look(+39,+20);endif;
if(%#bau%=77);look(+50,+16);endif;
if(%#bau%=78);look(+61,+16);endif;
if(%#bau%=79);look(+74,+18);endif;
if(%#bau%=80);look(+91,+18);endif;
if(%#bau%=81);look(+104,+18);endif;
if(%#bau%=82);look(+120,+16);endif;
if(%#bau%=83);look(+130,+16);endif;
if(%#bau%=84);look(+141,+20);endif;
if(%#bau%=85);look(+158,+22);endif;
if(%#bau%=86);look(-179,+24);endif;
if(%#bau%=87);look(-159,+22);endif;
if(%#bau%=88);look(-143,+20);endif;
if(%#bau%=89);look(-131,+16);endif;
if(%#bau%=90);look(-120,+17);endif;
if(%#bau%=91);look(-106,+18);endif;
if(%#bau%=92);look(-89,+19);endif;
if(%#bau%=93);look(-75,+18);endif;
if(%#bau%=94);look(-61,+17);endif;
wait(1);
// Guardando ítens nos baus.
wait(5);
key(use);
wait(1);
for(#i,54,86);
slotclick(%#i%,l,true);
wait(30ms);
next;
wait(500ms);
getslotitem(53,#id,#stack);
wait(500ms);
if(%#stack%!=0);
inc(#bau);
endif;
if(%#bau%=94);
unset(nf);
log("&4[Macro] &6Baús cheios! Apenas irá matar mobs agora.");
gui();
else;
gui();
endif;
until(%#stack%=0);
}$$/home pigman$${
wait(5);
endif;
endif;
loop;loop;
loop;
loop;
endif;
}$$
$${
if(rogroote);
log("&4[Macro] &6Matar mobs desativado.");
log("&4[Macro] &2Obrigado por usar meu macro ASS: &bROGROOTE - REGION 2.0.");
unset(rogroote);
stop();
else;
log("&4[Macro] &6Matar mobs ativado.");
log("&4[Macro] &2Obrigado por usar meu macro ASS: &bROGROOTE - REGION 2.0.");
set(rogroote);
&dir = %DIRECTION%;
#bau=1;
set(nf);
#rod=3;
ifmatches(%&dir%,N);&dir=NORTH;endif;
ifmatches(%&dir%,S);&dir=SOUTH;endif;
ifmatches(%&dir%,E);&dir=EAST;endif;
ifmatches(%&dir%,W);&dir=WEST;endif;
PROMPT(&comida,$$i, Que tipo de comida irá ser usada?);
PROMPT(&espada,$$i, Que tipo de ferramenta irá ser usada?);
do();
// Comendo
if(%HUNGER%<17);
pick(%&comida%);
wait(10ms);
#st=%STACKSIZE%;
do;
key(use);
until(%STACKSIZE%<%#st%);
endif;
if(HEALTH<=5);
unset(rogroote);}$$
/home
$${log("&4[Macro] &6Matar mobs desativado.");
log("&4[Macro] &2Obrigado por usar meu macro ASS: &bROGROOTE - REGION 2.0.");
stop();
endif;
slot(%#rod%);
// Matando Pigman
do(300);
SET(&hit, %HIT%);
SET(&target, ENTITY);
look(,318);
IF(&hit = &target);
key(attack);endif;
slot(%#rod%);
if(DURABILITY<100);
inc(#rod);
endif;
if(%#rod%=10);}$$
/home
$${log("&2Todas as espadas estão no &4red &2repareas ou as troque.");
log("&4[Macro] &6Matar mobs desativado.");
log("&4[Macro] &2Obrigado por usar meu macro ASS: &bROGROOTE - REGION 2.0.");
unset(rogroote);
stop();
endif;
loop;
next;
// Verificando inventário
if(nf);
wait(1);
gui(inventory);
wait(1);
GETSLOTITEM(35,#id,#stack);
IF(%#stack%=0);
gui();
else;
// Jogando espadas de ouro fora.
}$$/home lixo$${
wait(7);
&itens=diamond_sword|%&comida%|Written_Book|%&espada%|Iron_sword|Gold_Nugget|Rotten_Flesh|Gold_Ingot|iron_Ingot|diamond|Cooked_Porkchop|Cooked_Chicken|Steak;
gui(inventory);
for(#i,9,44);
getslotitem(%#i%,&id,#stack);
ifmatches(%&id%,%&itens%);
else;
slotclick(%#i%);
slotclick(-999);
wait(50ms);
endif;
next;
wait(3);
// Indo para os baus.
}$$
/home baupigman
$${
wait(7);
do;
until((%XPOS%!=%#nposx1%)|(%ZPOS%!=%#nposx2%));
keydown(jump);wait(100ms);keyup(jump);wait(1);
&dir=%DIRECTION%;
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;
look(%&dir%);
if(%#bau%=1);look(-50,-24);endif;
if(%#bau%=2);look(-39,-28);endif;
if(%#bau%=3);look(-23,-32);endif;
if(%#bau%=4);look(+1,-34);endif;
if(%#bau%=5);look(+23,-32);endif;
if(%#bau%=6);look(+39,-28);endif;
if(%#bau%=7);look(+50,-24);endif;
if(%#bau%=8);look(+61,-23);endif;
if(%#bau%=9);look(+74,-24);endif;
if(%#bau%=10);look(+91,-26);endif;
if(%#bau%=11);look(+104,-25);endif;
if(%#bau%=12);look(+120,-23);endif;
if(%#bau%=13);look(+130,-24);endif;
if(%#bau%=14);look(+141,-28);endif;
if(%#bau%=15);look(+158,-32);endif;
if(%#bau%=16);look(-179,-34);endif;
if(%#bau%=17);look(-159,-32);endif;
if(%#bau%=18);look(-143,-27);endif;
if(%#bau%=19);look(-131,-24);endif;
if(%#bau%=20);look(-120,-23);endif;
if(%#bau%=21);look(-106,-24);endif;
if(%#bau%=22);look(-89,-26);endif;
if(%#bau%=23);look(-75,-25);endif;
if(%#bau%=24);look(-61,-23);endif;
if(%#bau%=25);look(-50,-10);endif;
if(%#bau%=26);look(-39,-12);endif;
if(%#bau%=27);look(-23,-14);endif;
if(%#bau%=28);look(+1,-16);endif;
if(%#bau%=29);look(+23,-14);endif;
if(%#bau%=30);look(+39,-12);endif;
if(%#bau%=31);look(+50,-10);endif;
if(%#bau%=32);look(+61,-10);endif;
if(%#bau%=33);look(+74,-11);endif;
if(%#bau%=34);look(+91,-11);endif;
if(%#bau%=35);look(+104,-11);endif;
if(%#bau%=36);look(+120,-10);endif;
if(%#bau%=37);look(+130,-10);endif;
if(%#bau%=38);look(+141,-12);endif;
if(%#bau%=39);look(+158,-14);endif;
if(%#bau%=40);look(-179,-16);endif;
if(%#bau%=41);look(-159,-14);endif;
if(%#bau%=42);look(-143,-12);endif;
if(%#bau%=43);look(-131,-10);endif;
if(%#bau%=44);look(-120,-10);endif;
if(%#bau%=45);look(-106,-11);endif;
if(%#bau%=46);look(-89,-11);endif;
if(%#bau%=47);look(-75,-11);endif;
if(%#bau%=48);look(-61,-10);endif;
if(%#bau%=49);look(-50,+4);endif;
if(%#bau%=50);look(-39,+4);endif;
if(%#bau%=51);look(-23,+4);endif;
if(%#bau%=52);look(+23,+4);endif;
if(%#bau%=53);look(+39,+4);endif;
if(%#bau%=54);look(+50,+4);endif;
if(%#bau%=55);look(+61,+4);endif;
if(%#bau%=56);look(+74,+4);endif;
if(%#bau%=57);look(+91,+4);endif;
if(%#bau%=58);look(+104,+4);endif;
if(%#bau%=59);look(+120,+4);endif;
if(%#bau%=60);look(+130,+4);endif;
if(%#bau%=61);look(+141,+4);endif;
if(%#bau%=62);look(+158,+4);endif;
if(%#bau%=63);look(-179,+4);endif;
if(%#bau%=64);look(-159,+4);endif;
if(%#bau%=65);look(-143,+4);endif;
if(%#bau%=66);look(-131,+4);endif;
if(%#bau%=67);look(-120,+4);endif;
if(%#bau%=68);look(-106,+4);endif;
if(%#bau%=69);look(-89,+4);endif;
if(%#bau%=70);look(-75,+4);endif;
if(%#bau%=71);look(-61,+4);endif;
if(%#bau%=72);look(-50,+16);endif;
if(%#bau%=73);look(-39,+20);endif;
if(%#bau%=74);look(-23,+22);endif;
if(%#bau%=75);look(+23,+22);endif;
if(%#bau%=76);look(+39,+20);endif;
if(%#bau%=77);look(+50,+16);endif;
if(%#bau%=78);look(+61,+16);endif;
if(%#bau%=79);look(+74,+18);endif;
if(%#bau%=80);look(+91,+18);endif;
if(%#bau%=81);look(+104,+18);endif;
if(%#bau%=82);look(+120,+16);endif;
if(%#bau%=83);look(+130,+16);endif;
if(%#bau%=84);look(+141,+20);endif;
if(%#bau%=85);look(+158,+22);endif;
if(%#bau%=86);look(-179,+24);endif;
if(%#bau%=87);look(-159,+22);endif;
if(%#bau%=88);look(-143,+20);endif;
if(%#bau%=89);look(-131,+16);endif;
if(%#bau%=90);look(-120,+17);endif;
if(%#bau%=91);look(-106,+18);endif;
if(%#bau%=92);look(-89,+19);endif;
if(%#bau%=93);look(-75,+18);endif;
if(%#bau%=94);look(-61,+17);endif;
wait(1);
// Guardando ítens nos baus.
wait(5);
key(use);
wait(1);
for(#i,54,80);
slotclick(%#i%,l,true);
wait(30ms);
next;
wait(500ms);
getslotitem(53,#id,#stack);
wait(500ms);
if(%#stack%!=0);
inc(#bau);
endif;
if(%#bau%=24);
unset(nf);
log("&4[Macro] &6Baús cheios! Apenas irá matar mobs agora.");
gui();
else;
gui();
endif;
until(%#stack%=0);
}$$/home pigman$${
wait(5);
endif;
endif;
loop;loop;
loop;
loop;
endif;
}$$
•[A]gradecimentos:
- Agradeço a todos que testarem esse Macro,e deem sua opnião sobre o macro,pois estarei fazendo o melhor para ajudar a todos.
- Agradecimento especial ao zNightmare58 e ao BeetleJuice.