I am not exactly sure what you are trying to do....but i was looking into getting item ID's not long ago.
I came up with:
Code:
enum PlayerItems
{
PLAYER_VISIBLE_ITEM_1_ID = 0x3F8,
PLAYER_VISIBLE_ITEM_2_ID = 0x440,
PLAYER_VISIBLE_ITEM_3_ID = 0x488,
PLAYER_VISIBLE_ITEM_4_ID = 0x4D0,
PLAYER_VISIBLE_ITEM_5_ID = 0x518,
PLAYER_VISIBLE_ITEM_6_ID = 0x560,
PLAYER_VISIBLE_ITEM_7_ID = 0x5A8,
PLAYER_VISIBLE_ITEM_8_ID = 0x5F0,
PLAYER_VISIBLE_ITEM_9_ID = 0x638,
PLAYER_VISIBLE_ITEM_10_ID = 0x680,
PLAYER_VISIBLE_ITEM_11_ID = 0x6C8,
PLAYER_VISIBLE_ITEM_12_ID = 0x710,
PLAYER_VISIBLE_ITEM_13_ID = 0x758,
PLAYER_VISIBLE_ITEM_14_ID = 0x7A0,
PLAYER_VISIBLE_ITEM_15_ID = 0x7E8,
PLAYER_VISIBLE_ITEM_16_ID = 0x830,
PLAYER_VISIBLE_ITEM_17_ID = 0x878,
PLAYER_VISIBLE_ITEM_18_ID = 0x8C0,
PLAYER_VISIBLE_ITEM_19_ID = 0x908,
};
template <typename T>
T getPlayerField(PlayerItems Descript)
{
DWORD PlaylerPtr = GetObjectByGUID(ActiveplayerGUID(), -1);
DWORD Base = *(DWORD*)(PlaylerPtr + 0x108);
T tRet = *(T*)(Base + Descript);
return tRet;
}
Is there a better way?