- $${
- toggle(mobrep)
- if(mobrep)
- LOG("&6[&fMob&4REP&6] &6vip &be &7nao-vip &2LIGADO")
- /////////////////////////////////////////////////
- //////////by zMatheus22 Region1 Owna/////////////
- //////////agradecimentos://@lomexicano////////////
- //////////me ajudou muito nessa macro////////////////////////////
- &swords = "diamond_sword|iron_sword|stone_sword|wooden_sword|gold_sword";
- #delay_slotclick = 30
- SET(#delay,40)
- #slott = 1
- if(!@ligar_mobrep);
- unset(&slot36_test);unset(#slot36_test);
- Gui(inventory);
- getslotitem(36,&slot36_test);
- getslotitem(36,#slot36_test);
- IF(#slot36_test);
- set(@versao15);unset(@versao18);
- ElseIF(&slot36_test);
- unset(@versao15);set(@versao18);
- Endif;
- Gui();
- Log("");
- IF(@versao15);LOG("&fSua versao do minecraft é: &a1.5");ENDIF;
- IF(@versao18);LOG("&fSua versao do minecraft é: &a1.8");ENDIF;
- Log("");
- wait(700ms);
- ///////// Sethomes
- do();
- clearchat;
- log(" ");
- log("&6[&fMob&4REP&6] &7Escolha as opçoes");
- log(" ");
- if(reparar);log("&e[1] [&aReparar&e] &7Trocar ou reparar espada/machado?");endif;
- if(trocar);log("&e[1] [&cTrocar&e] &7Trocar ou reparar espada/machado?");endif;
- if((!trocar)&&(!reparar));log("&e[1] [&6Escolha&e] &7Trocar ou reparar?");endif;
- if(vender_osso);log("&e[2] [&aVender&e] &7Vai vender ou jogar fora os ossos?");endif;
- if(!vender_osso);log("&e[2] [&cJogar fora&e] &7Vai vender ou jogar fora os ossos?");endif;
- if(vip);log("&e[3] [&aSim&e] &7Voce é &6VIP&7?");endif;
- if(!vip);log("&e[3] [&cNao&e] &7Voce é &6VIP&7?");endif;
- log("");
- log("&fAperte &aENTER &fpara confirmar.");
- log("");
- IF(KEY_1);
- if(trocar);unset(trocar);set(reparar);elseif(!trocar);set(trocar);unset(reparar);endif;
- do;wait(100ms);until(!KEY_1);
- ENDIF;
- IF(KEY_2);
- if(vender_osso);unset(vender_osso);elseif(!vender_osso);set(vender_osso);endif;
- do;wait(100ms);until(!KEY_2);
- ENDIF;
- IF(KEY_3);
- if(vip);unset(vip);elseif(!vip);set(vip);endif;
- do;wait(100ms);until(!KEY_3);
- ENDIF;
- IF(KEY_RETURN);
- do;wait(50ms);until(!KEY_RETURN);
- break;
- ENDIF;
- loop;
- if(@versao15);
- &saveitens = "^276$|^57$|^42$|^287$|^387$|^310$|^267$|^272$|^1$|^283$|^41$|^268$|^17$|^311$|^312$|^313$|^278$|^279$|^275$|^271$|^286$|^VENDEROSSO$"
- elseif(@versao18);
- &saveitens = "^diamond_sword$|^diamond_block$|^iron_block$|^string$|^written_book$|^diamond_helmet$|^iron_sword$|^stone_sword$|^stone$|^gold_sword$|^gold_block$|^wooden_sword$|^log$|^diamond_chestplate$|^diamond_leggings$|^diamond_boots$|^diamond_pickaxe$|^diamond_axe$|^stone_axe$|^wooden_axe$|^gold_axe$|^VENDEROSSO$"
- endif;
- IF(@versao15);
- IF(!vender_osso);
- replace(&saveitens,"VENDEROSSO","352");
- ElseIF(vender_osso);
- replace(&saveitens,"352","VENDEROSSO");
- Endif;
- Elseif(@versao18);
- IF(!vender_osso);
- replace(&saveitens,"VENDEROSSO","bone");
- ElseIF(vender_osso);
- replace(&saveitens,"bone","VENDEROSSO");
- Endif;
- Endif;
- SET(&zmob,"mobrep")
- IF(vip);
- SET(&zmoblinha,"vd_linha");
- SET(&zosso,"vd_osso");
- ELSEIF(!vip);
- SET(&zmoblinha,"vd_linhanv");
- SET(&zosso,"vd_ossonv");
- ENDIF;
- &iron_block = "bloco_ferro";
- endif;
- unset(@ligar_mobrep);
- ////////
- Echo("/g &bmacro &freparaçao com mob &6[&fMob&4REP&6] &aatualizada &6v3.0 [1.5/1.8] &aby zmatheus22")
- #xcoord = %XPOS%;
- #zcoord = %ZPOS%;
- echo("/home %&zmob%");
- wait(700ms);
- Do(10);
- wait(500ms);
- Until((%XPOS% != %#xcoord%)|(%XPOS% != %#xcoord%)|(%HITID% = 51));
- wait(1);
- if(%DIRECTION% = "N");&frente = "north";&atras = "south";&direita = "east";&esquerda = "west";endif;if(%DIRECTION% = "S");&frente = "south";&atras = "north";&direita = "west";&esquerda = "east";endif;if(%DIRECTION% = "E");&frente = "east";&atras = "west";&direita = "south";&esquerda = "north";endif;if(%DIRECTION% = "W");&frente = "west";&atras = "east";&direita = "north";&esquerda = "east";endif;
- Do
- IF(reparar);
- Do;
- IF(@versao15);
- GETIDREL(0,-1,0,#foot_block);
- if(#foot_block = 42);
- LOG("&6[&fMob&4REP&6]: &7Bloco de ferro localizado.");
- Break;
- else;
- LOG("&6[&fMob&4REP&6] &cNao localizado &fbloco de ferro &ca baixo.!");
- stop;
- endif;
- ElseIF(@versao18);
- GETIDREL(0,-1,0,&foot_block);
- if(&foot_block = "iron_block");
- LOG("&6[&fMob&4REP&6]: &7Bloco de ferro localizado.");
- Break;
- else;
- LOG("&6[&fMob&4REP&6] &cNao localizado &fbloco de ferro &ca baixo.!");
- stop;
- endif;
- Endif;
- loop;
- ENDIF;
- Unsafe(0);
- Do();
- IF(reparar);
- IF(@versao15);
- pick(276,267,272,268,283);
- Elseif(@versao18);
- pick("diamond_sword","iron_sword","stone_sword","wooden_sword","gold_sword");
- Endif;
- ENDIF;
- IF(trocar);
- SLOT(%#slott%);
- ENDIF;
- wait(200ms);
- do(%#delay%);
- IF(%DURABILITY% < 25);
- IF(reparar);
- LOG("&6[&fMob&4REP&6] &7Durabilidade baixa, &aReparando...");
- gui();
- wait(50ms);
- look(+0,90);
- Do(3);
- key(use);
- wait(200ms);
- loop;
- LOG("&6[&fMob&4REP&6] &7Espada/Machado &2Reparado.");
- ELSEIF(trocar);
- IF(#slott >= 10);
- #slott = 0;
- playsound(note.harp);
- LOG(" ");
- LOG("&6[&fMob&4REP&6] &7Todas as suas espadas/Machados Foram usadas.");
- LOG(" ");
- Stop;
- ENDIF;
- INC(#slott,1);LOG(INC);
- SLOT(%#slott%);
- LOG("&6[&fMob&4REP&6] &7Espada/Machado &ccom durabilidade &4Baixa, &cTrocando");
- ENDIF;
- Endif
- //action
- IF(@versao15);
- IF(reparar);
- pick(276,267,272,268,283);
- ElseIF(trocar);
- Slot(%#slott%);
- Endif;
- Elseif(@versao18);
- IF(reparar);
- pick("diamond_sword","iron_sword","stone_sword","wooden_sword","gold_sword");
- ElseIF(trocar);
- Slot(%#slott%);
- Endif;
- Endif;
- key(attack)
- wait(50ms);
- look(%&frente%)
- IF(%GUI% = "GUICHAT");LOG("&6[&fMob&4REP&6]: &aSeu CHAT foi aberto, Aguardando o fechamento.");Do();wait(500ms);Until(%GUI% = "NONE");ENDIF;
- loop
- gui(inventory)
- if(@versao15)
- getslotitem(35,#slot35)
- if(#slot35 != 0)
- LOG("&6[&fMob&4REP&6] &7Inventario Lotado. &2Iniciando processo.")
- break
- endif
- elseif(@versao18)
- getslotitem(35,&slot35)
- if(&slot35 != "air")
- LOG("&6[&fMob&4REP&6] &7Inventario Lotado. &2Iniciando processo.")
- break
- endif
- endif
- Gui();
- Loop
- Endunsafe;
- unsafe(0);
- LOG("&6[&fMob&4REP&6] &7Verificando Inventario e &cRemovendo Flechas&7.")
- wait(100ms)
- looks(%&atras%)
- wait(300ms)
- do(3)
- wait(1ms);
- gui(inventory)
- if(@versao15)
- getslot(262,#flecha)
- getslot(352,#osso);
- ELSEIF(@versao18)
- getslot("arrow",#flecha)
- getslot("bone",#osso);
- endif
- if(vender_osso);
- if(#flecha = -1)
- break
- else
- slotclick(%#flecha%,l,false)
- wait(20ms)
- slotclick(-999)
- wait(20ms)
- endif
- elseif(!vender_osso);
- if((#flecha = -1)&&(#osso = -1))
- break
- else
- slotclick(%#flecha%,l,false)
- wait(20ms)
- slotclick(-999)
- wait(20ms)
- //
- slotclick(%#osso%,l,false)
- wait(20ms)
- slotclick(-999)
- wait(20ms)
- endif
- endif;
- loop
- endunsafe
- IF(vender_osso);
- #xcoord = %XPOS%
- #zcoord = %ZPOS%
- Echo("/home zmatheus22 %&zosso%")
- wait(600ms)
- Do(15)
- wait(500ms)
- Until((%#xcoord% != %XPOS%)|(%#zcoord% != %ZPOS%))
- wait(500ms)
- echo("/menuloja off")
- echo("/esconder")
- Unsafe;
- do()
- Do(3);key(attack);wait(350ms);loop;
- Gui(inventory);
- IF(@versao15);
- GETSLOT(352,#slot_osso);
- Elseif(@versao18);
- GETSLOT("bone",#slot_osso);
- Endif;
- IF(#slot_osso != -1);
- LOG("&cAinda ha ossos no inventário.");
- Keydown(jump);wait(300ms);keyup(jump);
- Else;
- LOG("&aTodos os ossos foram vendidos.");
- Gui();
- BREAK;
- ENDIF;
- Gui();
- loop
- Endunsafe;
- look(0,90)
- wait(450ms)
- ENDIF;
- Do
- LOG("&6[&fMob&4REP&6] &cDesbugando Linhas...")
- unsafe
- if(%GUI% != "GUIINVENTORY")
- gui(inventory)
- endif
- wait(10ms)
- if(@versao15);getslot(287,#stringhx);elseif(@versao18);getslot("string",#stringhx);endif;
- #contalinha = 0
- for(#slot,9,44)
- if(@versao15);
- getslotitem(%#slot%,#oq,#stack);
- if(#oq = 287)
- inc(#contalinha,%#stack%)
- endif
- elseif(@versao18);
- getslotitem(%#slot%,&oq,#stack);
- if(&oq = "string")
- inc(#contalinha,%#stack%)
- endif
- endif;
- next
- endunsafe
- if(%GUI% != "GUIINVENTORY");
- gui(inventory)
- endif
- if(#contalinha >= 60)
- LOG("&6[&fMob&4REP&6] &cLinhas no inventario &asuficientes, &cvoltando para trap")
- break
- else
- LOG("&f&l[MobREP] &cLinhas no inventario insuficientes, comprando linhas")
- do
- GUI()
- until(%GUI% != "GUIINVENTORY")
- #xcoord = %XPOS%
- #zcoord = %ZPOS%
- echo("/home zmatheus22 %&zmoblinha%")
- wait(600ms)
- Do(15)
- wait(500ms)
- Until((%#xcoord% != %XPOS%)|(%#zcoord% != %ZPOS%))
- wait(%#naovip%ms)
- wait(100ms)
- echo("/menuloja on")
- wait(100ms)
- echo("/esconder")
- do
- key(use)
- wait(500ms)
- until(%GUI% = "GUICHEST")
- wait(1)
- slotclick(2,l,false)
- wait(1)
- endif
- Loop
- gui()
- IF(vip);
- #xcoord = %XPOS%;
- #zcoord = %ZPOS%;
- echo("/home zmatheus22 %&iron_block%");
- wait(700ms);
- Do(15);
- wait(100ms);
- Until((%XPOS% != %#xcoord%)|(%XPOS% != %#xcoord%));
- Echo("/esconder");
- LOG("&6[&fMob&4REP&6] &7Iniciando processo de reparaçao.")
- ELSEIF(!vip);
- #xcoord = %XPOS%;
- #zcoord = %ZPOS%;
- echo("/home %&zmob%");
- wait(700ms);
- Do(15);
- wait(100ms);
- Until((%XPOS% != %#xcoord%)|(%XPOS% != %#xcoord%));
- Echo("/esconder");
- LOG("&6[&fMob&4REP&6] &7Iniciando processo de reparaçao.")
- ENDIF;
- Unsafe(0);
- do(1)
- for(#slot,1,9)
- slot(%#slot%)
- wait(5ms)
- do(1)
- if(@versao15);
- if((%ITEM% = 261)&&(%DURABILITY% < 320))
- look(+0,90)
- wait(5ms)
- do(30);key(use);wait(1ms);Until(%DURABILITY% > 320);
- else
- break
- endif
- elseif(@versao18);
- if((%ITEM% = "bow")&&(%DURABILITY% < 320))
- look(+0,90)
- wait(5ms)
- do(30);key(use);wait(1ms);Until(%DURABILITY% > 320);
- else
- break
- endif
- Endif;
- loop
- next
- loop
- wait(100ms)
- do()
- gui(inventory)
- wait(100ms)
- until(%GUI% == "GUIINVENTORY")
- wait(100ms)
- for(#var,0,8)
- #slot1 = 9 + #var
- #slot2 = 36 + #var
- slotclick(%#slot1%,l,false)
- wait(40ms)
- slotclick(%#slot2%,l,false)
- wait(40ms)
- slotclick(%#slot1%,l,false)
- wait(40ms)
- next
- gui()
- do(1)
- for(#slot,1,9)
- slot(%#slot%)
- wait(25ms)
- do(1)
- if(@versao15);
- if((%ITEM% = 261)&&(%DURABILITY% < 320))
- look(+0,90)
- wait(5ms)
- do(30);key(use);wait(1ms);Until(%DURABILITY% > 320);
- else
- break
- endif
- elseif(@versao18);
- if((%ITEM% = "bow")&&(%DURABILITY% < 320))
- look(+0,90)
- wait(5ms)
- do(30);key(use);wait(1ms);Until(%DURABILITY% > 320);
- else
- break
- endif
- Endif;
- loop
- next
- loop
- wait(100ms)
- do()
- gui(inventory)
- wait(100ms)
- until(%GUI% == "GUIINVENTORY")
- wait(100ms)
- for(#var,0,8)
- #slot1 = 18 + #var
- #slot2 = 36 + #var
- slotclick(%#slot1%,l,false)
- wait(40ms)
- slotclick(%#slot2%,l,false)
- wait(40ms)
- slotclick(%#slot1%,l,false)
- wait(40ms)
- next
- gui()
- do(1)
- for(#slot,1,9)
- slot(%#slot%)
- wait(25ms)
- do(1)
- if(@versao15);
- if((%ITEM% = 261)&&(%DURABILITY% < 320))
- look(+0,90)
- wait(5ms)
- do(30);key(use);wait(1ms);Until(%DURABILITY% > 320);
- else
- break
- endif
- elseif(@versao18);
- if((%ITEM% = "bow")&&(%DURABILITY% < 320))
- look(+0,90)
- wait(5ms)
- do(30);key(use);wait(1ms);Until(%DURABILITY% > 320);
- else
- break
- endif
- Endif;
- loop
- next
- loop
- wait(300ms)
- do()
- gui(inventory)
- wait(100ms)
- until(%GUI% == "GUIINVENTORY")
- wait(500ms)
- for(#var,0,8)
- #slot1 = 27 + #var
- #slot2 = 36 + #var
- slotclick(%#slot1%,l,false)
- wait(40ms)
- slotclick(%#slot2%,l,false)
- wait(40ms)
- slotclick(%#slot1%,l,false)
- wait(40ms)
- next
- gui()
- do(1)
- for(#slot,1,9)
- slot(%#slot%)
- wait(25ms)
- do(1)
- if(@versao15);
- if((%ITEM% = 261)&&(%DURABILITY% < 320))
- look(+0,90)
- wait(5ms)
- do(30);key(use);wait(1ms);Until(%DURABILITY% > 320);
- else
- break
- endif
- elseif(@versao18);
- if((%ITEM% = "bow")&&(%DURABILITY% < 320))
- look(+0,90)
- wait(5ms)
- do(30);key(use);wait(1ms);Until(%DURABILITY% > 320);
- else
- break
- endif
- Endif;
- loop
- next
- loop
- IF(vip);
- #xcoord = %XPOS%;
- #zcoord = %ZPOS%;
- echo("/home %&zmob%");
- wait(700ms);
- Do(10);
- wait(500ms);
- Until((%XPOS% != %#xcoord%)|(%XPOS% != %#xcoord%));
- wait(1);
- if(%DIRECTION% = "N");&frente = "north";&atras = "south";&direita = "east";&esquerda = "west";endif;if(%DIRECTION% = "S");&frente = "south";&atras = "north";&direita = "west";&esquerda = "east";endif;if(%DIRECTION% = "E");&frente = "east";&atras = "west";&direita = "south";&esquerda = "north";endif;if(%DIRECTION% = "W");&frente = "west";&atras = "east";&direita = "north";&esquerda = "east";endif;
- wait(1)
- ENDIF;
- look(%&atras%)
- wait(100ms)
- gui(inventory)
- for(#slot,9,44)
- if(@versao15);
- getslotitem(%#slot%,#item)
- ifmatches(%#item%,%&saveitens%)
- else
- slotclick(%#slot%,l,false)
- wait(10ms)
- slotclick(-999)
- endif
- elseif(@versao18);
- getslotitem(%#slot%,&item)
- ifmatches(%&item%,%&saveitens%)
- else
- slotclick(%#slot%,l,false)
- wait(10ms)
- slotclick(-999)
- endif
- endif;
- next
- IF(trocar);
- FOR(#hotbar,36,44)
- slotclick(%#hotbar%,l,true)
- wait(50ms)
- NEXT
- wait(200ms)
- FOR(#backslot,9,17)
- slotclick(%#backslot%,l,true)
- wait(100ms)
- NEXT
- ELSEIF(reparar);
- For(#sword_search,9,44);
- getslotitem(%#sword_search%,&slot_sword);
- IFmatches("%&slot_sword%","%&swords%");
- Slotclick(%#sword_search%,l,false);wait(50ms);
- Slotclick(36,l,false);wait(50ms);
- Slotclick(%#sword_search%,l,false);wait(50ms);
- BREAK;
- Endif;
- Next;
- ENDIF;
- gui()
- Endunsafe;
- LOOP
- else
- LOG("&6[&fMob&4REP&6] &7MobREP &cDESLIGADO")
- stop
- endif
- }$$