Load an item into player's cursor_stack ?
Posted: Sun Jul 31, 2016 9:05 am
Hi,
I know how to load an item in to player's cursor :
And I can put it back the same way.
But it does not put it back at the same place, as the game does.
When you manually pick up an item in your bag, the game draws a little black hand in place of the picked item.
And when you clear the cursor, the item comes back at this memorised location.
Is there a way to do this with the API ?
I know how to load an item in to player's cursor :
Code: Select all
player.cursor_stack.set_stack({name = "test", count = 1})
player.remove_item({name = "test", count = 1})
But it does not put it back at the same place, as the game does.
When you manually pick up an item in your bag, the game draws a little black hand in place of the picked item.
And when you clear the cursor, the item comes back at this memorised location.
Is there a way to do this with the API ?