Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def box_dropper
- def box_drop
- $contents.each { |box|
- fput "get #{box} from #{$container}"
- fput "drop #{box}"
- }
- end
- def scan_box
- result = dothistimeout "look in my #{Vars.lootsack}", 5, /In the .*? you see|There is nothing in there/
- if result !~ /There is nothing in there/
- $contents = result.scan(/\b(?:#{$boxitems.join('|')})(?= and an? |,|\.)/)
- if $contents.empty? == false
- echo "Lootsack: #{$contents}"
- $container = "my #{Vars.lootsack}"
- box_drop
- end
- end
- end
- scan_box
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement