When i iterate through objects using object manager, i can not find them even if they r in front of me and click able.
Is there any other place i should be looking for them ?
Kajko.
When i iterate through objects using object manager, i can not find them even if they r in front of me and click able.
Is there any other place i should be looking for them ?
Kajko.
hi,
If they r in my bag i can find them, but if they r not, i can not find them ( i want to 'right' click on them to pick them up).
I do not know did i make my self clear.
Kajko
---------- Post added at 06:56 AM ---------- Previous post was at 06:53 AM ----------
start zone, unded, just created char, second quest to pick up 2 items from kript.
Get down, items i can click but they r not in object manager...
Kajko
they r not there, hence my original post.
code i am using:
init...
m_wowMem.ReadVal( m_nModulBaseAddress + m_clientOffsets.CurrMgr, m_ObjectManager);
m_wowMem.ReadVal( m_ObjectManager + m_clientOffsets.CurrMgrEx, m_ObjectManager );
m_wowMem.ReadVal( m_ObjectManager + m_clientOffsets.FirstObjectOffset, m_FirstObject );
...
loop:
WowObject woTempObject;
woTempObject.BaseAddress = m_FirstObject;
int nObjNum = 0;
while (woTempObject.BaseAddress != 0)
{
nObjNum++;
woTempObject.Guid = m_wowMem.ReadUInt64( woTempObject.BaseAddress + m_objectOffsets.Guid );
// if (m_woTempObject.Guid == Guid)
// return m_woTempObject.BaseAddress;
FillWowObject( woTempObject.Guid, woTempObject );
if( !m_wowMem.ReadVal( woTempObject.BaseAddress + m_clientOffsets.NextObjectOffset, woTempObject.BaseAddress ) )
break;
}
and in FillWowObject i have something like this:
...
obj.UnitFieldsAddress = m_wowMem.ReadUInt32((obj.BaseAddress + m_objectOffsets.UnitFields));
obj.Type = (short)m_wowMem.ReadUInt32((obj.BaseAddress + m_objectOffsets.Type));
UINT nIDS = m_wowMem.ReadUInt32( obj.UnitFieldsAddress + 0x000C );
if( nIDS == 64582 )
{
// never got here...
}
...
i have everything (NPCs, critters, etc..) but NOT q items
kajko
Object type is [pObj + 0x14]. It's an enum that's listed in the constants sticky. There's another flag in the ObjectFields structure that has all qualifying types for the object. Ex) A Player object is a Object, Unit, and Player.
Items aren't items until you pick up them, they are game objects... Also, you can't "pick up" items, you can only loot them from game objects or creatures, get as quest reward, ... (I may miss some rare cases there).
Last edited by TOM_RUS; 04-14-2011 at 07:56 PM.