TrinityCore
ScriptedGossip.cpp File Reference
#include "ScriptedGossip.h"
#include "Creature.h"
#include "Player.h"
+ Include dependency graph for ScriptedGossip.cpp:

Go to the source code of this file.

Functions

uint32 GetGossipSenderFor (Player *player, uint32 menuId)
 
uint32 GetGossipActionFor (Player *player, uint32 gossipListId)
 
void InitGossipMenuFor (Player *player, uint32 menuId)
 
void ClearGossipMenuFor (Player *player)
 
void AddGossipItemFor (Player *player, GossipOptionNpc optionNpc, std::string text, uint32 sender, uint32 action)
 
void AddGossipItemFor (Player *player, GossipOptionNpc optionNpc, std::string text, uint32 sender, uint32 action, std::string popupText, uint32 popupMoney, bool coded)
 
void AddGossipItemFor (Player *player, uint32 gossipMenuID, uint32 gossipMenuItemID, uint32 sender, uint32 action)
 
void SendGossipMenuFor (Player *player, uint32 npcTextID, ObjectGuid const &guid)
 
void SendGossipMenuFor (Player *player, uint32 npcTextID, Creature const *creature)
 
void CloseGossipMenuFor (Player *player)
 

Function Documentation

◆ AddGossipItemFor() [1/3]

void AddGossipItemFor ( Player player,
GossipOptionNpc  optionNpc,
std::string  text,
uint32  sender,
uint32  action 
)

Definition at line 43 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function:

◆ AddGossipItemFor() [2/3]

void AddGossipItemFor ( Player player,
GossipOptionNpc  optionNpc,
std::string  text,
uint32  sender,
uint32  action,
std::string  popupText,
uint32  popupMoney,
bool  coded 
)

Definition at line 49 of file ScriptedGossip.cpp.

◆ AddGossipItemFor() [3/3]

void AddGossipItemFor ( Player player,
uint32  gossipMenuID,
uint32  gossipMenuItemID,
uint32  sender,
uint32  action 
)

Definition at line 55 of file ScriptedGossip.cpp.

◆ ClearGossipMenuFor()

void ClearGossipMenuFor ( Player player)

Definition at line 37 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function:

◆ CloseGossipMenuFor()

void CloseGossipMenuFor ( Player player)

Definition at line 71 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function:

◆ GetGossipActionFor()

uint32 GetGossipActionFor ( Player player,
uint32  gossipListId 
)

Definition at line 27 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function:

◆ GetGossipSenderFor()

uint32 GetGossipSenderFor ( Player player,
uint32  menuId 
)

Definition at line 22 of file ScriptedGossip.cpp.

◆ InitGossipMenuFor()

void InitGossipMenuFor ( Player player,
uint32  menuId 
)

Definition at line 32 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function:

◆ SendGossipMenuFor() [1/2]

void SendGossipMenuFor ( Player player,
uint32  npcTextID,
Creature const *  creature 
)

Definition at line 65 of file ScriptedGossip.cpp.

+ Here is the call graph for this function:

◆ SendGossipMenuFor() [2/2]

void SendGossipMenuFor ( Player player,
uint32  npcTextID,
ObjectGuid const &  guid 
)

Definition at line 60 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function: