9.0.5 .37899
NameCache 0x317F810
curPlayerName 0x34BE158
I got playernames, how to get their RealmName? I want the full name (playername-realmname).
not function call, just offset.
thx.
9.0.5 .37899
NameCache 0x317F810
curPlayerName 0x34BE158
I got playernames, how to get their RealmName? I want the full name (playername-realmname).
not function call, just offset.
thx.
Last edited by nfgstar; 03-14-2021 at 03:45 AM.
Hey
I dont understand. You want to see to which realm your logged in? Simply scan the memory for the realm name.
Or you got a target players name but dont know the realm? How could that happen?
Last edited by blueDot; 03-14-2021 at 04:04 AM.
I did not find the offset of curPlayer 's realmname. I scaned memory around curPlayerName(0x34BE15.Its the first question.
Second: I want to scan all players around me and list their full name, I think realmname should stored in NameCache nearby playername, but didn't find...
You need to obtain the "virtual server address" from the player. In Classic you can use CGPlayerData::virtualPlayerRealm descriptor, in retail it will exist directly in the player structure. You can identify players from different realms using this value, or if you really need the name then you can query it via. g_realmDBCache similar to how you use g_nameDBCache (or "NameCache" as you call it.)
I don't work on Wow, so don't ask me about the latest offsets.
imo just string search the lua function "UnitName" (which returns server and name) and then call the functions it calls
API UnitName | WoWWiki | Fandom