PDA

View Full Version : Sloot trashing boxes instead of selling



Loumeer
03-03-2017, 12:37 PM
Can somebody tell me why sloot is trashing my loot at the locksmith instead of selling it at the pawnshop? I thought I had it set correctly but it still is throwing them in the bin.

Elerdran
03-03-2017, 02:44 PM
I just took a look... unfortunately, it's because the newest version isn't written correctly for that. It works if you have empty boxes in your inventory (if you picked them yourself for example), but if you use the locksmith, the locksmith routine is called first and automatically trashes them before the script looks for empty boxes in your inventory to sell at the pawnshop.

You could probably replace line 1262 (unless trash.nil?) with:



if box.name =~ /silver|gold|mithril/ && settings['enable_sell_type_empty_box']
put_item.call(box,UserVars.boxsack)
elsif !trash.nil?


That should keep valuable boxes in your inventory so they'll be detected when going to the pawnshop later in the script. It will trash the cheap wooden ones. This is how sloot used to be written.