-
Notifications
You must be signed in to change notification settings - Fork 0
/
Crafting_Bows_Armor.ahk
114 lines (109 loc) · 3.2 KB
/
Crafting_Bows_Armor.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
SetDefaultMouseSpeed 2
IniRead, craftx, %A_WorkingDir%\config.ini, COORDINATES, HoldToCraftX
IniRead, crafty, %A_WorkingDir%\config.ini, COORDINATES, HoldToCraftY
IniRead, invx, %A_WorkingDir%\config.ini, COORDINATES, InventoryTopLeftSlotX
IniRead, invy, %A_WorkingDir%\config.ini, COORDINATES, InventoryTopLeftSlotY
IniRead, diffx, %A_WorkingDir%\config.ini, COORDINATES, InventorySlotDiffX
IniRead, diffy, %A_WorkingDir%\config.ini, COORDINATES, InventorySlotDiffY
IniRead, delwx, %A_WorkingDir%\config.ini, COORDINATES, DestroyItemButtonX
IniRead, delwy, %A_WorkingDir%\config.ini, COORDINATES, DestroyItemButtonY
clickdelay := 250
F7::
Send {LButton Up}
Sleep 500
Send {Alt Up}
Reload
return
F6::Pause
F5::
Loop {
MouseMove craftx, crafty
Sleep 500
Send {LButton Down}
Sleep 61200
Send {LButton Up}
Sleep clickdelay
Send {Alt Down}
Sleep clickdelay
invh := invx + (diffx * 2)
invv := invy
Loop 4 {
MouseMove invh, invv
Send {RButton Down}
Sleep clickdelay
Send {RButton Up}
Sleep clickdelay
MouseMove delwx, delwy
Send {LButton}
invh := invh + diffx
Sleep clickdelay
}
invh := invx
invv := invy + diffy
Loop 6 {
MouseMove invh, invv
Send {RButton Down}
Sleep clickdelay
Send {RButton Up}
Sleep clickdelay
MouseMove delwx, delwy
Send {LButton}
invh := invh + diffx
Sleep clickdelay
}
invh := invx
invv := invy + (diffy * 2)
Loop 6 {
MouseMove invh, invv
Send {RButton Down}
Sleep clickdelay
Send {RButton Up}
Sleep clickdelay
MouseMove delwx, delwy
Send {LButton}
invh := invh + diffx
Sleep clickdelay
}
invh := invx
invv := invy + (diffy * 3)
Loop 6 {
MouseMove invh, invv
Send {RButton Down}
Sleep clickdelay
Send {RButton Up}
Sleep clickdelay
MouseMove delwx, delwy
Send {LButton}
invh := invh + diffx
Sleep clickdelay
}
invh := invx
invv := invy + (diffy * 4)
Loop 6 {
MouseMove invh, invv
Send {RButton Down}
Sleep clickdelay
Send {RButton Up}
Sleep clickdelay
MouseMove delwx, delwy
Send {LButton}
invh := invh + diffx
Sleep clickdelay
}
invh := invx
invv := invy + (diffy * 5)
Loop 6 {
MouseMove invh, invv
Send {RButton Down}
Sleep clickdelay
Send {RButton Up}
Sleep clickdelay
MouseMove delwx, delwy
Send {LButton}
invh := invh + diffx
Sleep clickdelay
}
Send {Alt Up}
Sleep 1000
}
return