World of Warcraft Forever API · C_DeathInfo.md, for your AI
C_DeathInfo
5 functions, 14 events, 3 tables, 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_DeathInfo.GetCorpseMapPosition
position = C_DeathInfo.GetCorpseMapPosition(uiMapID)
Arguments
uiMapID | number |
|---|
Returns
position | vector2 may be nil |
|---|
C_DeathInfo.GetDeathReleasePosition
position = C_DeathInfo.GetDeathReleasePosition(uiMapID)
Arguments
uiMapID | number |
|---|
Returns
position | vector2 may be nil |
|---|
C_DeathInfo.GetGraveyardsForMap
graveyards = C_DeathInfo.GetGraveyardsForMap(uiMapID)
Arguments
uiMapID | number |
|---|
Returns
graveyards | GraveyardMapInfo[] |
|---|
C_DeathInfo.GetSelfResurrectOptions
options = C_DeathInfo.GetSelfResurrectOptions()
May return nothing.
Returns
options | SelfResurrectOption[] |
|---|
C_DeathInfo.UseSelfResurrectOption
C_DeathInfo.UseSelfResurrectOption(optionType, id)
Arguments
optionType | SelfResurrectOptionType | |
|---|---|---|
id | number |
Events
AREA_SPIRIT_HEALER_IN_RANGE
No payload.
AREA_SPIRIT_HEALER_OUT_OF_RANGE
No payload.
CEMETERY_PREFERENCE_UPDATED
No payload.
CONFIRM_XP_LOSS
No payload.
CORPSE_IN_INSTANCE
No payload.
CORPSE_IN_RANGE
No payload.
CORPSE_OUT_OF_RANGE
No payload.
PLAYER_ALIVE
No payload.
PLAYER_DEAD
No payload.
PLAYER_SKINNED
hasFreeRepop | number |
|---|
PLAYER_UNGHOST
No payload.
REQUEST_CEMETERY_LIST_RESPONSE
isGossipTriggered | bool |
|---|
RESURRECT_REQUEST
inviter | cstring |
|---|
SELF_RES_SPELL_CHANGED
No payload.
Tables
Enum.SelfResurrectOptionType enumeration
Spell | 0 |
|---|---|
Item | 1 |
GraveyardMapInfo structure
areaPoiID | number | |
|---|---|---|
position | vector2 | |
name | cstring | |
textureIndex | number | |
graveyardID | number | |
isGraveyardSelectable | bool |
SelfResurrectOption structure
name | string | |
|---|---|---|
optionType | SelfResurrectOptionType | |
id | number | |
canUse | bool | |
isLimited | bool | |
priority | number |