API GetPlayerInfoByGUID

Returns basic information about another player from their GUID. localizedClass, englishClass, localizedRace, englishRace, sex, name, realm = GetPlayerInfoByGUID("guid")

Arguments

 * guid : string - The GUID of the player you're querying.

Returns

 * localizedClass : string - Localized class name, e.g. "Warrior"
 * englishClass : string - Localization-independent class name, e.g. "WARRIOR"
 * localizedRace : string - Localized race name, e.g. "Night Elf"
 * englishRace : string - Localization-independent race name, e.g. "NightElf"
 * sex : number - Gender ID of the character. 2 for male, or 3 for female.
 * name : string - The name of the specified character.
 * realm : string - Realm of the character. The empty string "" is returned if the specified character is from the same realm as the player.

Details

 * This function was added in Patch 3.2
 * The information is not encoded in the GUID itself; as such, no data is available until the client has encountered the queried GUID.