v0.13.8

C_PerksProgram

namespaceavailable in: camelot

Status in wowlua

24 functions: 0 implemented, 0 recorded, 24 guessed. 15 events, 0 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
ClearFrozenPerksVendorItemClears the item frozen at the Trading Post. · by wowlua
()
guessed
CloseInteractionCloses the Trading Post. · by wowlua
()
guessed
GetAvailableCategoryIDsReturns the IDs of the Trading Post's item categories. · by wowlua
(): number[]
guessed
GetAvailableVendorItemIDsReturns the IDs of the items the Trading Post currently offers. · by wowlua
(): number[]
guessed
GetCategoryInfoReturns information about a Trading Post category. · by wowlua
(categoryID: number): PerksVendorCategoryInfo
guessed
GetCurrencyAmountReturns how much Trader's Tender the player has. · by wowlua
(): number
guessed
GetDraggedPerksVendorItemReturns the ID of the Trading Post item the player is dragging. · by wowlua
(): number
guessed
GetFrozenPerksVendorItemInfoReturns the item frozen at the Trading Post, or nil when none is. · by wowlua
(): PerksVendorItemInfo?
guessed
GetPendingChestRewardsReturns the Trading Post rewards waiting to be collected. · by wowlua
(): PerksProgramPendingChestRewards[]
guessed
GetPerksProgramItemDisplayInfoReturns how a Trading Post item is displayed in the preview. · by wowlua
(id: number): PerksProgramItemDisplayInfo
guessed
GetTimeRemainingReturns the time left before a Trading Post item leaves the shop. · by wowlua
(vendorItemID: number): number
guessed
GetVendorItemInfoReturns information about a Trading Post item. · by wowlua
(vendorItemID: number): PerksVendorItemInfo
guessed
GetVendorItemInfoRefundTimeLeftReturns the time left to refund a purchased Trading Post item. · by wowlua
(vendorItemID: number): number
guessed
IsAttackAnimToggleEnabledWhether the Trading Post preview plays the attack animation. · by wowlua
(): boolean
guessed
IsFrozenPerksVendorItemWhether the Trading Post item is the frozen one. · by wowlua
(perksVendorItemID: number): boolean
guessed
IsMountSpecialAnimToggleEnabledWhether the Trading Post preview plays a mount's special animation. · by wowlua
(): boolean
guessed
ItemSelectedTelemetryReports to the game that the player selected a Trading Post item. · by wowlua
(perksVendorItemID: number)
guessed
PickupPerksVendorItemPuts a Trading Post item on the cursor. · by wowlua
(perksVendorItemID: number)
guessed
RequestCartCheckoutRequests buying all given Trading Post items at once. · by wowlua
(perksVendorItemIDs: number[])
guessed
RequestPendingChestRewardsRequests the Trading Post rewards waiting to be collected. · by wowlua
()
guessed
RequestPurchaseRequests buying a Trading Post item. · by wowlua
(perksVendorItemID: number)
guessed
RequestRefundRequests a refund of a purchased Trading Post item. · by wowlua
(perksVendorItemID: number)
guessed
ResetHeldItemDragAndDropCancels dragging a Trading Post item. · by wowlua
()
guessed
SetFrozenPerksVendorItemFreezes the Trading Post item the player is dragging, so it stays in the shop. · by wowlua
()
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
CHEST_REWARDS_UPDATED_FROM_SERVERno payloadnot implemented
PERKS_PROGRAM_ADD_PENDING_SHOP_ITEMvendorItemID: numbernot implemented
PERKS_PROGRAM_CLOSEno payloadnot implemented
PERKS_PROGRAM_CURRENCY_AWARDEDvalue: numbernot implemented
PERKS_PROGRAM_CURRENCY_REFRESHoldValue: number, newValue: numbernot implemented
PERKS_PROGRAM_DATA_REFRESHno payloadnot implemented
PERKS_PROGRAM_DATA_SPECIFIC_ITEM_REFRESHvendorItemID: numbernot implemented
PERKS_PROGRAM_DISABLEDno payloadnot implemented
PERKS_PROGRAM_OPENno payloadnot implemented
PERKS_PROGRAM_PURCHASE_CART_SUCCESSvendorItemIDs: number[]not implemented
PERKS_PROGRAM_PURCHASE_SUCCESSvendorItemID: numbernot implemented
PERKS_PROGRAM_REFUND_SUCCESSvendorItemID: numbernot implemented
PERKS_PROGRAM_REMOVE_PENDING_SHOP_ITEMvendorItemID: numbernot implemented
PERKS_PROGRAM_RESULT_ERRORno payloadnot implemented
PERKS_PROGRAM_SET_FROZEN_ITEMvendorItemID: numbernot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("CHEST_REWARDS_UPDATED_FROM_SERVER").

Structures

  • PerksProgramItemDisplayInfo · overrideModelSceneID?, creatureDisplayInfoID?, mainHandItemModifiedAppearanceID?, offHandItemModifiedAppearanceID?
  • PerksProgramPendingChestRewards · rewardTypeID, perksVendorItemID?, rewardAmount, monthRewarded?, activityMonthID, thresholdOrderIndex
  • PerksVendorCategoryInfo · ID, displayName, defaultUIModelSceneID
  • PerksVendorItemInfo · name, perksVendorCategoryID, description, timeRemaining, purchased, refundable, subItemsLoaded, isPurchasePending, doesNotExpire, price, originalPrice?, showSaleBanner, perksVendorItemID, itemID, iconTexture, mountID, mountTypeName, speciesID, transmogSetID, itemModifiedAppearanceID, subItems, uiGroupInfo?, invType, quality
  • PerksVendorItemUIGroupInfo · ID, name, priority
  • PerksVendorSubItemInfo · name, itemID, itemModifiedAppearanceID, invType, quality

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (PerksProgram system, camelot 1.60.1). Descriptions: written by wowlua where no documentation describes the entry.