You are on page 1of 12

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Declaraes iniciais: ; ;Macro semi desenvolvido por Marquim, ;configurado para rodar no servidor da DMS ; ;Este macro

de mining no foi totalmente criado ;por mim, no me lembro ao certo o criador pois ;faz mais de 4 anos que eu tenho ele, eu apenas ;incrementei, deixei mais rapido, e maleavel. ;Fiquem a Vontade para alterar, desde que no ;altere uma coisinha aqui e ali e saia falando ;que o macro seu. ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Oque este macro faz? ;Minera, Fica Hidding ou no, come, smelta e ;guarda os ingots no banco. ; ;Oque preciso para rodar? ;Voc precisa ter em sua backpack necessariamente ;picareta e hammer. Facultativos: Comida, Bandagem ;poo de heal. ;A pertar Play e ser feliz. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; initevents ;Configurao de ficar Hidding, deixar "Sim" ;para ficar minerar invisivel e "Nao" para minerar normal. Set %hiding Sim ;Configurao da tela ; Abre o Paperdoll event macro 8 1 wait 3s contpos 762 0 wait 1s ; Abre o Status Event Macro 8 2 wait 3s contpos 742 330 wait 1s ;Abre a Backpack Event Macro 8 7 wait 3s contpos 765 480 wait 1s ;Variaveis de Configurao set %Backpack #backpackid set %ore GWJ_EWJ_DWJ_TVJ set %ingot TVJ_RMK_UVF_EVF_HVF_GVF_FVF_OVF_BVF_VUF_ENK Set %Comida RUD_FUD_BDF_GQE_IQE_ZPE_SQD_OQE_KPE_VQE_TQE_YSD_JQE_YWI_AXI_PQD_QQD_ MQE_SPE_RQE_ END_RGG_AQD_FUD_ZBG_WLI_QRD_YLI_NRD_PRD_XLI_ACG_IGI_GUD_HND_QSD Set %Pickaxe NPF_QPF_TWF Set %Hammer TLH_OLH Set %Tentativa 15 Set %TempoEspera 10 Set %TempoPickaxe 6 Set %freq 0 Set %freq2 0 Set %freq3 0

Set %cnt 0 Set %funcao 0 Set #ltargetid 0 Set #ltargetz 0 Set #ltargetkind 3 ;----------------- Acessando Banco -------------------gosub protec wait 1s event macro 1 0 ,exec recallbanco ;Aqui fica a coordenada do banco wait 10s move 1433 1694 0 msg $Bank key enter wait 3s contpos 10 10 wait 1s finditem CUD set #LOBJECTID #FINDID set #findY #FINDID set #findX #FINDID if #findkind = 0 set %X 0 set %Y 0 ;Se quiser guardar os ingots em uma bag ou ;box dentro do banco basta digitar as cordenadas ;DO MOUSE!!! aqui em baixo, caso voc no saiba ;alterar ou no queira guardar em uma bag, basta ;deixar como esta! set %X %X + 72 ;Coordenada X da bag de Ingots set %Y %Y + 127 ;Coordenada Y da bag de Ingots ; melhor no alterar daqui pra baixo, a menos que ;voc saiba oque esta fazendo. Set %target_tmp_X %target_max_distance Set %target_tmp_Y %target_max_distance Set #ltargetid 0 Set #ltargetz 0 Set #ltargetkind 3 goto voltar ;Ponto Inicial de minerao wait 1s ;Aqui o Inicio do Macro. Curar: Finditem ZLF Set #LObjectID #FindID If #FindKind = 1 { Ignoreitem #FindID Goto Curar } Wait 1s Event Macro 17 Event Macro 23 0 Wait 6s Goto Inicio Inicio: gosub hiding gosub protec if %freq3 > 100 { gosub comida }

Set %freq3 %freq3 + 1 gosub %cnt 1 Set %cnt %cnt + 1 if #hits < #maxhits { msg Guards key enter Goto Curar } if %cnt > 7 { Set %cnt 0 goto caminha } Set %Chance 0 goto mine mine: gosub protec if #weight => 300 { goto forge } Set %Chance %Chance + 1 if %Chance > %Tentativa { goto inicio } delete journal gosub pickaxe Set #SCNT 0 goto jornal sub Protec if #hits < #maxhits { msg Guards key enter Event Macro 13 14 ;Aqui seria pra beber poo de Heal, porem como as ;ids das poes no DMS so iguais, estou bolando ;outro sistema, por enquanto no esta funcionando. FindItem WLF C_ , %Backpack set #LObjectID #FindID event macro 17 0 target ;Aqui ele usa Bandagem para recuperar a vida, no ;altere essa parte se no ele no ira funcionar. FindItem ZLF C_ , %Backpack set #LObjectID #FindID event macro 17 0 target event macro 23 0 wait 5s } ;Toma a pocao de heal e chama guards if #hits > 158 { msg Guards key enter Event Macro 13 14 msg NB, vai ficar atacando char minner?

