Escolar Documentos
Profissional Documentos
Cultura Documentos
; SE O MACRO FUI �TIL E LHE AJUDOU, N�O SE ESQUE�A QUE EU ACEITO DOA��O NO JOGO.
.pm GoodOfWar rsrs
initevents
Set %Velocidade 130 ; Isso aqui afeta diretamente a velocidade do seu macro
; Quanto maior o n�mero, mais r�pido vai ser, mas mais
processador utiliza
; Padr�o: 30 | Recomendado: 50 | M�ximo Sugerido: 100
Set #LTARGETID 0
Set #LTARGETZ 0
Set #LTARGETKIND 2
Set %Comando 1
Set %ComandoX 1
Set %Ativo #TRUE
Set %X -3
Set %Y -2
Set %Chance 1
Set %Atualizar #FALSE
Set %Guardar #FALSE
Set %Guarde #FALSE
Set %Reconectador #FALSE
Set %EstadoGuardar Nada
;Abre a Backpack
Event Macro 8 7
wait 3s
contpos 765 480
wait 1s
ChooseSkill Fish
Set %Skill #SKILL / 10
LinesPerCycle %Velocidade
Set #SysMSGCol 40
gosub CriaMenu
If %Reconectador = #True
GoSub ConfiguraReconectar
gosub Barco
if %Guardar = #TRUE
{
gosub Bag
}
gosub NovoAlvo
if %Atualizar = #TRUE
{
gosub AtualizaMenu
}
if #MENUBUTTON = Button_Parar
{
gosub Parar
Set %Ativo #FALSE
}
}
Event SysMessage Macro terminado! Confira as estatisticas
halt
sub CriaMenu
Menu Clear
Menu Text Text_Rodape 5 290 Macro Fishing Avan�ado -|- Revisor: GoodOfWar
Menu Text Text_Rodape 5 310 Revis�o: %Data -|- %Versao
Menu Show 0 0
Menu HideEUO
wait 1s
gosub ChecaMenu
return
sub ChecaMenu
while #TRUE
{
if #MENUBUTTON = Button_Guardar_Desativado
{
Menu Font BGColor teal
Menu Delete Button_Guardar_Desativado
Menu Button Button_Guardar_Ativado 220 195 100 20 Ativado!
Set #MENUBUTTON N/A
Menu Font BGColor black
if #MENUBUTTON = Button_Guardar_Ativado
{
Menu Font Color red
Menu Delete Button_Guardar_Ativado
Menu Button Button_Guardar_Desativado 220 195 100 20 Desativado!
Set #MENUBUTTON N/A
Menu Font Color white
If #MenuButton = Button_Reconectador_Desativado
{
Menu Font BGColor teal
Menu Delete Button_Reconectador_Desativado
Menu Button Button_Reconectador_Ativado 220 220 100 20 Ativado!
Set #MENUBUTTON N/A
Menu Font BGColor black
If #MenuButton = Button_Reconectador_Ativado
{
Menu Font Color Red
Menu Delete Button_Reconectador_Ativado
Menu Button Button_Reconectador_Desativado 220 220 100 20 Desativado!
Set #MENUBUTTON N/A
Menu Font color white
if #MENUBUTTON = Button_Iniciar
{
Set #MENUBUTTON N/A
return
}
}
return
sub AtualizaMenu
return
sub Vara
gosub Reconectador
gosub Save
finditem %Vara
if #FINDKIND = 0
{
set #LObjectID #FindID
set #LTargetKind 3
event macro 17 0
target
event macro 25 0
event macro 22 0
Set %Chance %Chance + 1
gosub Journal
}
else
{
if #FindKind = 1
{
ignoreitem #FindID
gosub Vara
return
}
else
{
if #FindKind = -1
{
ignoreitem reset
event sysmessage Vara Nao Encontrada!
wait 5s
gosub Reconectador
}
}
}
return
sub NovoAlvo
gosub Save
Set %Chance 1
Set %X %X + 1
if %X > 3
{
Set %Y %Y - 1
Set %X -3
if %Y < -6
{
Set %Y -2
Gosub Mover
}
}
return
;========== Sub Mover ==========
sub Mover
gosub Save
; if %Guardar = #TRUE
; {
; if %Guarde = #TRUE
; {
; gosub Guardar
; Set %Guarde #FALSE
; }
; }
wait 3s
if %Comando = 1
{
msg Forward$
}
if %Comando = 2
{
msg Left$
}
if %Comando = 3
{
msg Back$
}
if %Comando = 4
{
msg Right$
}
IF %ComandoX > 6
{
Set %ComandoX 1
Set %Comando %Comando + 1
wait 2s
msg Drop Anchor$
gosub NovoAlvo
return
sub Journal
gosub Reconectador
ScanJournal %Jornal
if O_mundo_sera_salvo_em in #JOURNAL
{
Event Sysmessage Save Detectado, pausando macro por 15 segundos
wait 15s
}
if %FALHA1 in #JOURNAL
{
Set %Chance %Chance + 1
Set %NoJournal #FALSE
}
if Try_fishing in #JOURNAL
{
Set %Chance %Chance + 1
Set %NoJournal #FALSE
}
if You_pull_out_a in #JOURNAL
{
if Peixe_Atum in #JOURNAL
{
Set %PeixeNormal %PeixeNormal + 1
}
if Peixe_Espada in #JOURNAL
{
Set %PeixeNormal %PeixeNormal + 1
}
if Peixe_Salmao in #JOURNAL
{
Set %PeixeNormal %PeixeNormal + 1
}
if Peixe_Robalo in #JOURNAL
{
Set %PeixeNormal %PeixeNormal + 1
}
if Truly_Rare_Fish in #JOURNAL
{
Set %PeixeTrulyRare %PeixeTrulyRare + 1
}
if Highly_Peculiar_Fish in #JOURNAL
{
Set %PeixeHighPeculiar %PeixeHighPeculiar + 1
}
if Prized_Fish in #JOURNAL
{
Set %PeixePrized %PeixePrized + 1
}
if Wondrous_Fish in #JOURNAL
{
Set %PeixeWondrous %PeixeWondrous + 1
}
if Message_in_a_Bottle in #JOURNAL
{
Set %SOS %SOS + 1
}
if You_put_the in #JOURNAL
{
if Bottle_with_map_in_your in #JOURNAL
{
Set %Mapas %Mapas + 1
}
Set %Atualizar #TRUE
Set %NoJournal #FALSE
}
if %EstadoGuardar = Drag
GoSub GuardarNovo
return
;====================CORTA E GUARDA OS PEIXES, CRIADO POR GooDOfWar
;====================CORTA E GUARDA OS PEIXES, CRIADO POR GooDOfWar
cortar:
gosub Reconectador
if %PEGAPEIXEESPECIAL = #True && %EstadoGuardar = Nada && %PegaPeixeNormal =
#FALSE
{
finditem %Adaga C_ , #backpackid
if #findcnt > 0
{
set #lobjectid #findid
finditem GQD_EQD_DQD_FQD G_2 ; search for fish in backpack
while #findcnt > 0 ; WHILE There is fish in the backpack, peform everything
inside the brackets
{
event macro 17
target
set #ltargetid #findid
set #ltargetkind 1
event macro 22
finditem GQD_EQD_DQD_FQD G_2 ; search for more fish in your backpack.
}
}
}
else
{
goto guardar2
}
guardar2:
gosub Reconectador
finditem GQD_EQD_DQD_FQD_HTD_IND G_2
if #findcnt > 0
{
set #lobjectid #findid
finditem GQD_EQD_DQD_FQD_HTD_IND G_2 ; search for fish in backpack
while #findcnt > 0 ; WHILE There is fish in the backpack, peform everything
inside the brackets
{
ExEvent Drag #FindID #FindStack
Set %EstadoGuardar Drag
wait 9
gosub Reconectador
finditem GQD_EQD_DQD_FQD_HTD_IND G_2 ; search for more fish in your
backpack.
}
}
else
{
return
}
sub Barco
if #FINDKIND = 1
{
Set %X1 #FINDX ;Tiller Man
Set %Y1 #FINDY
}
if #FINDKIND = 1
{
Set %X2 #FINDX ;Hatch
Set %Y2 #FINDY
}
wait 1s
FindItem JNX_ENX_ONX_HNX G_15
if #FINDKIND = 1
{
Set %X1 #FINDX ;Tiller Man
Set %Y1 #FINDY
}
; � Nescess�rio pegar as coordenadas dos
itens de novo para achar a m�dia correta
FindItem ZNX_UVX_ZUX_LWX G_15
if #FINDKIND = 1
{
Set %X2 #FINDX ;Hatch
Set %Y2 #FINDY
}
}
else
{
Event SysMessage Erro inesperado ao tentar virar o barco automaticamente.
wait 2s
Event SysMessage Por favor, ajuste ele virado para East.
wait 2s
Event SysMessage E agora va para o lado mais norte possivel do barco.
wait 2s
Event SysMessage Voce tem 20 segundos.
wait 20s
}
return
sub Bag
Set #TargCurs 1
While #TargCurs = 1
{
wait 5
}
Set %BagID #LTargetID
return
sub GuardarNovo
FindItem X
goto cortar
if #FINDCNT > 0
{
ExEvent Drag #FindID #FindStack
Set %EstadoGuardar Drag
return
}
}
if #FINDCNT > 0
{
ExEvent Drag #FindID #FindStack
Set %EstadoGuardar Drag
return
}
}
IgnoreItem #FindID
return
sub Guardar
LinesPerCycle 5
gosub Save
if #MENURES = #TRUE
{
while #TRUE
{
FindItem DQD_FQD_GQD_EQD G_2
wait 20
IgnoreItem #FINDID
}
}
gosub Save
if #MENURES = #TRUE
{
while #TRUE
{
FindItem EQD G_2
if ( #FINDCOL <> 0 )
{
ExEvent Drag #FINDID #FINDSTACK
wait 20
ExEvent Dropc %BagID
}
else
{
break
}
wait 20
IgnoreItem #FINDID
}
}
gosub Save
if #MENURES = #TRUE
{
while #TRUE
{
FindItem XVH G_2
if #FINDCNT > 0
{
ExEvent Drag #FINDID #FINDSTACK
wait 20
ExEvent Dropc %BagID
}
else
{
break
}
wait 20
IgnoreItem #FINDID
}
}
gosub Save
if #MENURES = #TRUE
{
while #TRUE
{
FindItem HTD G_2
if #FINDCNT > 0
{
ExEvent Drag #FINDID #FINDSTACK
wait 20
ExEvent Dropc %BagID
}
else
{
break
}
wait 20
IgnoreItem #FINDID
}
}
LinesPerCycle %Velocidade
return
sub Parar
if %Guardar = #TRUE
{
gosub Guardar
}
return
sub Save
while #TRUE
{
ScanJournal %Jornal
if O_mundo_sera_salvo_em in #JOURNAL
{
Event SysMessage Save Detectado, Pausando Macro por 15 segundos
wait 15s
}
return
Sub ConfiguraReconectar
Set #MenuButton 0
N1:
if #MenuButton = closed
{
GoSub ConfigReconectador
return
}
if #MenuButton <> 3
goto N1
Menu Get 2
Set %Senha #MenuRes
Set %Reconectar #TRUE
Menu Get 1
set #MenuButton 0
N2:
if #MenuButton = closed
{
GoSub ConfigReconectador
return
}
if #MenuButton <> 3
goto N2
menu Get 2
set %ContraSenha #MenuRes
menu Get 1
;menu Hide
menu Clear
Menu Clear
Menu Text Text_Rodape 5 290 Macro Fishing Avan�ado -|- Revisor: GoodOfWar
Menu Text Text_Rodape 5 310 Revis�o: %Data -|- %Versao
If %Guardar = #True
{
Menu Font BGColor teal
Menu Button Button_Guardar_Desativado 220 195 100 20 Ativado!
Menu Font BGColor black
}
Else
{
Menu Font Color red
Menu Button Button_Guardar_Desativado 220 195 100 20 Desativado!
Menu Font Color white
}
If %Reconectador = #True
{
Menu Font BGColor teal
Menu Button Button_Reconectador_Ativado 220 220 100 20 Ativado!
Menu Font BGColor black
}
Else
{
Menu Font Color red
Menu Button Button_Reconectador_Desativado 220 220 100 20 Desativado!
Menu Font Color white
}
Menu Show 0 0
Menu HideEUO
Return
Sub Reconectador
If %Reconectador = #TRUE
{
if #contname = waiting_gump && #contsize = %GCLSize
{
Set %Reconect %Reconect + 1
wait 10s
key ENTER
wait 10s
set #SCNT 0
}
while #cliLogged = 0
{
;******Tela Account/Password******
if #contname = MainMenu_gump && #contsize = %TSESize
{
wait 10s
key ESC
wait 10s
msg %Senha
wait 10s
key ENTER
set #SCNT 0
}
;******Tela de Servidores******
if #contname = normal_gump && #contsize = %TSVSize
{
wait 10s
key ENTER
set #SCNT 0
wait 10s
key ENTER
wait 5s
key ENTER
}
;******Tela de Login (Escolha de Char)******
if #contname = Login_gump
{
wait 5s
key ENTER
wait 3s
key ENTER
click 618 446 d
set #SCNT 0
}
;******Tela de Waiting ou de Erros de conex�o******
if #contname = waiting_gump && #contsize = %TWESize && #SCNT >= 10
{
wait 10s
click 318 351 dmc
wait 20s
set #SCNT 0
}
return