forked from brycole/gemstone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathduskruin_sewer.lic
221 lines (165 loc) · 4.3 KB
/
duskruin_sewer.lic
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
#author: darkcipher
#date: 8/27/15
#This script will search the sewers, bundle bloodscrip and stow items
#pass it the container where you want stuff stowed, should be your default STOW container
#
#You need to have a booklet or jar in the stow container
#
#I would NOT run this unattended, but it's YOUR choice
#Don't blame me if you get caught and all your bloodscrip confiscated
#Will exit when the container is FULL
#I don't feel like accounting for EVERY contingency, so, good luck
#
#fixed: should now properly stow bloodscrip at end of run
#fixed: was only looking for gold booklets/jars, should work with any of the ones from the store
#Need to fix, but probably won't: if the room shifts while you're about to move, will fail to move, do a manual move to get the script to go forward
#
##I code because I enjoy it and I like to help people, if my work is not
#appreciated, well, then, lots of luck writing your own scripts!
#
#Questions/issues? find me on PC as darkcipher or email me at [email protected]
container = variable[1]
if(!container)
echo ""
echo ""
echo ""
echo "Usage: sewer.lic <container>"
echo ""
echo "<container) should be your default stow container and must have an arena booklet or rat token jar"
echo ""
echo "Bloodscrip will be stored in <container> and script will exit when <container> is full!"
echo ""
echo ""
exit
end
loop {
fput "look in my " + container
tickets = matchtimeout 2, "dueling slip booklet", "rat token jar", "There is nothing in there"
if(!tickets)
echo "You have to have a slip booklet or jar for this to work, it needs to be in your " + container + "!"
exit
elsif(tickets =~ /booklet/)
echo ""
echo "Great, you have a booklet, let's go!"
echo ""
ticket_type = "book"
elsif (tickets =~ /jar/)
echo ""
echo "Great, you have a jar, let's go!"
echo ""
ticket_type = "jar"
else
echo "No Booklets or Jars found in " + container + "!" + " Exiting!"
exit
end
waitrt?
if checkroom "Cesspool"
wait_while {checkstunned}
waitrt?
if(checkright "bloodscrip")
fput "get my bloodscrip from my " + container
fput "bundle"
fput "put my bloodscrip in my " + container
end
until(checkstanding)
waitrt?
fput "stand"
end
wait_until{checkstanding};
echo ""
echo "PAUSING to wait until you stand up or before starting script!"
echo ""
pause 10
fput "stow right"
fput "stow left"
waitrt?
fput "climb rope"
waitfor "You reach up and try to grab the rope."
start_script "go2", ["23759"];
else
start_script "go2", ["23759"];
end
wait_until {checkroom "Bloodriven Village, Sewer Grate"}
fput "stow right"
fput "stow left"
fput "get my " + ticket_type + " from my " + container
waitfor "You remove"
if (ticket_type =~ /jar/)
fput "shake my jar"
elsif (ticket_type =~ /book/)
fput "tear my book"
end
matchtimeout 2, "You tear", "You shake"
fput "put my " + ticket_type + " in my " + container
fput "go grate"
waitfor "accepts your"
if !checkstanding
waitrt?
fput "stand"
waitfor "You stand back up."
end
loop {
if !checkstanding
waitrt?
fput "stand"
waitfor "You stand back up."
end
waitrt?
walk
fput "search"
found = waitfor "You search around and find", "You've recently searched", "As you begin to search the area, a wave of sewage", "You search around the area and find a small rat, but it scurries off before you can catch it!"
waitrt?
if(checkstunned)
break
end
case found
when /bloodscrip/
fput "get my bloodscrip from my " + container
fput "bundle"
fput "put my bloodscrip in my " + container
next
when /You search around and find/
fput "stow right"
stowed = waitfor "won't fit in the", "You put"
if stowed =~ /won't fit/
echo ""
echo "Container full! Exiting!"
echo ""
exit
end
next
when /You've recently searched/
next
when /As you begin to search the area, a wave of sewage cascades into the area and carries you away!/
waitrt?
fput "stand"
next
when /You search around the area and find a small rat, but it scurries off before you can catch it!/
waitrt?
while !checkstanding
waitrt?
fput "stand"
waitrt?
end
next
if(checkright "bloodscrip")
fput "get my bloodscrip from my " + container
fput "bundle"
fput "put my bloodscrip in my " + container
else
fput "stow right"
end
if(checkstunned)
break
end
else
echo ""
echo "Something is wrong! Fix me!"
echo ""
exit
end
if checkstunned
break
end
}
}