-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathTamerAssistant+AutoHeal+Escape.uos
151 lines (151 loc) · 3.89 KB
/
TamerAssistant+AutoHeal+Escape.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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
//More info:
//http://www.uoforum.com/threads/sussex-tamer-assistant-relax.79183/
//
//1. PK Protection + health warning + Auto attack colosest mob/animal
//------------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Auto Strength Buff if carrying too much
if @injournal 'to move' 'system'
cast 'Strength'
waitfortarget 3000
target! 'self'
clearjournal
endif
//Auto Protection
if not timerexists 'Protect'
createtimer 'Protect'
settimer 'Protect' 300000
endif
if timer 'Protect' >= 300000
cast 'Protection'
settimer 'Protect' 0
endif
// Set Pet
if not findalias 'pet'
promptalias 'pet'
endif
//Find RuneBook
if not findalias 'Escape Book'
promptalias 'Escape Book'
endif
// Pk Recall Routine
@unsetalias 'friend'
getfriend 'murderer' 'humanoid' 'closest'
while @inrange 'friend' 28
cast "Recall"
msg 'all follow me'
pause 200
msg 'all follow me'
pause 50
msg 'all follow me'
pause 50
msg 'all follow me'
pause 50
msg 'all follow me'
waitfortarget 2000
target! 0x406afe4f
@unsetalias 'friend'
endwhile
// 2. Autoheal Pet(s) //------------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//Health check of your pets
//----------------------------------------------------------------------------
//Strength if carrying to much
while @diffhits 'pet' > 0
// Auto Strength Buff if carrying too much
if @injournal 'to move' 'system'
cast 'Strength'
waitfortarget 3000
target! 'self'
clearjournal
endif
while inrange 'pet' 1
if @injournal 'close enough' 'system'
clearjournal
playmacro 'Champ Script'
endif
if @findtype 0xe21 'backpack'
useobject 'found'
waitfortarget 2000
target! 'pet'
else headmsg 'no bandages'
endif
//time adding loop
while not @injournal 'finish applying' 'system'
pause 50
// Auto Strength Buff if carrying too much
if @injournal 'too much' 'system'
cast 'Strength'
waitfortarget 3000
target! 'self'
clearjournal
endif
// headmsg 'Time adding'
// PK recall routine for protection during time adding loop--------
@unsetalias 'friend'
getfriend 'murderer' 'humanoid' 'closest'
while @inrange 'friend' 28
cast "Recall"
msg 'all follow me'
pause 200
msg 'all follow me'
pause 50
msg 'all follow me'
pause 50
msg 'all follow me'
pause 50
msg 'all follow me'
autotargetobject '0x406afe4f'
pause 500
@unsetalias 'friend'
endwhile
// to avoid getting lost in the time adding routine if pet is moving
if not inrange 'pet' 2
playmacro 'Champ Script'
endif
if @injournal 'not damaged' 'system'
clearjournal
playmacro 'Champ Script'
endif
//endwhile time adding until message in journal
endwhile
clearjournal
@unsetalias 'friend'
getfriend 'murderer' 'humanoid' 'closest'
while @inrange 'friend' 28
cast "Recall"
msg 'all follow me'
pause 200
msg 'all follow me'
pause 50
msg 'all follow me'
pause 50
msg 'all follow me'
pause 50
msg 'all follow me'
waitfortarget 2000
target! 0x406afe4f
@unsetalias 'enemy'
endwhile
//endwhile inrange
endwhile
@unsetalias 'friend'
getfriend 'murderer' 'humanoid' 'closest'
while @inrange 'friend' 28
cast "Recall"
msg 'all follow me'
pause 200
msg 'all follow me'
pause 50
msg 'all follow me'
pause 50
msg 'all follow me'
pause 50
msg 'all follow me'
waitfortarget 2000
target! 0x406afe4f
@unsetalias 'friend'
//endwhile pk protection
endwhile
//endwhile pet-health check
endwhile