-
Notifications
You must be signed in to change notification settings - Fork 0
/
Veterinary [EasyUO].euo
80 lines (72 loc) · 1.58 KB
/
Veterinary [EasyUO].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
; Make sure you have bandages in your backpack
; Need water trough on ground within 1 tile to clean bandages
set %petOne NTBI ; Has to be named "One"
set %petTwo YFII ; Has to be named "Two"
set %petThree YWHI ; Has to be named "Three"
set %waterTrough VEE_QEE
set %bloodyBandages AMF
set %bandages ZLF
ignoreItem reset
set %attackTimer #scnt
loop:
if ( %attackTimer <= #scnt )
{
gosub attack One %petTwo
gosub attack Two %petThree
gosub attack Three %petOne
set %attackTimer #scnt + 3
}
gosub cleanBandages
gosub heal %petOne
gosub heal %petTwo
gosub heal %petThree
goto loop
sub cleanBandages
findItem %bloodyBandages C_ , #backPackId
if ( #findKind = -1 )
return
set #lObjectId #findId
findItem %waterTrough G_2
if ( #findKind = -1 )
return
set #lTargetId #findId
set #lTargetKind 1
event macro 17
target 6s
event macro 22
return
sub attack
set %_attackName %1
set %_attackId %2
set #lTargetId %_attackId
set #lTargetKind 1
msg $ , %_attackName kill$
target 6s
event macro 22
return
sub heal
set %_healId %1
_heal:
findItem ZLF C_ , #backPackId
set #lObjectId #findId
set #lTargetId %_healId
set #lTargetKind 1
event macro 17
target 6s
set %_healJournal #jIndex + 1
set %_healTimeout #scnt + 3
event macro 22
_healJournal:
if ( %_healTimeout < #scnt )
return
if ( %_healJournal > #jIndex )
goto _healJournal
scanJournal %_healJournal
if ( it_is_not_wounded in #journal )
return
if ( you_finish_applying_bandages in #journal )
return
if ( you_fail_to_apply in #journal )
goto _heal
set %_healJournal %_healJournal + 1
goto _healJournal