[1.0.0] inv.find_empty_stack('steel-chest')
Posted: Sun Aug 23, 2020 4:28 am
find_empty_stack(item) → LuaItemStack
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
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