Read tiles.cfg, find the graphic entry for the objtype, and read the UOFlags prop. Below is the flag byte for the item having stacking properties:
0x00000800 Generic/Stackable
Examples below of a tiles.cfg entry of stackable items:
Code:
tile 0xf86
{
Desc Mandrake Root%s%
UoFlags 0x00000801
Height 1
Weight 0
Stackable 1
Movable 1
}
tile 0xf87
{
Desc Eye%s% of Newt
UoFlags 0x00000801
Height 1
Weight 1
Stackable 1
Movable 1
}
tile 0xf88
{
Desc Nightshade
UoFlags 0x00000801
Layer 1
Height 1
Weight 0
Stackable 1
Movable 1
}
tile 0xf89
{
Desc Obsidian
UoFlags 0x00000801
Height 1
Weight 1
Stackable 1
Movable 1
}
Check the bit for stackable, to see if it is stackable or not, and there ya go
