forked from brycole/gemstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboxempty.lic
More file actions
27 lines (26 loc) · 836 Bytes
/
boxempty.lic
File metadata and controls
27 lines (26 loc) · 836 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
=begin
Here you go.. you ungrateful sons of bitches!!!!
By: Drafix
=end
boxes = GameObj.loot.find_all{|item| item.type =~ /box/}
cloak = GameObj.inv.find{|item| item.name =~ /#{UserVars.lootsack}/}
unless cloak
echo
echo "*** You have not set your lootsack ***"
echo "*** ;settings add lootsack <value> ***"
echo "*** Where <value> is where you place your loot ***"
echo
exit
end
boxes.each{|box| fput "open ##{box.id}";fput "look in ##{box.id}"}
boxes.each{|box|
box.contents.each{|item|
next if item.name =~ /urglaes|black ora|coins|box|chest|trunk|coffer/
if item.type =~ /junk/
fput "_drag ##{item.id} drop"
else
fput "_drag ##{item.id} ##{cloak.id}"
end
}
}
boxes.each{|box| dothistimeout "get coins in ##{box.id}", 5, /^You gather the/ if box.contents.to_s.include?('coins') }