Anyone can help me?
I have inventory system which works with item-bags.
There are 4 different item-bags. 1 bag have 4 other 8, 12, 16.
Now for the NPC shop I need to check if there is a free place in my inventory.
Lets say, I have 2 bags. 1 Bag with 16 slot and the second bag has 4 slots.
Bag 1 in database = slot 0 & place 0
Bag 2 in database = slot 0 & place 1
Items which are in bag 1 = slot 1 & place 0-15 (total 16)
Items which are in bag 2 = slot 2 & place 0-3 (total 4)
Now my big problem is how to check if one of those inventory have free place?
Any ideas? How I should do this or anything?