WowAddons

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

C_PingSecure

19 functions, 2 events, 11 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_PingSecure.ClearHitTestPingInfo

C_PingSecure.ClearHitTestPingInfo()

C_PingSecure.CreateFrame

C_PingSecure.CreateFrame()

C_PingSecure.DisplayError

C_PingSecure.DisplayError(error)

Arguments

errorcstring

C_PingSecure.GetTargetPingReceiver

frame = C_PingSecure.GetTargetPingReceiver(mousePosX, mousePosY)

Arguments

mousePosXnumber
mousePosYnumber

Returns

frameScriptRegion

C_PingSecure.SendHitTestPing

result = C_PingSecure.SendHitTestPing([type])

Arguments

typePingSubjectType may be nil

Returns

resultSendPingResult

C_PingSecure.SendPlayerItemPing

result = C_PingSecure.SendPlayerItemPing(itemID)

Arguments

itemIDnumber

Returns

resultSendPingResult

C_PingSecure.SendPlayerSpellCategoryPing

result = C_PingSecure.SendPlayerSpellCategoryPing(spellCategoryID)

Arguments

spellCategoryIDnumber

Returns

resultSendPingResult

C_PingSecure.SendPlayerSpellPing

result = C_PingSecure.SendPlayerSpellPing(spellID)

Arguments

spellIDnumber

Returns

resultSendPingResult

C_PingSecure.SendUnitPing

result = C_PingSecure.SendUnitPing(target, [type], [isPlayerResource])

Arguments

targetWOWGUID
typePingSubjectType may be nil
isPlayerResourcebool may be nilPlayer unit frame contextual pings have the optional ability to call out the player's health and in some cases mana. This field does nothing for non player pings.

Returns

resultSendPingResult

C_PingSecure.SetHitTestPingTarget

state = C_PingSecure.SetHitTestPingTarget(mousePosX, mousePosY, [forcePointPing])

Arguments

mousePosXnumber
mousePosYnumber
forcePointPingbool may be nil

Returns

statePingSetTargetState

C_PingSecure.SetHitTestTargetAndSendPing

result = C_PingSecure.SetHitTestTargetAndSendPing()

Returns

resultSendPingResult

C_PingSecure.SetPendingPingOffScreenCallback

C_PingSecure.SetPendingPingOffScreenCallback(cb)

Arguments

cbPendingPingOffScreenCallback

C_PingSecure.SetPingCooldownStartedCallback

C_PingSecure.SetPingCooldownStartedCallback(cb)

Arguments

cbPingCooldownStartedCallback

C_PingSecure.SetPingPinFrameAddedCallback

C_PingSecure.SetPingPinFrameAddedCallback(cb)

Arguments

cbPingPinFrameAddedCallback

C_PingSecure.SetPingPinFrameRemovedCallback

C_PingSecure.SetPingPinFrameRemovedCallback(cb)

Arguments

cbPingPinFrameRemovedCallback

C_PingSecure.SetPingPinFrameScreenClampStateUpdatedCallback

C_PingSecure.SetPingPinFrameScreenClampStateUpdatedCallback(cb)

Arguments

cbPingPinFrameScreenClampStateUpdatedCallback

C_PingSecure.SetPingRadialWheelCreatedCallback

C_PingSecure.SetPingRadialWheelCreatedCallback(cb)

Arguments

cbPingRadialWheelCreatedCallback

C_PingSecure.SetSendMacroPingCallback

C_PingSecure.SetSendMacroPingCallback(cb)

Arguments

cbSendMacroPingCallback

C_PingSecure.SetTogglePingListenerCallback

C_PingSecure.SetTogglePingListenerCallback(cb)

Arguments

cbTogglePingListenerCallback

Events

UNIT_PING_PIN_ADDED

guidWOWGUID
uiTextureKittextureKit

UNIT_PING_PIN_REMOVED

guidWOWGUID

Tables

PingActionCooldownUIInfo structure

durationMsnumber default 0
remainingMsnumber default 0

PingActionUIInfo structure

spellIDnumber default 0
itemIDnumber default 0
textureFileDataIDnumber default 0
cooldownInfoPingActionCooldownUIInfo may be nil
spellCategoryIDnumber default 0

SendPingResult structure

typePingSubjectType may be nil
resultPingResult

PendingPingOffScreenCallback callbacktype

PingCooldownStartedCallback callbacktype

infoPingCooldownInfo

PingPinFrameAddedCallback callbacktype

regionScriptRegion
uiTextureKittextureKit
isWorldPointbool
actionInfoPingActionUIInfo may be nil

PingPinFrameRemovedCallback callbacktype

regionScriptRegion

PingPinFrameScreenClampStateUpdatedCallback callbacktype

regionScriptRegion
statebool

PingRadialWheelCreatedCallback callbacktype

regionScriptRegion

SendMacroPingCallback callbacktype

macroInfoPingMacroInfo

TogglePingListenerCallback callbacktype

downbool

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