forked from elanthia-online/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bonding-rose.lic
110 lines (103 loc) · 3.96 KB
/
bonding-rose.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
=begin
Documentation: https://elanthipedia.play.net/Lich_script_repository#bonding-rose
=end
custom_require.call(%w[common common-items common-money common-travel equipmanager])
class BondingRose
def initialize
@settings = get_settings
unless DRStats.cleric?
echo '***MUST BE A CLERIC***'
exit
end
make_rose
end
def make_rose
temp_settings = @settings
temp_settings.hometown = 'Crossing'
DRCM.ensure_copper_on_hand(1000, temp_settings)
EquipmentManager.new.empty_hands
unless DRCI.exists?('mortar')
DRCT.order_item(8860, 1)
DRC.bput('stow mortar', 'You put')
end
unless DRCI.exists?('pestle')
DRCT.order_item(8860, 3)
DRC.bput('stow pestle', 'You put')
end
unless DRCI.exists?('mixing stick')
DRCT.order_item(8860, 5)
DRC.bput('stow mix stick', 'You put')
end
unless DRCI.exists?('small jar')
DRCT.buy_item(19_076, 'small jar')
DRC.bput('get oil in my small jar', 'You get')
DRC.bput('drop my oil', 'You drop')
DRC.bput('stow my small jar', 'You put')
end
DRCT.buy_item(19_076, 'oil')
fput('prep bless')
pause 8
fput('cast my oil')
DRC.bput('put my oil in my small jar', 'You put')
DRCT.buy_item(19_076, 'dracon crystals')
DRC.bput('put my crystals in my mortar', 'You put', 'The mortar already has')
DRC.bput('get my mortar', 'You get')
DRC.bput('get my pestle', 'You get')
while DRC.bput('crush crystals in my mortar with my pestle', 'into some dracon powder', 'with your pestle') == 'with your pestle'
pause 1
end
EquipmentManager.new.empty_hands
DRC.bput('get powder from my mortar', 'You get')
DRC.bput('break my powder', 'You break')
DRC.bput('drop my powder', 'You drop')
DRC.bput('break my powder', 'You break')
DRC.bput('drop my powder', 'You drop')
# This leaves the 3 parts needed in your hand
DRC.bput('put my powder in my small jar', 'You put')
EquipmentManager.new.empty_hands
DRCT.walk_to(1977)
DRC.bput('look bough', 'The bough sways')
move('go path')
DRCT.walk_to(12_133)
case DRC.bput('get petal', 'You gather', 'You decide to leave')
when 'You decide to leave'
echo('You have gotten petals too recently, retry in 2 hours.')
exit
end
DRC.bput('put my petal in my mortar', 'You put')
DRC.bput('get my mortar', 'You get')
DRC.bput('get my pestle', 'You get')
while DRC.bput('crush petal in my mortar with my pestle', 'into some rose pulp', 'with your pestle') == 'with your pestle'
pause 1
end
EquipmentManager.new.empty_hands
DRC.bput('get pulp from my mortar', 'You get')
DRC.bput('put my pulp in my small jar', 'You put')
DRC.bput('get my small jar', 'You get')
DRC.bput('get my mixing stick', 'You get')
while DRC.bput('mix my small jar with my mix stick', 'combining them to create some rose attar', 'but nothing happens') == 'but nothing happens'
pause 1
end
EquipmentManager.new.empty_hands
case DRC.bput('get rose', 'You carefully', 'The rose thorns jab your hands and prevent you from getting another')
when 'The rose thorns jab your hands and prevent you from getting another'
echo('There is a 24 hour cooldown on getting a new rose, try again later.')
exit
end
DRC.bput('get attar from small jar', 'You get')
DRC.bput('sprinkle attar on my rose', 'You sprinkle')
DRC.bput('commune glythtide', 'You whisper a prayer over the rose')
DRCI.stow_hands
DRCT.walk_to(11_691)
DRC.bput('get my rose', 'You get')
case DRC.bput('put rose on flat rock', 'You reverently place', 'You stop as you realize there')
when 'You stop as you realize there'
echo("Remove whatever is on the rock, put your rose on it, and 'offer rose on flat rock' to finish.")
exit
end
DRC.bput('offer rose on flat rock', 'You beseech Saemaus')
DRC.bput('get rose on flat rock', 'You get a Saemaus')
echo('All done!')
end
end
BondingRose.new