-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInscription [EasyUO + Injection].euo
133 lines (126 loc) · 3.17 KB
/
Inscription [EasyUO + Injection].euo
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
set %containerId TOEAKMD
set %craft Recall ; Recall | Flamestrike
set %recharge #false
msg $,waitmenu 'Spell Circles' 'Fourth Circle'$
msg $,cancelmenu$
if ( %craft = Recall )
{
msg $,automenu 'Spell Circles' 'Fourth Circle'$
msg $,automenu 'Spell Circle 4' 'Recall'$
}
if ( %craft = Flamestrike )
{
msg $,automenu 'Spell Circles' 'Seventh Circle'$
msg $,automenu 'Spell Circle 7' 'Flamestrike'$
}
wait 80
loop:
findItem MMF C_ , #backPackId
if ( #findKind = -1 || #findStack < 10 )
set %recharge #true
if ( %craft = Recall )
{
findItem KUF C , #backPackId
if ( #findKind = -1 )
set %recharge #true
findItem JUF C , #backPackId
if ( #findKind = -1 )
set %recharge #true
findItem MZF C , #backPackId
if ( #findKind = -1 )
set %recharge #true
}
if ( %craft = Flamestrike )
{
findItem SZF C , #backPackId
if ( #findKind = -1 || #findStack < 10 )
set %recharge #true
findItem RZF C , #backPackId
if ( #findKind = -1 || #findStack < 10 )
set %recharge #true
}
if ( %recharge = #true )
{
gosub recharge
set %recharge #false
}
event macro 13 23
wait 80
goto loop
sub recharge
gosub backpackToContainer MMF %containerId
if ( %craft = Recall )
{
gosub backpackToContainer KUF %containerId
gosub backpackToContainer JUF %containerId
gosub backpackToContainer MZF %containerId
gosub backpackToContainer WTL %containerId
}
if ( %craft = Flamestrike )
{
gosub backpackToContainer SZF %containerId
gosub backpackToContainer RZF %containerId
gosub backpackToContainer NUL %containerId
}
gosub openContainer %containerId
gosub containerToBackpack MMF 100 %containerId
if ( #result = #false )
pause
if ( %craft = Recall )
{
gosub containerToBackpack KUF 100 %containerId
if ( #result = #false )
pause
gosub containerToBackpack JUF 100 %containerId
if ( #result = #false )
pause
gosub containerToBackpack MZF 100 %containerId
if ( #result = #false )
pause
}
if ( %craft = Flamestrike )
{
gosub containerToBackpack SZF 100 %containerId
if ( #result = #false )
pause
gosub containerToBackpack RZF 100 %containerId
if ( #result = #false )
pause
}
return
sub backpackToContainer
set %_backpackToContainerFindId %1
set %_backpackToContainerContainerId %2
findItem %_backpackToContainerFindId C_ , #backPackId
if ( #findKind = -1 )
return
exevent drag #findId #findStack
wait 10
exevent dropC %_backpackToContainerContainerId
wait 10
return
sub containerToBackpack
set %_containerToBackpackFindId %1
set %_containerToBackpackAmount %2
set %_containerToBackpackContainerId %3
findItem %_containerToBackpackFindId C_ , %_containerToBackpackContainerId
if ( #findKind = -1 || #findStack < %_containerToBackpackAmount )
return #false
exevent drag #findId %_containerToBackpackAmount
wait 10
exevent dropC #backPackId
wait 10
return #true
; gosub openContainer [containerId]
sub openContainer
set %_containerId %1
_openContainer:
set #lObjectId %_containerId
event macro 17
set %_timeout #scnt + 10
_waitOpenContainer:
if ( %_timeout < #scnt )
goto _openContainer
if ( #contId = %_containerId )
return
goto _openContainer