Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- junk_regex = /^(?:scratched|corroded|polished|shiny|tarnished|dented|rusty|bent) (?:ring|medallion|earring|anklet|bracelet|fork|spoon|plate|coin|cup|nail|doorknob)$|^(?:drake|feras) (?:dagger|mace|greataxe|greatsword|yierka-spur|tiger-claw|scimitar)$|^smooth stone$|^steel shield$|^some tree bark$|^table leg$|^moldy bone$|^some tattered cloth$|^piece of iron$|^chipped brick$|^scratched steel helm$|^steel spring$|^travel guide token$|^empty flask$| armband$| slippers$| shoes$| boots$| tunic$| gloves$| cap$| hat$| hood$| snood$| cookie$| shawl$| cape$| overcoat$| greatcloak$| leggings$| pants$| trousers$| chemise$| tabard$/
- junk_regex = /^(?:scratched|corroded|polished|shiny|tarnished|dented|rusty|bent) (?:ring|medallion|earring|anklet|bracelet|fork|spoon|plate|coin|cup|nail|doorknob)$|^(?:drake|feras) (?:dagger|mace|greataxe|greatsword|yierka-spur|tiger-claw|scimitar)$|^smooth stone$|^steel shield$|^some tree bark$|^table leg$|^moldy bone$|^some tattered cloth$|^piece of iron$|^chipped brick$|^scratched steel helm$|^steel spring$|^travel guide token$|^empty flask$| armband$| slippers$| shoes$| boots$| tunic$| gloves$| cap$| hat$| hood$| snood$| cookie$| shawl$| cape$| overcoat$| greatcloak$| leggings$| pants$| trousers$| chemise$| tabard$/
- fput "look in my pack"
- if junk = GameObj.loot.reverse.find { |obj| obj.name =~ junk_regex }
- dothistimeout "get ##{junk.id}", 3, /^You/
- dothistimeout "put ##{junk.id} in barrel", 3, /^As you place|^There appears .*? significant value|^Are you crazy\?!\? Do you know what that's worth!\?!/
- dothistimeout "put ##{junk.id} in barrel", 3, /^As you place|^There appears .*? significant value|^Are you crazy\?!\? Do you know what that's worth!\?!|I could not find what you were referring to\./
- end
- end
- end
Add Comment
Please, Sign In to add comment