forked from elanthia-online/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smash-pumpkins.lic
48 lines (40 loc) · 1.1 KB
/
smash-pumpkins.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
custom_require.call(%w(events common-travel common))
UserVars.last_darkbox = Room.current.id
Flags.add('pumpkin-leeches', 'only to rain down around you afterwards')
junk_list = get_settings.pumpkin_junk.map { |x| /\b#{x}/i }
DRCT.walk_to(10_570)
loop do
break if checkbleeding
break if checkhealth < 75
until checkright || checkleft
fput('stand') unless checkstanding
if /injured/ =~ DRC.bput('grab vat', 'roundtime', 'You are too injured', 'Perhaps that would work better')
DRCT.walk_to(19_104)
exit
end
pause 1
waitrt?
end
DRCT.walk_to(10_569)
DRC.bput('break my pumpkin', 'wipe off pumpkin residue')
pause
DRCT.walk_to(10_570)
while thing = DRC.left_hand || DRC.right_hand
case thing
when *junk_list
fput("put #{thing} in bucket")
else
# if thing =~ /ticket/
# fput("get ticket from my bag")
# fput("combine")
# end
fput("stow #{thing}")
end
pause
end
next unless Flags['pumpkin-leeches']
Flags.reset('pumpkin-leeches')
pause 4
DRC.wait_for_script_to_complete('tendme')
end
DRCT.walk_to(19_104)