Page 1 of 1

Item struct (pItem->Clairvoyance) returns bogus number.

Posted: Mon Dec 24, 2012 4:06 pm
by dewey2461
Looks like some of the structure needs a little work.

/*0x590*/ BYTE Unknown0x590[0x4];
/*0x594*/ DWORD Unknown0x594;
/*0x598*/ BYTE QuestItem;
/*0x599*/ BYTE Unknown0x599[0x3]; <-- only 3 bytes?
/*0x59c*/ DWORD Clairvoyance;
/*0x5a0*/ BYTE Unknown0x5a0[0x94];

Re: Item struct (pItem->Clairvoyance) returns bogus number.

Posted: Mon Dec 24, 2012 4:54 pm
by ieatacid
The three bytes after QuestItem are just padding so the next field (Clairvoyance) lines up. Clairvoyance must be in another location.

Re: Item struct (pItem->Clairvoyance) returns bogus number.

Posted: Mon Dec 24, 2012 6:13 pm
by ieatacid

Code: Select all

/*0x598*/ BYTE   QuestItem;
/*0x599*/ BYTE   Unknown0x599[0x7];
/*0x5a0*/ DWORD  Clairvoyance;
/*0x5a4*/ BYTE   Unknown0x5a4[0x90];
/*0x634*/
} ITEMINFO, *PITEMINFO;
Merry Christmas.