thats my code:
Code:
case eObjType.OT_GAMEOBJ:
addr1 = WoW.ReadInteger(curObj + 0x1f4);
addr2 = WoW.ReadInteger(addr1 + 0x078);
objectName = WoW.ReadString(addr2, 256);
if (isEnabled)
{
addr1 = WoW.ReadInteger(curObj + 0x08);
posX = WoW.ReadFloat(addr1 + 0x10 * 4);
posY = WoW.ReadFloat(addr1 + 0x11 * 4);
posZ = WoW.ReadFloat(addr1 + 0x12 * 4);
visible = true;
}
to get the wmo name, you may use
Code:
int dispIDMin = WoW.ReadInteger(0xFCEC44);
int DispIDBase = WoW.ReadInteger(0xFCEC54);
int objectStorage3 = WoW.ReadInteger(curObj + 0x108);
int dispID = WoW.ReadInteger(objectStorage3 + 0x08);
int dispInfo = WoW.ReadInteger(DispIDBase + 4 * (dispID - dispIDMin));
String wmoName = WoW.ReadString(CMB.ReadInteger(dispInfo + 4), 256);
objectName = WoW.ReadString(addr2, 256) + " DI "+ dispID + " (" + wmoName + ")";