forked from elanthia-online/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fill-dirt.lic
34 lines (30 loc) · 1.06 KB
/
fill-dirt.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
=begin
Documentation: https://elanthipedia.play.net/Lich_script_repository#fill-dirt
=end
custom_require.call(%w[common common-items drinfomon])
class ForageDirt
include DRC
include DRCI
def initialize
@dirt_stacker = get_settings.dirt_stacker
fill_stacker unless bput("rummage #{@dirt_stacker}",
'it is full of dirt',
'it is almost full of dirt',
'over three quarters full',
'over half full',
'over a quarter full',
'has a little dirt',
'out of dirt') == 'it is full of dirt'
end
def fill_stacker
loop do
break unless forage?('dirt')
break if bput("put my dirt in my #{@dirt_stacker}",
'dumping some dirt',
'What were you referring',
'any more room left') == 'any more room left'
end
bput('drop dirt', 'You drop some dirt', 'What were you referring')
end
end
ForageDirt.new