0.6.1 removing items from player's inv
Posted: Thu Aug 01, 2013 7:09 am
It looks like that the remove-method is not working for the player's inventory anymore.
When I use:
the game crashs (without any error-msg).
Anyway it is still working for other inventories like chests.
So how can I use it in 0.6.x?
When I use:
Code: Select all
if (game.getplayer().character.getinventory(1).getitemcount("nanobots") >= nanobots) then
game.player.character.getinventory(1).remove{name = "nanobots",count = nanobots}
end
Anyway it is still working for other inventories like chests.
So how can I use it in 0.6.x?