for the direct inventory ${FindItem[].InvSlot will return 22-29
however ${Me.Inventory[]} is setup to be 23-30
is this intentional?
Moderator: MacroQuest Developers
Code: Select all
typedef struct _INVENTORY {
/*0x00*/ struct _CONTENTS* Charm;
/*0x04*/ struct _CONTENTS* LeftEar;
/*0x08*/ struct _CONTENTS* Head;
/*0x0c*/ struct _CONTENTS* Face;
/*0x10*/ struct _CONTENTS* RightEar;
/*0x14*/ struct _CONTENTS* Neck;
/*0x18*/ struct _CONTENTS* Shoulders;
/*0x1c*/ struct _CONTENTS* Arms;
/*0x20*/ struct _CONTENTS* Back;
/*0x24*/ struct _CONTENTS* LeftWrist;
/*0x28*/ struct _CONTENTS* RightWrist;
/*0x2c*/ struct _CONTENTS* Range;
/*0x30*/ struct _CONTENTS* Hands;
/*0x34*/ struct _CONTENTS* Primary;
/*0x38*/ struct _CONTENTS* Secondary;
/*0x3c*/ struct _CONTENTS* LeftFinger;
/*0x40*/ struct _CONTENTS* RightFinger;
/*0x44*/ struct _CONTENTS* Chest;
/*0x48*/ struct _CONTENTS* Legs;
/*0x4c*/ struct _CONTENTS* Feet;
/*0x50*/ struct _CONTENTS* Waist;
/*0x54*/ struct _CONTENTS* Ammo;
/*0x58*/ struct _CONTENTS* Pack[0x8];
} INVENTORY, *PINVENTORY; Code: Select all
ItemSlotMap["leftear"]=1;
ItemSlotMap["head"]=2;
ItemSlotMap["face"]=3;
ItemSlotMap["rightear"]=4;
ItemSlotMap["neck"]=5;
ItemSlotMap["shoulder"]=6;
ItemSlotMap["arm"]=7;
ItemSlotMap["back"]=8;
ItemSlotMap["leftwrist"]=9;
ItemSlotMap["rightwrist"]=10;
ItemSlotMap["range"]=11;
ItemSlotMap["hand"]=12;
ItemSlotMap["mainhand"]=13;
ItemSlotMap["offhand"]=14;
ItemSlotMap["leftfinger"]=15;
ItemSlotMap["rightfinger"]=16;
ItemSlotMap["chest"]=17;
ItemSlotMap["leg"]=18;
ItemSlotMap["feet"]=19;
ItemSlotMap["waist"]=20;
ItemSlotMap["ammo"]=21;
ItemSlotMap["pack1"]=22;
ItemSlotMap["pack2"]=23;
ItemSlotMap["pack3"]=24;
ItemSlotMap["pack4"]=25;
ItemSlotMap["pack5"]=26;
ItemSlotMap["pack6"]=27;
ItemSlotMap["pack7"]=28;
ItemSlotMap["pack8"]=29;
ItemSlotMap["charm"]=30;