-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcombatlooter.lic
More file actions
52 lines (39 loc) · 895 Bytes
/
combatlooter.lic
File metadata and controls
52 lines (39 loc) · 895 Bytes
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
creature = "hog"
def self.cleanUp(item)
ammoCleaned = false
while !ammoCleaned do
pause
fput "stow " + item
ammoCleanedCheck = matchtimeout 3, "Stow ?","You pick ?","You put ?","...?"
if ammoCleanedCheck.instance_of? String
if ammoCleanedCheck.include? "what"
ammoCleaned = true
end
elsif ammoCleanedCheck.find { |e| /what/ =~ e }
ammoCleaned = true
end
end
end
looterstart:
match "LootCreature", "which appears dead"
match "LootCreature","balanced\]"
fput "look"
matchwait
LootCreature:
pause_script ("combat")
fput "perform preserve on " + creature
if DRSkill.getxp("Thanatology") == nil || DRSkill.getxp("Thanatology") > 0
# healUp
fput "health"
end
fput "arrange"
fput "skin"
fput "loot"
self.cleanUp('coin')
self.cleanUp('gem')
self.cleanUp('box')
pause
pause
unpause_script("combat")
pause 5
goto "looterstart"