Hi all,

Im trying to read the dat flags from the client, that is from the clients own memory structure of the dat file.
However, it seems not to be working the way it should.
Most items seems to be correct but food / swords / some other items is identified as containers for some reason.

I wrote this for reading flags from the struct directly;
I'm also using 8.6 addresses so;

Addresses.Dat.DatAddress = *0x7998DC (whatever this ptr points to)
Addresses.Dat.StepItems = 0x4C
Addresses.Dat.OffsetFlag = 36

Code:
BOOL IsDatItem(int ItemId, int nFlag)
{
	long nDatFlag = 0;
	nDatFlag = *(long*)(Addresses.Dat.DatAddress + (Addresses.Dat.StepItems * (ItemId - 100)) + Addresses.Dat.OffsetFlag);
	return (nDatFlag & nFlag) ? TRUE : FALSE;
}
The same issue appears when I read the DAT file from file.

Any suggestions?
Best regards.