Diablo had an inventory system where items had size, like a bow might take up 6 slots: a matrix 2 across, and 3 down.
So, what he would need to do is know the dimensions of the item, then find the inventory location he is trying to put the item in, by finding what slot the top left corner of the item is in, then check the inventory for that matrix of slots and see if they are all empty. Then, if they are, allow the item to be dropped and it will take up those slots.
So, what he would need to do is know the dimensions of the item, then find the inventory location he is trying to put the item in, by finding what slot the top left corner of the item is in, then check the inventory for that matrix of slots and see if they are all empty. Then, if they are, allow the item to be dropped and it will take up those slots.