-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitalitywatch.lic
More file actions
148 lines (116 loc) · 2.3 KB
/
vitalitywatch.lic
File metadata and controls
148 lines (116 loc) · 2.3 KB
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
BAIL_OUT_HEALTH = 40
HIDE_HEALTH = 70
STAMINA_FREEZE = 40
def self.Fold (item)
pause_script("combat")
righthand = checkright
lefthand = checkleft
echo righthand
echo lefthand
if righthand
fput "stow right"
end
if lefthand
fput "stow left"
end
fput "get primer from wov sack"
fput "pull env"
fput "retreat"
fput "retreat"
fput "study " + item + " inst"
pause 1
waitrt?
fput "put primer in my wov sack"
pause 1
if checkright
if righthand.include? "primer"
waitrt?
fput "put primer in wov sack"
end
end
if checkleft
if lefthand.include? "primer"
waitrt?
fput "put primer in wov sack"
end
end
loop {
waitrt?
fput "retreat"
fput "retreat"
waitrt?
fput "fold my paper"
success = matchtimeout 5, "You make the final fold and gaze proudly .+"
if success
break
end
}
if checkleft
fput "exhale " + checkleft
end
if checkright
fput "exhale " + checkright
end
if righthand
fput "get my " + righthand
end
if lefthand
fput "get my " + lefthand
end
unpause_script("combat")
end
def self.Collect (item)
fput "retreat"
fput "retreat"
fput "collect " + item
fput "kick " + item
end
loop {
self.Fold "star"
scriptPaused = false;
pause 2
while checkhealth < HIDE_HEALTH
pause_script("combat")
if checkhealth < BAIL_OUT_HEALTH
echo " "
echo "GETING TOO LOW ON HP"
echo " "
fput "quit"
end
if checkhidden == false
fput "hide"
end
unpause_script("combat")
end
while checkstamina < STAMINA_FREEZE
echo " "
echo "GETING LOW ON STAMINA"
echo " "
scriptPaused = true
pause_script("combat")
while checkstamina < (STAMINA_FREEZE + 30)
sleep(5)
echo "sleep"
if DRSkill.getxp('Perception') == nil
echo "First"
self.Collect "rock"
elsif DRSkill.getxp('Mechanical Lore') == nil
echo "here"
self.Fold "star"
elsif DRSkill.getxp('Perception') < DRSkill.getxp('Mechanical Lore')
self.Collect "rock"
else
echo "LAST ONE"
self.Fold "star"
end
end
echo "end"
end
if scriptPaused
unpause_script("combat")
scriptPaused = false
end
if checkprone
fput "stand"
end
}