public WowItem GetContainedItem(uint n) { if (n >= GetSlots()) { return null; } UInt64 guid = ProcessManager.WowProcess.ReadUInt64(ObjectPointer + (uint) Descriptor.eContainerFields.CONTAINER_FIELD_SLOT_1 + (2*n)*0x04); uint iObjectPointer= ProcessManager.ObjectManager.GetObjectByGUID(guid); var item = new WowItem(iObjectPointer); return item; }
public WowItem GetContainedItem(uint n) { if (n >= GetSlots()) { return(null); } UInt64 guid = ProcessManager.WowProcess.ReadUInt64(ObjectPointer + (uint)Descriptor.eContainerFields.CONTAINER_FIELD_SLOT_1 + (2 * n) * 0x04); uint iObjectPointer = ProcessManager.ObjectManager.GetObjectByGUID(guid); var item = new WowItem(iObjectPointer); return(item); }