I made a simple inventory, without using arrays, the only problem i have item when i drop, changes it's id to 1 (checked in debug mode) when should be 2 or 3.
<img src="http://i.imgur.com/0ucZ9df.jpg" border="0" />
Develop games in your browser. Powerful, performant & highly capable.
ref