Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetPlayerInfoByGUID

Last wiki revision 2022-08-01

Returns character info for another player from their GUID. localizedClass, englishClass, localizedRace, englishRace, sex, name, realm = GetPlayerInfoByGUID(guid)

  • guid: - The GUID of the player you're querying.
  • localizedClass: - Localized class name.
  • englishClass: - Localization-independent class name.
  • localizedRace: - Localized race name.
  • englishRace: - Localization-independent race name.
  • sex: - Gender ID of the character. 2 for male, or 3 for female.
  • name: - The name of the character.
  • realm: - Normalized realm name of the character. Returns an empty string if the character is from the same realm as the player.

/dump UnitGUID("target"), GetPlayerInfoByGUID(UnitGUID("target"))

  • When used on yourself.
  • When used on a player from another realm, in this case from the same connected realm.

Source

https://warcraft.wiki.gg/wiki/API_GetPlayerInfoByGUID · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.