C_GossipInfo
namespaceavailable in: camelotStatus in wowlua
20 functions: 11 implemented, 0 recorded, 9 guessed. 7 events, 3 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
CloseGossip | Closes the gossip window.() | implemented |
ForceGossip | Returns true if gossip text must be displayed. For example making this return true shows the Banker gossip.(): boolean | guessed |
GetActiveQuests | Returns the quests which can be turned in at a quest giver.(): GossipQuestUIInfo[] | implemented |
GetAvailableQuests | Returns the available quests at a quest giver.(): GossipQuestUIInfo[] | implemented |
GetCompletedOptionDescriptionString | Returns the description text for a completed gossip option, or nothing. · by wowlua(): string? | guessed |
GetCustomGossipDescriptionString | Returns the custom description text of the open gossip window, or nothing. · by wowlua(): string? | guessed |
GetFriendshipReputation | Returns the player's standing with a friendship faction, or nothing. · by wowlua(friendshipFactionID: number): FriendshipReputationInfo? | implemented |
GetFriendshipReputationRanks | Returns the player's current rank and the number of ranks of a friendship faction. · by wowlua(friendshipFactionID: number): FriendshipReputationRankInfo | guessed |
GetNumActiveQuests | Returns the number of active quests that you should eventually turn in to this NPC.(): number | implemented |
GetNumAvailableQuests | Returns the number of quests (that you are not already on) offered by this NPC.(): number | implemented |
GetOptionUIWidgetSetsAndTypesByOptionID | Returns the UI widget sets shown for a gossip option, or nothing. · by wowlua(gossipOptionID: number): GossipOptionUIWidgetSetAndType[]? | guessed |
GetOptions | Returns the available gossip options at a quest giver.(): GossipOptionUIInfo[] | implemented |
GetPoiForUiMapID | Returns any gossip point of interest on the map.(uiMapID: number): number? | implemented |
GetPoiInfo | Returns info for a gossip point of interest (e.g. the red flags when asking city guards for directions).(uiMapID: number, gossipPoiID: number): GossipPoiInfo? | guessed |
GetText | Returns the gossip text.(): string | implemented |
RefreshOptions | Refreshes the options of the open gossip window. · by wowlua() | guessed |
SelectActiveQuest | Selects an active quest from the gossip window.(optionID: number) | guessed |
SelectAvailableQuest | Selects an available quest from the gossip window.(optionID: number) | guessed |
SelectOption | Selects a gossip (conversation) option.(optionID: number, text: string?, confirmed: boolean?) | implemented |
SelectOptionByIndex | Selects a gossip option by its position in the list, as C_GossipInfo.SelectOption does by its ID. · by wowlua(optionID: number, text: string?, confirmed: boolean?) | implemented |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
DYNAMIC_GOSSIP_POI_UPDATED | no payload | not implemented |
GOSSIP_CLOSED | interactionIsContinuing: boolean | implemented |
GOSSIP_CONFIRM | gossipID: number, text: string, cost: WOWMONEY | not implemented |
GOSSIP_CONFIRM_CANCEL | no payload | implemented |
GOSSIP_ENTER_CODE | gossipID: number | not implemented |
GOSSIP_OPTIONS_REFRESHED | no payload | not implemented |
GOSSIP_SHOW | uiTextureKit: string? | implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("DYNAMIC_GOSSIP_POI_UPDATED").
Structures
FriendshipReputationInfo· friendshipFactionID, standing, maxRep, name?, text, texture, reaction, reactionThreshold, nextThreshold?, reversedColor, overrideColor?FriendshipReputationRankInfo· currentLevel, maxLevelGossipOptionRewardInfo· id, quantity, rewardType, contextGossipOptionUIInfo· gossipOptionID?, name, icon, rewards, status, spellID?, flags, overrideIconID?, selectOptionWhenOnlyOption, orderIndex, failureDescription?GossipOptionUIWidgetSetAndType· widgetType, uiWidgetSetIDGossipPoiInfo· name, textureIndex, position, inBattleMapGossipQuestUIInfo· title, questLevel, isTrivial, frequency?, repeatable?, isComplete?, isLegendary, isIgnored, questID, isImportant, isMeta, questInfoID
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (GossipInfo system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.