forked from rpherbig/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arenawatch.lic
45 lines (40 loc) · 1.34 KB
/
arenawatch.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
custom_require.call(%w[common common-arcana common-healing common-items common-summoning common-travel drinfomon equipmanager events spellmonitor])
def mainloop
ignore_npcs = %w[Usdiwi Servant]
npcs = DRRoom.npcs - ignore_npcs
loop do
watch_complete = false
if npcs != DRRoom.npcs - ignore_npcs
while !DRRoom.npcs.empty? && watch_complete == false
target = DRRoom.npcs.first
waitrt?
case bput("watch #{target}", 'you could try to pedal', 'you could try to bob', 'you could try to duck', 'you could try to jump', 'you could try to lean', 'you could try to cower', '.*')
when 'you could try to pedal'
bput('pedal', '.*')
watch_complete = true
when 'you could try to bob'
bput('bob', '.*')
watch_complete = true
when 'you could try to duck'
bput('duck', '.*')
watch_complete = true
when 'you could try to jump'
bput('jump', '.*')
watch_complete = true
when 'you could try to lean'
bput('lean', '.*')
watch_complete = true
when 'you could try to cower'
bput('cower', '.*')
watch_complete = true
end
end
end
npcs = DRRoom.npcs - ignore_npcs
pause 1
end
end
def bput(message, *matches)
DRC.bput(message, *matches)
end
mainloop