-
Member
Check for empty space in the inventory
Hello guys .
recently i'm writing some code to pack / unpack gemstones by a command .
everything was good untill i found some big problem .
the problem goes like this:
when i make unpack for some lets say,30x gemstones package,
i need avilable place in the player inventory .
i dont know how to check for avilable place,
i have some function that checks for empty place in the inventory
but that functions check by item size (height,width) -
but i dont know what size of all the item of the player inventory .
what can i do ? i try alot of options...non of them works.
i try more option to check if the m_Type == -1 (empy place)
this one is worked,but this one is worked only for 1x empty place
i mean if i put for example soul,it worked,but if i put wings (that is eaqul to more then 10x rects..)
so its detect only one rect more,not 10 ....
please help!!!!
-
-
Re: Check for empty space in the inventory
well u gotta find an existing source that features these packing features, like ExTeam season 2.4 or whatever it is called and see their code and find what ur missing.