-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFF3.ahk
99 lines (85 loc) · 2.04 KB
/
FF3.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
; Final Fantasy 3 Windows Phone
; Auto Grind Script
; v0.3
; Press q to start the script.
; Press ESC to exit the script.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
LoopCount := 0
FightRounds := 4
PartySize := 4
q::
Loop{
Loop, 10
{
; Click anywhere
MouseClick, left, 1875, 1150
Sleep, 2000
}
; World map find a target phase
MouseClick, Left, 2000, 900, ,100, D
Sleep, 1000
Loop, 10
{
; Move down
MouseMove, 2000, 700, 100
Sleep, 1000
; Move up
MouseMove, 2000, 1100, 100
Sleep, 1000
}
MouseClick, Left, 2000, 900, ,100, U
; Wait until we're in battle
Sleep, 10000
; Guard Phase
TrayTip, GuardPhase, Entering Guard phase, 2000
Loop, %FightRounds%
{
Loop, %PartySize%
{
; Click guard
MouseClick, left, 700, 1980
Sleep, 1000
}
; Wait for NPC attacks to happen
TrayTip, NPC Attack(s) Starting, Wait for NPC(s) to attack, 15
Sleep, 15000
}
; Attack Phase
TrayTip, AttackPhase, Entering Attack phase, 2000
Loop, 2
{
; Click Attack
MouseClick, left, 690, 1440
Sleep, 1000
; Click Target
MouseClick, left, 690, 1440
}
Loop, 2
{
; Click guard
MouseClick, left, 700, 1980
Sleep, 1000
}
; Wait for attack to happen
TrayTip, Attack Starting, Wait for attack to happen, 15
Sleep, 15000
TrayTip, Win Animation, Wait for win animation, 10
; Wait for win animation
Sleep, 10000
; Loot Phase
TrayTip, Loot phase, Starting loot phase, 10
; Max number of clicks should be 10 - item, gil, a level up/job level up for each character
Loop, 10
{
; Click anywhere
MouseClick, left, 1875, 1150
Sleep, 2000
}
TrayTip, Restarting loop, Restarting loop: %LoopCount%, 15
Sleep, 15000
LoopCount = LoopCount + 1
}
Escape::ExitApp