key enter } if atacando in #journal { msg Guards key enter wait 6s } ;Caso seja atacado ele sai do modo war para ;continuar minerando e poder utilizar a skill hid if #CHARSTATUS = G { Event Macro 6 0 } if #CHARSTATUS = GH { Event Macro 6 0 } if #CHARSTATUS = HG { Event Macro 6 0 } ;Stealf ;if #CHARSTATUS = H ;{ ;goto bau ;} ;Event Macro 13 47 ;wait 3s ;goto bau ;No esta funcionando, melhor no ativar. Bau: finditem HKF_CUD_SPF_AUD_IKF_BUD_HIF_IIF G_2 if #findkind = -1 { goto explo } If #FindKind = 1 { event macro 13 21 event drag #findID wait 1s click 906 220 ;Mochila no paperdool wait 4 goto caminha } ;Seria para fugir da explosion, porem eu deixei ;desativado por dar muito conflito com o macro Explo: finditem QUF_IMF G_3 if #findkind = -1 { return } If #FindKind = 1 { event macro 13 21 goto caminha } ;Jornal

jornal: gosub protec if #SCNT >= %TempoEspera { goto mine } scanjournal 1 if You_notice in #journal { msg Guards !$ } if TRYING_TO_STEAL in #journal { msg Guards !$ } if atacando in #sysmsg { msg Guards key enter } if HITS_YOU in #journal { msg Guards !$ } if play in #journal { Set %Chance 0 goto inicio } if Nao_ha_nada_aqui_para_minerar. in #journal { Set %Chance 0 goto inicio } if Tente_minerar_em_outro_lugar in #journal { Set %Chance 0 goto inicio } if Voce_nao_encontrou_nenhum_minerio_aproveitavel,_somente_algumas_pedras in #jo urnal { goto mine } if tente_minerar in #journal { Set %Chance 0 goto inicio } if voce_nao_tem_uma_linha_de_visao_para_essa_posicao in #journal { Set %Chance 0 goto inicio } if O_alvo_esta_muito_distante. in #journal { Set %Chance 0 goto inicio } if You_cannot_mine_so_close_to_yourself. in #sysmsg

{ Set %Chance 0 goto inicio } ;Seleciona Ores: ;Caso deseje minerar apenas ores especificos ou ;raros, basta alterar a parte "goto mine" para ;"Set %Chance 0" ;"goto inicio" ;sem as "" aspas. Os que voce quiser continuar ;minerando apos colocar na bag voce deixa: ;"goto mine" se no quiser que ele fique minerando ;aquele ore, basta colocar: ;"Set %Chance 0" ;"goto inicio" if voce_pos_iron_ore in #journal { goto mine } if voce_pos_rusty_ore in #journal { goto mine } if voce_pos_ceramic_ore in #journal { goto mine } if voce_pos_old_copper_ore in #journal { goto mine } if voce_pos_cooper_ore in #journal { goto mine } if voce_pos_bronze_ore in #journal { goto mine } if voce_pos_silver_ore in #journal { goto mine } if voce_pos_gold_ore in #journal { goto mine } if voce_mexeu_em_algumas in #journal { goto mine } if voce_pos_verite_ore in #journal { goto mine } if voce_pos_valorite_ore in #journal { goto mine } if voce_pos_blood_rock_ore in #journal

{ goto mine } if voce_pos_black_rock_ore in #journal { goto mine } if voce_pos_mytheril_ore in #journal { goto mine } if voce_pos_evil_ore in #journal { goto mine } if voce_pos_order_ore in #journal { goto mine } if voce_pos_chaos_ore in #journal { goto mine } if voce_pos_black_diammond_ore in #journal { goto mine } if voce_pos_white_diammond_ore in #journal { goto mine } if voce_pos_magma in #journal { goto mine } if voce_pos_light_star in #journal { goto mine } if voce_pos_uranium in #journal { goto mine } if voce_pos_moon in #journal { goto mine } if voce_pos_hydro in #journal { goto mine } ;Mesmo esquema de selecionar ores s que aqui ;seleciona pedras if voce_pos_rubie in #journal { Set %Chance 0 goto inicio } if voce_pos_sapphire in #journal {

