WowAddons

World of Warcraft Forever API · PlayerLocationInfo.md, for your AI

C_PlayerInfo (PlayerLocationInfo)

7 functions, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_PlayerInfo.GUIDIsPlayer

isPlayer = C_PlayerInfo.GUIDIsPlayer(guid)

Arguments

guidWOWGUID

Returns

isPlayerbool

C_PlayerInfo.GetClass

className, classFilename, classID = C_PlayerInfo.GetClass(playerLocation)

Arguments

playerLocationPlayerLocation

Returns

classNamecstring may be nil
classFilenamecstring may be nil
classIDnumber may be nil

C_PlayerInfo.GetName

name = C_PlayerInfo.GetName(playerLocation)

May return nothing.

Arguments

playerLocationPlayerLocation

Returns

namestring

C_PlayerInfo.GetRace

raceID = C_PlayerInfo.GetRace(playerLocation)

Arguments

playerLocationPlayerLocation

Returns

raceIDnumber may be nil

C_PlayerInfo.GetSex

sex = C_PlayerInfo.GetSex(playerLocation)

Arguments

playerLocationPlayerLocation

Returns

sexUnitSex may be nil

C_PlayerInfo.IsConnected

isConnected = C_PlayerInfo.IsConnected([playerLocation])

Arguments

playerLocationPlayerLocation may be nil

Returns

isConnectedbool may be nil

C_PlayerInfo.UnitIsSameServer

unitIsSameServer = C_PlayerInfo.UnitIsSameServer(playerLocation)

Arguments

playerLocationPlayerLocation

Returns

unitIsSameServerbool

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows