Page 1 of 1

0.6.1 removing items from player's inv

Posted: Thu Aug 01, 2013 7:09 am
by drs9999
It looks like that the remove-method is not working for the player's inventory anymore.

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
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?

Re: 0.6.1 removing items from player's inv

Posted: Thu Aug 01, 2013 11:37 am
by cube
Thank you for noticing this. It is a bug, and it will be fixed in 0.6.2. I'm moving this thread to resolved bugs.