Hey guys
In 5.0.5 Blizzard changed something with the realmname in BGs/Crossrealm.
Before this i get playername/realmname with this function:
Code:
public static string getName(UInt64 guid)
{
try
{
string cname = "";
uint NameMaskOffset = playerNameOffsets.NameMaskOffset;
uint NameStringOffset = playerNameOffsets.NameStringOffset;
uint NameBaseOffset = playerNameOffsets.NameBaseOffset;
uint NameStorePtr = playerNameOffsets.NameStorePtr;
int mask = ObjectManager.WowReader.ReadInt((uint)NameStorePtr + (uint)ObjectManager.WowReader.MainModule.BaseAddress + (uint)NameMaskOffset);
if (mask == -1)
{
cname = "UNKNOWN";
}
else
{
int nameStoreBasePtr = ObjectManager.WowReader.ReadInt((uint)NameBaseOffset + (uint)NameStorePtr + (uint)ObjectManager.WowReader.MainModule.BaseAddress);
int maskedGUID = mask & (int)guid;
maskedGUID += maskedGUID * 2;
int ptr = ObjectManager.WowReader.ReadInt((uint)(nameStoreBasePtr + (maskedGUID * 4) + 4) + 4);
while (ObjectManager.WowReader.ReadUInt((uint)ptr) != (uint)guid)
{
int maskedGUID2 = (int)guid & mask;
maskedGUID2 += maskedGUID2 * 2;
int ptr2 = ObjectManager.WowReader.ReadInt((uint)nameStoreBasePtr + ((uint)maskedGUID2 * 4));
ptr2 += ptr;
ptr = ObjectManager.WowReader.ReadInt((uint)ptr2 + 4);
}
cname = System.Text.Encoding.UTF8.GetString(ObjectManager.WowReader.ReadBytes((uint)ptr + (uint)NameStringOffset, 50)).Trim();
}
cname = cname.Insert(cname.IndexOf('\0'), "#");
cname = cname.Replace("\0", "");
return cname;
}
So before the # was the playername, and after the # the realmname, if the player is from the same realm as me, there is nothing after the #.
So but now the realmname is vanished. Its never there
Can anybody tell me where the realmname is stored now?