forked from rpherbig/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
join-thieves.lic
46 lines (35 loc) · 1.04 KB
/
join-thieves.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
=begin
Documentation: https://elanthipedia.play.net/Lich_script_repository#join-thieves
=end
custom_require.call(%w[common common-travel drinfomon equipmanager])
class JoinThieves
include DRC
include DRCT
def find_beggar
wait_for_script_to_complete('find', ['beggar'])
return if DRRoom.npcs.include?('beggar')
echo '***UNABLE TO FIND THE BEGGAR***'
exit
end
def initialize
unless DRStats.commoner?
echo '***MUST BE A COMMONER***'
exit
end
EquipmentManager.new.empty_hands
find_beggar
fput('ask beggar about thieves')
3.times do
case bput('ask beggar about join', 'here ta steal me spot', 'Join what', 'you trying', 'got what it takes', 'what do I know about thieves', 'Got any idea what yer wanting to get into', 'steal a handful of water')
when 'got what it takes'
echo 'Your stats are not high enough to join.'
exit
end
end
walk_to(19_076)
fput('steal water from vat')
find_beggar
fput('give water to beggar')
end
end
JoinThieves.new