WoW API: GetPlayerInfoByGUID

Revision as of 21:28, 7 November 2009 by WoWWiki>.Coren. (→‎Details: The information is not encoded in the GUID.)

WoW API < GetPlayerInfoByGUID

Returns basic information about another player from their GUID

localizedClass, englishClass, localizedRace, englishRace, sex = GetPlayerInfoByGUID("guid")

Parameters

Arguments

guid
String - The GUID of the player you're querying about

Returns

localizedClass
String - Class of the character in question (localized)
englishClass
String - Class of the character in question (in English)
localizedRace
String - Race of the character in question (localized)
englishRace
String - Race of the character in question (in English)
sex
String - Gender of the character in question

Example

Details

This function was added in patch 3.2 (August, 2009)

The information is not encoded in the GUID itself: The function yields nothing until the game client saw anything from that GUID.