The iteminfo structure is wrong. The tribute value field has moved and with the fix in http://macroquest2.com/phpBB2/viewtopic.php?p=55372 the tribute value is corrected.
However, when displaying containers i get (null) as the container type.
Moderator: MacroQuest Developers

Code: Select all
typedef struct _ITEMINFO {
/*0x00*/ CHAR Name[ITEM_NAME_LEN];
/*0x40*/ CHAR LoreName[LORE_NAME_LEN];
/*0x90*/ CHAR IDFile[0x20];
/*0xb0*/ DWORD ItemNumber;
/*0xb4*/ DWORD EquipSlots;
/*0xb8*/ DWORD Cost;
/*0xbc*/ DWORD IconNumber;
/*0xc0*/ BYTE Unknown0xc0[0x10];
/*0xd0*/ BYTE UnknownData0xd0;
/*0xd1*/ BYTE Weight;
/*0xd2*/ BYTE NoRent;
/*0xd3*/ BYTE NoDrop;
/*0xd4*/ BYTE Size;
/*0xd5*/ BYTE Type;
/*0xd6*/ BYTE TradeSkills;
/*0x0d7*/ BYTE Lore;
/*0x0d8*/ BYTE PendingLore;
/*0x0d9*/ BYTE Artifact;
/*0x0da*/ BYTE Summoned;
/*0x0db*/ BYTE SvCold;
/*0x0dc*/ BYTE SvFire;
/*0x0dd*/ BYTE SvMagic;
/*0x0de*/ BYTE SvDisease;
/*0x0df*/ BYTE SvPoison;
/*0x0e0*/ BYTE STR;
/*0x0e1*/ BYTE STA;
/*0x0e2*/ BYTE AGI;
/*0x0e3*/ BYTE DEX;
/*0x0e4*/ BYTE CHA;
/*0x0e5*/ BYTE INT;
/*0x0e6*/ BYTE WIS;
/*0x0e7*/ BYTE Unknown0xe7;
/*0x0e8*/ DWORD HP;
/*0x0ec*/ DWORD Mana;
/*0x0f0*/ DWORD AC;
/*0x0f4*/ DWORD SkillModValue;
/*0x0f8*/ DWORD BaneDMGRace;
/*0x0fc*/ DWORD BaneDMGBodyType;
/*0x100*/ DWORD RequiredLevel;
/*0x104*/ DWORD InstrumentType;
/*0x108*/ DWORD InstrumentMod;
/*0x10c*/ DWORD Classes;
/*0x110*/ DWORD Races;
/*0x114*/ DWORD Diety;
/*0x118*/ BYTE Unknown0x118[0x4];
/*0x11c*/ DWORD SpellId;
/*0x120*/ DWORD Color;
/*0x124*/ BYTE SkillModType;
/*0x125*/ BYTE BaneDMGBodyTypeValue;
/*0x126*/ BYTE BaneDMGRaceValue;
/*0x127*/ BYTE Magic;
/*0x128*/ BYTE Level;
/*0x129*/ BYTE Light;
/*0x12a*/ BYTE Delay;
/*0x12b*/ BYTE RecommendedLevel;
/*0x12c*/ BYTE RecommendedSkill;
/*0x12d*/ BYTE DmgBonusType;
/*0x12e*/ BYTE DmgBonusVal;
/*0x12f*/ BYTE Range;
/*0x130*/ BYTE Damage;
/*0x131*/ BYTE ItemType;
/*0x132*/ WORD Material;
/*0x134*/ DWORD AugSlot1;
/*0x138*/ DWORD AugSlot2;
/*0x13c*/ DWORD AugSlot3;
/*0x140*/ DWORD AugSlot4;
/*0x144*/ DWORD AugSlot5;
/*0x148*/ DWORD AugType;
/*0x14c*/ DWORD AugRestrictions;
/*0x150*/ DWORD LDTheme;
/*0x154*/ DWORD LDCost;
/*0x158*/ BYTE Unknown0x158[4];
/*0x15C*/ DWORD FactionModType[0x4];
/*0x16C*/ DWORD FactionModValue[0x4];
/*0x17c*/ BYTE CharmFile[0x20];
/*0x19c*/ FLOAT QuestValue; //everything over 1.00000 is a good thing... ring of the ancients is 777.500
/*0x1a0*/ BYTE Unknown0x1a0[0x8];
/*0x1a8*/ DWORD ProcRate;
/*0x1ac*/ DWORD FocusId;
/*0x1b0*/ DWORD CombatEffects;
/*0x1b4*/ DWORD Shielding;
/*0x1b8*/ DWORD StunResist;
/*0x1bc*/ DWORD StrikeThrough;
/*0x1c0*/ DWORD Unknown0x1c0[0x2];
/*0x1c8*/ DWORD SpellShield;
/*0x1cc*/ DWORD Avoidance;
/*0x1d0*/ BYTE Unknown0x1d0[0xc];
/*0x1dc*/ DWORD CastTime;
union {
/*0x1e0*/ DWORD MaxCharges;
/*0x1e0*/ DWORD Stackable;
};
/*0x1e4*/ WORD EffectType;
/*0x1e6*/ CHAR BookFile[0x1e];
/*0x204*/ BYTE Skill;
/*0x205*/ BYTE Combine;
/*0x206*/ BYTE Slots;
/*0x207*/ BYTE SizeCapacity;
/*0x208*/ BYTE WeightReduction;
/*0x209*/ BYTE Unknown0x209[0x3];
/*0x20c*/ DWORD Favor; // Tribute Value
/*0x210*/ BYTE Unknown0x210[0x8];
/*0x218*/ DWORD Endurance;
/*0x21c*/ DWORD Attack;
/*0x220*/ DWORD HPRegen;
/*0x224*/ DWORD ManaRegen;
/*0x228*/ DWORD Haste;
/*0x22c*/ DWORD DamShield;
/*0x230*/ DWORD Unknown0x230;
/*0x234*/ DWORD Unknown0x234;
/*0x238*/
} ITEMINFO, *PITEMINFO;