-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathVeterinaryTwoPetsAuto.uos
76 lines (76 loc) · 1.5 KB
/
VeterinaryTwoPetsAuto.uos
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
//Experience
//Heals 2 pets.
//Included health/weight check on self
@cleartargetqueue
@clearjournal
if dead 'self'
stop
endif
if not timerexists 'VetBandage'
createtimer 'VetBandage'
settimer 'VetBandage' 0
endif
while weight > maxweight
cast 'bless'
autotargetself!
pause 2500
if weight >= 428
headmsg 'OVER MAX'
endif
endwhile
//Setup
if not findalias 'pet1'
headmsg 'Select first pet'
promptalias 'pet1'
endif
if not findalias 'pet2'
headmsg 'Select second pet'
promptalias 'pet2'
endif
//Heal them to full
while not @inrange 'pet1' 2 and not @inrange 'pet2' 2
headmsg "Get closer"
pause 300
endwhile
while hits 'pet1' == maxhits 'pet1' and hits 'pet2' == maxhits 'pet2'
if weight > maxweight
cast 'bless'
autotargetself
endif
pause 500
endwhile
if diffhits 'pet1' > diffhits 'pet2'
if @inrange 'pet1' 1 and timer 'VetBandage' >= '6300'
bandage
autotargetobject! 'pet1'
settimer 'VetBandage' 0
if poisoned 'pet1'
pause 1200
endif
@cleartargetqueue
endif
else
if @inrange 'pet2' 1 and timer 'VetBandage' >= '6300'
bandage
autotargetobject! 'pet2'
settimer 'VetBandage' 0
if poisoned 'pet2'
pause 1200
endif
@cleartargetqueue
endif
endif
if not @injournal 'finish' 'system'
pause 1100
replay
elseif @injournal 'finish' 'system'
@clearjournal
replay
elseif @injournal 'too far away' 'system'
@clearjournal
replay
elseif @injournal 'stay close enough' 'system'
@clearjournal
replay
endif
@clearjournal