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?