-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNewClimb.cmd
412 lines (349 loc) · 9.4 KB
/
NewClimb.cmd
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
## Climbing script.
## Supports Crossing, Riverhaven (Swimming), Shard, Outside Shard North & East Gate, Wyvern Mountain, Boar Clan
## Crossing|Shard|OutsideShard|WyvernMountain/BoarClan Climbing by Boobear
## Swimming Script compiled by Thyon
## Underwharf swimming by Nithogr
## Faldesu part by... someone else - not sure who
##DEBUG 10
ACTION send exit when eval $health < 60
if_1 then var target_rate %1
else var target_rate 30
send #var room_temp $roomid
## ********
START_OVER:
if ("$zoneid" = "127") then {
## BOAR_CLAN TREE CLIMBING
var TREE_ROOMS 166|165|168|172|174|183|175|179|182|200|184|193|187|193|211|214|211|193|187|193|184|200|182|179|175|183|174|172|168|165|166
eval TREE_ROOMS.count count("%TREE_ROOMS","|")
var room_counter 0
gosub CLIMB_BOARCLAN
put #parse ATHLETICS DONE
EXIT
}
if ("$zoneid" = "69") then {
## WYVERN_MOUNTAIN CLIMBING
GoSub CLIMB_WYVERNS
gosub ROOM_CHECK $room_temp
put #parse ATHLETICS DONE
EXIT
if ("$zoneid" = "1") then {
##CROSSING Climbing locations
var CLIMB.ZONE CROSSING
var ROOM.NUMBER 68|170|171|172|252|386|387|387|395|396|396|398|399|768
var ROOM.CLIMB bank|wall|wall|wall|tree|embrasure|break|embrasure|embrasure|break|embrasure|embrasure|embrasure|trunk
}
if ("$zoneid") = "67") then {
#SHARD Climbing locations
var CLIMB.ZONE SHARD
var ROOM.NUMBER 1|32|42|43|48|127|128|130|131|133|134|199|228|1|EAST-SHARD
var ROOM.CLIMB ladder|ladder|city wall|ladder|city wall|ladder|embrasure|ladder|embrasure|ladder|embrasure|stairway|embrasure|ladder|NULL
}
if ("$zoneid" = "66") then {
#Outside SHARD North & East Gates - Climbing locations
var CLIMB.ZONE OUTSIDE_EAST-SHARD
var ROOM.NUMBER 16|26|80|174|189|202|257|298|300|476|477|666|INSIDE-SHARD
var ROOM.CLIMB tall cottonwood|steep trail|low stile|boulders|ridge|ladder|deadfall|tree|trunk|ledge|ledge|tree|NULL
}
if ("$zoneid" = "30") then {
#RIVERHAVEN! --- SWIM!
var target_rate 15
GoSub ROOM_CHECK 8
goto Underwharf
# if ($Athletics.Ranks < 75) then goto Glade
# if (($Athletics.Ranks > 74) && ($Athletics.Ranks < 399)) then goto Underwharf
# if ($Athletics.Ranks > 400) then goto Faldesu
}
eval ROOM.COUNT count ("%ROOM.NUMBER", "|")
counter set 0
## ********
MAIN:
if ($Athletics.LearningRate > %target_rate) then GOTO END
if (%c > %ROOM.COUNT) then counter set 0
if (matchre (%ROOM.NUMBER(%c),"EAST-SHARD")) then {
var CLIMB.ZONE OUTSIDE_EAST-SHARD
GoSub MAP_CHECK
GOTO START_OVER
}
if (matchre (%ROOM.NUMBER(%c),"INSIDE-SHARD")) then {
var CLIMB.ZONE SHARD
GoSub MAP_CHECK
GOTO START_OVER
}
GoSub MAP_CHECK
put #ECHO >Output Going to %ROOM.NUMBER(%c) , %ROOM.CLIMB(%c)
ECHO ****** CLIMBING %CLIMB.ZONE, ---->>>Going to RM: %ROOM.NUMBER(%c) to climb the: %ROOM.CLIMB(%c)
GoSub ROOM_CHECK %ROOM.NUMBER(%c)
GoSub CLIMB %ROOM.CLIMB(%c)
counter add 1
wait .1
GOTO MAIN
## ********
MAP_CHECK:
if (%CLIMB.ZONE = "CROSSING") then {
## CROSSING Map checks
## zoneid-4 is Outside Crossing West Gate
if $zoneid = 4 then GoSub ROOM_CHECK 14
## zoneid-6 is Outside Crossing North Gate
if $zoneid = 6 then GoSub ROOM_CHECK 23
## zoneid-7 is Outside Crossing, Northern Trade Road
if $zoneid = 7 then GoSub ROOM_CHECK 349
## zoneid-8 is Outside Crossing East Gate
if $zoneid = 8 then GoSub ROOM_CHECK 43
## zoneid = 1 is Crossing
if $zoneid = 1 then RETURN
}
if (%CLIMB.ZONE = "SHARD") then {
## SHARD MAP Checks
##zoneid = 67 is Shard
if $zoneid = 67 then RETURN
##zoneid = 68 is South Gate
if $zoneid = 68 then GoSub ROOM_CHECK 225
##zoneid = 69 is Outside West gate (Can't go in if not a citizen)
if $zoneid = 69 then GoSub ROOM_CHECK 1
##zoneid = 66 is Outside East & North gate (Go back in shard through East Gate (#216))
if $zoneid = 66 then GoSub ROOM_CHECK 216
}
if (%CLIMB.ZONE = "OUTSIDE_EAST-SHARD") then {
##zoneid = 66 is Outside North Shard
if $zoneid = 66 then RETURN
##zoneid = 67 is Inside Shard
if $zoneid = 67 then GoSub ROOM_CHECK 132
}
wait .1
GOTO MAP_CHECK
## ********
CLIMB:
send climb $0
wait .5
RETURN
## ********
ROOM_CHECK:
var Tmp_Room_ID $1
var Tmp_Map_ID $zoneid
## ********
ROOM_CHECK.SUB:
wait .3
if (($roomid != %Tmp_Room_ID) && ("$zoneid" = %Tmp_Map_ID) then {
matchre RETURN ^YOU HAVE ARRIVED
matchre ROOM_CHECK.SUB FAILED
matchre ROOM_CHECK.SUB Destination ID
put #goto %Tmp_Room_ID
matchwait 15
GOTO ROOM_CHECK.SUB
}
RETURN
}
RETURN
## ********
END:
send #parse CLIMB DONE
EXIT
## ********
RETURN1:
RETURN
## *****
CLIMB_WYVERNS:
gosub ROOM_CHECK 14
gosub ROOM_CHECK 462
gosub ROOM_CHECK 520
gosub ROOM_CHECK 522
gosub ROOM_CHECK 525
gosub ROOM_CHECK 467
gosub ROOM_CHECK 473
gosub ROOM_CHECK 537
gosub ROOM_CHECK 493
gosub ROOM_CHECK 502
gosub ROOM_CHECK 510
gosub ROOM_CHECK 487
gosub ROOM_CHECK 514
gosub ROOM_CHECK 14
send collect rock
pause 14
send kick rocks
pause 1
send collect rock
pause 14
send kick rocks
pause 1
if ($Athletics.LearningRate < 30) then GOTO CLIMB_WYVERNS
RETURN
## ************
CLIMB_BOARCLAN:
gosub ROOM_CHECK %TREE_ROOMS(%room_counter)
send climb tree
pause 2
if ($roomid = 0) then gosub CLIMB_DOWN_TREE
math room_counter add 1
if ($Athletics.LearningRate > 30) then {
gosub ROOM_CHECK $room_temp
RETURN
}
if (%room_counter = %TREE_ROOMS.count) then var room_counter 0
goto CLIMB_BOARCLAN
## ************
CLIMB_DOWN_TREE:
if ($roomid = 0) then {
gosub RETREAT
send climb tree
pause 2
GOTO CLIMB_DOWN_TREE
}
RETURN
## ************
RETREAT:
wait .1
matchre RETURN ^You retreat from combat.|^You are already as far away as you can get!
matchre RETREAT ^You should stop practicing
matchre RETREAT ^\.\.\.wait|^Sorry\,
send retreat
matchwait 1
GOTO RETREAT
######################## RIEVERHAVEN SWIMMING SECTION ----- CLEAN THIS UP LATER , Doesn't work as good as I"d like.-----
Glade:
move w
move w
move w
pause 1
move w
move w
move w
pause 1
move w
send go gate
move nw
send go path
send go trail
pause .5
move ne
pause
move n
pause
Swim:
move n
pause
move sw
pause
move e
pause
mindcheck:
if $Athletics.LearningRate > %target_rate then
goto GladeHome
else
goto Swim
GladeHome:
move s
pause
move sw
pause
send go trail
pause 1
send go path
pause 1
move se
send go gate
pause .5
move e
move e
move e
pause .5
move e
move e
pause .5
move e
move e
pause 3
echo ************
echo You're Home!
echo ************
put #parse ATHLETICS DONE
exit
Underwharf:
gosub ROOM_CHECK 176
gosub ROOM_CHECK 194
if ($Athletics.LearningRate > %target_rate) then {
gosub ROOM_CHECK 8
put #parse ATHLETICS DONE
exit
}
goto Underwharf
Faldesu:
move e
move e
move e
move e
move e
move e
move e
pause
send go gate
pause 1
send dive river
pause 2
swim3:
pause 2
swim.faldesu.look:
matchre swim.faldesu.north South Bank\]
matchre swim.faldesu.south North Bank\]
send look
matchwait
swim.faldesu.north:
pause .5
matchre swim.faldesu.northwest ^An enormous slab of rock is upthrust in the river to the north
matchre swim.faldesu.return North Bank\]$|^You can't swim in that direction
matchre swim.faldesu.north ^Obvious paths:|^...wait|^Sorry|^You slap|^You struggle
send n
matchwait
swim.faldesu.northwest:
pause .5
matchre swim.faldesu.northeast ^The rushing waters split around a huge boulder rising out of the river to the east
matchre swim.faldesu.northwest ^...wait|^Sorry|^An enormous slab of rock is upthrust in the river to the north|^You work against
matchre swim.faldesu.south ^You slap
send nw
matchwait
swim.faldesu.northeast:
pause .5
matchre swim.faldesu.north ^An enormous slab of rock is upthrust in the river to the south
matchre swim.faldesu.northeast ^...wait|^Sorry|^You slap|^The rushing waters split around a huge boulder rising out of the river to the east|^You work against
send ne
matchwait
swim.faldesu.south:
pause .5
matchre swim.faldesu.southwest ^An enormous slab of rock is upthrust in the river to the south
matchre swim.faldesu.return South Bank]$|You can't swim in that|^You can't swim in that direction
matchre swim.faldesu.south ^Obvious paths:|^...wait|^Sorry|^You slap|^You struggle
send s
matchwait
swim.faldesu.southwest:
pause .5
matchre swim.faldesu.southeast ^The rushing waters split around a huge boulder rising out of the river to the east
matchre swim.faldesu.southwest ^...wait|^Sorry|^You slap|^An enormous slab of rock is upthrust in the river to the south|^You work against
send sw
matchwait
swim.faldesu.southeast:
pause .5
matchre swim.faldesu.south ^An enormous slab of rock is upthrust in the river to the north
matchre swim.faldesu.southeast ^...wait|^Sorry|^You slap|^The rushing waters split around a huge boulder rising out of the river to the east|^You work against
send se
matchwait
swim.faldesu.return:
if $Athletics.LearningRate > %target_rate then
goto FaldesuHome
else
goto swim3
FaldesuHome:
send climb bridge
send go gate
move w
move w
move w
move w
move w
move w
move w
pause
****************
YOU'RE HOME
****************
pause 2
put #parse ATHLETICS DONE
EXIT