forked from elanthia-online/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean-leather.lic
61 lines (50 loc) · 1.82 KB
/
clean-leather.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
49
50
51
52
53
54
55
56
57
58
59
60
61
=begin
Documentation: https://elanthipedia.play.net/Lich_script_repository#clean-leather
=end
custom_require.call(%w(common common-items common-money common-travel drinfomon))
class CleanLeather
include DRC
include DRCI
include DRCM
include DRCT
def initialize
arg_definitions = [
[
{ name: 'source', regex: /\w+/, description: 'bundle, container, etc' },
{ name: 'noun', regex: /\w+/, description: 'pelt, hide, skin, etc' },
{ name: 'storage', regex: /\w+/, optional: true, description: 'container to put them in, otherwise stow' }
]
]
args = parse_args(arg_definitions)
settings = get_settings
@stock_room = get_data('crafting')['tailoring'][settings.hometown]['tool-room']
ensure_copper_on_hand(2000, settings.hometown)
@preservative = args.noun == 'bone' ? 'bleaching solution' : 'tanning lotion'
while 'What were you' != bput("get #{args.noun} from my #{args.source}", 'You get', 'You carefully remove', 'What were you')
fput('stow left') if left_hand == 'bundling rope'
fput('stow right') if right_hand == 'bundling rope'
fput('get my hide scraper')
until 'looks as clean as you' == bput("scrape #{args.noun} with my scraper", 'roundtime', 'looks as clean as you')
waitrt?
end
waitrt?
fput('stow hide scraper')
if 'What were you' == bput("get my #{@preservative}", 'You get', 'What were you')
order_stow_lotion
end
bput("pour #{@preservative} on my #{args.noun}", 'roundtime')
waitrt?
fput("stow my #{@preservative}")
if args.storage
fput("put my #{args.noun} in my #{args.storage}")
else
fput("stow my #{args.noun}")
end
end
end
def order_stow_lotion
walk_to(@stock_room)
order_item(@stock_room, 8)
end
end
CleanLeather.new