forked from elanthia-online/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfill-dirt.lic
More file actions
30 lines (27 loc) · 1.03 KB
/
fill-dirt.lic
File metadata and controls
30 lines (27 loc) · 1.03 KB
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
=begin
Documentation: https://elanthipedia.play.net/Lich_script_repository#fill-dirt
=end
class ForageDirt
def initialize
@dirt_stacker = get_settings.dirt_stacker
fill_stacker unless DRC.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 DRC.forage?('dirt')
break if DRC.bput("put my dirt in my #{@dirt_stacker}",
'dumping some dirt',
'What were you referring',
'any more room left') == 'any more room left'
end
DRC.bput('drop dirt', 'You drop some dirt', 'What were you referring')
end
end
ForageDirt.new