Set %Chance 0 goto inicio } if voce_pos_emerald in #journal { Set %Chance 0 goto inicio } if voce_pos_diamond in #journal { goto mine } if voce_pos_citrine in #journal { Set %Chance 0 goto inicio } if voce_pos_tourmaline in #journal { Set %Chance 0 goto inicio } if voce_pos_star_sapphire in #journal { Set %Chance 0 goto inicio } if voce_pos_amethyst in #journal { goto mine } goto jornal ;tempo de espera espe: gosub protec if #SCNT >= %TempoPickaxe { if %Chance = 0 { goto inicio } goto mine } goto espe ;Aqui ele caminha caminha: gosub %funcao 2 move #ltargetx #ltargety 0 2s Set %funcao %funcao + 1 if %funcao > 7 { Set %funcao 0 } gosub protec goto inicio ;Targets da pickaxe, NO ALTERE!!! sub 0 set #ltargetx #charposx set #ltargety #charposy - %1 return

sub 1 set #ltargetx #charposx + %1 set #ltargety #charposy - %1 return sub 2 set #ltargetx #charposx + %1 set #ltargety #charposy return sub 3 set #ltargetx #charposx + %1 set #ltargety #charposy + %1 return sub 4 set #ltargetx #charposx set #ltargety #charposy + %1 return sub 5 set #ltargetx #charposx - %1 set #ltargety #charposy + %1 return sub 6 set #ltargetx #charposx - %1 set #ltargety #charposy return sub 7 set #ltargetx #charposx - %1 set #ltargety #charposy - %1 return ;Procura Picareta sub pickaxe finditem %Pickaxe if #findkind = 0 { set #LObjectID #FindID event macro 17 0 target event macro 22 0 return } if #findkind = 1 { ignoreitem #FindID gosub pickaxe return } if #findkind = -1 { ignoreitem reset event sysmessage Coloque uma picareta em sua BackPack wait 3s return } return ;Come sub comida Set %freq3 = 0 msg Guards $ finditem %Comida if #findkind = 0 {

set #LObjectID #FindID event macro 17 0 return } if #findkind = 1 { ignoreitem #FindID gosub comida return } if #findkind = -1 { ignoreitem reset event sysmessage Coloque comida em sua BackPack goto return } return ;Vai at; a Forge, esta pr-configurado para utilizar ;a forge que fica ao lado do npc bank, e no a que ;fica no fundo da mina, no h diferena, porm se ;quiser alterar e souber oque esta fazendo, fique ;a vontade. ;Localiza Forge Forge: gosub protec move 2562 483 0 30s ; local da forge goto hammer ;Marreta, necessrio para smeltar os ores hammer: finditem %Hammer if #findkind = 0 { set #LObjectID #FindID event macro 17 0 target event macro 22 0 event macro 23 0 click 67 441 0 5s goto smelta } if #findkind = 1 { ignoreitem #FindID goto hammer } if #findkind = -1 { ignoreitem reset event sysmessage Coloque um Hammer em sua BackPack wait 3s goto smelta } goto smelta ;Smelta ores Smelta: gosub protec Set %freq2 = 0 ;Abre a Backpack Novamente Event Macro 8 7 wait 3s

contpos 765 480 wait 1s find: if %freq2 > 15 { goto forge } gosub protec set %freq2 %freq2 + 1 finditem %ore C_ , %Backpack if #findkind = 0 { set #LObjectID #FindID event macro 17 0 wait 1s goto find } else { goto guardar_ingots } ;Vai at o ponto pre definido para guardar os ingots guardar_ingots: gosub protec key esc event macro 1 0 ,exec recallbanco ;Aqui a localizao do banco,no precisa alterar. wait 10s move 1433 1694 0 ignoreitem reset 2 Set %freq = 0 open Backpack Event Macro 8 7 wait 3s set %Backpack #CONTID contpos 765 480 wait 1s msg $Bank key enter set %Banco #CONTID wait 3s contpos 10 10 wait 1s goto mover ;Guardando no banco mover: gosub protec if %freq > 15 { goto forge } gosub protec set %freq %freq + 1 finditem %ingot C_ , %Backpack if #findkind = 1 { ignoreitem #findid goto mover } if #findkind = 0 {

event drag #findid wait 1s msg $ wait 1s click %X %Y p wait 1s sub hiding if #charstatus <> H && %hiding = Sim { event macro 13 21 wait 3s goto hiding } return ;Procurando ingot goto mover } if #findkind = -1 { wait 1s goto voltar return ;Aps guardar tudo, volta a minerar voltar: gosub protec event macro 1 0 ,exec recallmina ;Aqui ; o ponto aonde ele retorna para minerar, ponto inicial. wait 10s ignoreitem ZBN finditem %Pickaxe if #findkind = 0 { set #LObjectID #FindID event macro 17 0 target click 371 312 wait 7s goto inicio return

You might also like