ITEMINFO Structure (work in progress)
Posted: Fri May 09, 2003 8:17 am
Ok....so, 7 hours later and this is what I have come up with so far in regards to the ITEMINFO structure (I figured I'd try one that hadn't been posted yet). I am going to work on it more tomorrow and try to fill in as many of the gaps as I can; however, I tested it on quite a few of the items in my inventory and bank and it seems to check out so far with what I have labeled.
I'm mostly curious if I learned this correctly more than anything else ..hehe.
Oh..and the names of some of the fields I got from Lucy when I was double checking on raw data.
EDIT 1: Modified structure as per eqmule's latest wisdom!
I'm mostly curious if I learned this correctly more than anything else ..hehe.
Oh..and the names of some of the fields I got from Lucy when I was double checking on raw data.
Code: Select all
#define ITEM_NAME_LEN 64
#define LORE_NAME_LEN 80
typedef struct _ITEMINFO {
/*0x0*/ BYTE Unknown0000; //placeholder
/*0x1*/ BYTE Weight;
/*0x2*/ BYTE NoRent;
/*0x3*/ BYTE NoDrop;
/*0x4*/ BYTE Size;
/*0x5*/ BYTE Type;
/*0x6*/ BYTE Unknown0006[10];
/*0x10*/ CHAR IDFile[30];
/*0x2e*/ CHAR LoreName[LORE_NAME_LEN];
/*0x7e*/ BYTE Unknown0126[14];
/*0x8c*/ DWORD Cost;
/*0x90*/ CHAR Name[ITEM_NAME_LEN];
/*0xd0*/ DWORD IconNumber;
/*0xd4*/ DWORD Unknown0212;
/*0xd8*/ DWORD Unknown0216;
/*0xdc*/ DWORD Unknown0220; // -1 ?
/*0xe0*/ DWORD Unknown0224; // -1 ?
/*0xe4*/ DWORD Unknown0228;
/*0xe8*/ DWORD Unknown0232;
/*0xec*/ DWORD ItemID; //was called itemnumber but ItemID is a better decsription for this value...
union {
/*0xf0*/ COMMON Common;
/*0xf0*/ CONTAINER Container;
/*0xf0*/ BOOK Book;
};
} ITEMINFO, *PITEMINFO;