Finds the first empty stack. Filtered slots are excluded unless a filter item is given.
The optional filter name on find_empty_stack only returns empty filtered stacks
Code: Select all
/c game.print(type(game.player.get_main_inventory().find_empty_stack('steel-chest'))) -- nil if there is not an empty steel-chest filter