v0.13.8

GetPlayerInfoByGUID

functionguessedavailable in: camelot

Returns character info for another player from their GUID.

signaturewowlua
function GetPlayerInfoByGUID(    guid: string): (string?, string?, string?, string?, number?, string?, string?, number?)

Parameters

nametypedescription
guidstringThe GUID of the player you're querying.

Returns

#nametypedescription
1localizedClassstring?Localized class name.
2englishClassstring?Localization-independent class name.
3localizedRacestring?Localized race name.
4englishRacestring?Localization-independent race name.
5sexnumber?Gender ID of the character. 2 for male, or 3 for female.
6namestring?The name of the character.
7realmNamestring?Normalized realm name of the character. Returns an empty string if the character is from the same realm as the player.
8levelnumber?

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (PlayerScript system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.