TrinityCore
ScriptedGossip.h File Reference
#include "Define.h"
#include "GossipDef.h"
#include <string>
+ Include dependency graph for ScriptedGossip.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GOSSIP_TEXT_BROWSE_GOODS   "I'd like to browse your goods."
 
#define GOSSIP_TEXT_TRAIN   "Train me!"
 

Enumerations

enum  eTradeskill {
  TRADESKILL_ALCHEMY = 1 , TRADESKILL_BLACKSMITHING = 2 , TRADESKILL_COOKING = 3 , TRADESKILL_ENCHANTING = 4 ,
  TRADESKILL_ENGINEERING = 5 , TRADESKILL_FIRSTAID = 6 , TRADESKILL_HERBALISM = 7 , TRADESKILL_LEATHERWORKING = 8 ,
  TRADESKILL_POISONS = 9 , TRADESKILL_TAILORING = 10 , TRADESKILL_MINING = 11 , TRADESKILL_FISHING = 12 ,
  TRADESKILL_SKINNING = 13 , TRADESKILL_JEWLCRAFTING = 14 , TRADESKILL_INSCRIPTION = 15 , TRADESKILL_ARCHAEOLOGY = 16 ,
  TRADESKILL_LEVEL_NONE = 0 , TRADESKILL_LEVEL_APPRENTICE = 1 , TRADESKILL_LEVEL_JOURNEYMAN = 2 , TRADESKILL_LEVEL_EXPERT = 3 ,
  TRADESKILL_LEVEL_ARTISAN = 4 , TRADESKILL_LEVEL_MASTER = 5 , TRADESKILL_LEVEL_GRAND_MASTER = 6 , TRADESKILL_LEVEL_ILLUSTRIOUS = 7 ,
  GOSSIP_ACTION_TRADE = 1 , GOSSIP_ACTION_TRAIN = 2 , GOSSIP_ACTION_TAXI = 3 , GOSSIP_ACTION_GUILD = 4 ,
  GOSSIP_ACTION_BATTLE = 5 , GOSSIP_ACTION_BANK = 6 , GOSSIP_ACTION_INN = 7 , GOSSIP_ACTION_HEAL = 8 ,
  GOSSIP_ACTION_TABARD = 9 , GOSSIP_ACTION_AUCTION = 10 , GOSSIP_ACTION_INN_INFO = 11 , GOSSIP_ACTION_UNLEARN = 12 ,
  GOSSIP_ACTION_INFO_DEF = 1000 , GOSSIP_SENDER_MAIN = 1 , GOSSIP_SENDER_INN_INFO = 2 , GOSSIP_SENDER_INFO = 3 ,
  GOSSIP_SENDER_SEC_PROFTRAIN = 4 , GOSSIP_SENDER_SEC_CLASSTRAIN = 5 , GOSSIP_SENDER_SEC_BATTLEINFO = 6 , GOSSIP_SENDER_SEC_BANK = 7 ,
  GOSSIP_SENDER_SEC_INN = 8 , GOSSIP_SENDER_SEC_MAILBOX = 9 , GOSSIP_SENDER_SEC_STABLEMASTER = 10
}
 

Functions

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

Macro Definition Documentation

◆ GOSSIP_TEXT_BROWSE_GOODS

#define GOSSIP_TEXT_BROWSE_GOODS   "I'd like to browse your goods."

Definition at line 30 of file ScriptedGossip.h.

◆ GOSSIP_TEXT_TRAIN

#define GOSSIP_TEXT_TRAIN   "Train me!"

Definition at line 31 of file ScriptedGossip.h.

Enumeration Type Documentation

◆ eTradeskill

Enumerator
TRADESKILL_ALCHEMY 
TRADESKILL_BLACKSMITHING 
TRADESKILL_COOKING 
TRADESKILL_ENCHANTING 
TRADESKILL_ENGINEERING 
TRADESKILL_FIRSTAID 
TRADESKILL_HERBALISM 
TRADESKILL_LEATHERWORKING 
TRADESKILL_POISONS 
TRADESKILL_TAILORING 
TRADESKILL_MINING 
TRADESKILL_FISHING 
TRADESKILL_SKINNING 
TRADESKILL_JEWLCRAFTING 
TRADESKILL_INSCRIPTION 
TRADESKILL_ARCHAEOLOGY 
TRADESKILL_LEVEL_NONE 
TRADESKILL_LEVEL_APPRENTICE 
TRADESKILL_LEVEL_JOURNEYMAN 
TRADESKILL_LEVEL_EXPERT 
TRADESKILL_LEVEL_ARTISAN 
TRADESKILL_LEVEL_MASTER 
TRADESKILL_LEVEL_GRAND_MASTER 
TRADESKILL_LEVEL_ILLUSTRIOUS 
GOSSIP_ACTION_TRADE 
GOSSIP_ACTION_TRAIN 
GOSSIP_ACTION_TAXI 
GOSSIP_ACTION_GUILD 
GOSSIP_ACTION_BATTLE 
GOSSIP_ACTION_BANK 
GOSSIP_ACTION_INN 
GOSSIP_ACTION_HEAL 
GOSSIP_ACTION_TABARD 
GOSSIP_ACTION_AUCTION 
GOSSIP_ACTION_INN_INFO 
GOSSIP_ACTION_UNLEARN 
GOSSIP_ACTION_INFO_DEF 
GOSSIP_SENDER_MAIN 
GOSSIP_SENDER_INN_INFO 
GOSSIP_SENDER_INFO 
GOSSIP_SENDER_SEC_PROFTRAIN 
GOSSIP_SENDER_SEC_CLASSTRAIN 
GOSSIP_SENDER_SEC_BATTLEINFO 
GOSSIP_SENDER_SEC_BANK 
GOSSIP_SENDER_SEC_INN 
GOSSIP_SENDER_SEC_MAILBOX 
GOSSIP_SENDER_SEC_STABLEMASTER 

Definition at line 33 of file ScriptedGossip.h.

Function Documentation

◆ AddGossipItemFor() [1/3]

void TC_GAME_API 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 TC_GAME_API 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 TC_GAME_API AddGossipItemFor ( Player player,
uint32  gossipMenuID,
uint32  gossipMenuItemID,
uint32  sender,
uint32  action 
)

Definition at line 55 of file ScriptedGossip.cpp.

◆ ClearGossipMenuFor()

void TC_GAME_API ClearGossipMenuFor ( Player player)

Definition at line 37 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function:

◆ CloseGossipMenuFor()

void TC_GAME_API CloseGossipMenuFor ( Player player)

Definition at line 71 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function:

◆ GetGossipActionFor()

uint32 TC_GAME_API GetGossipActionFor ( Player player,
uint32  gossipListId 
)

Definition at line 27 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function:

◆ GetGossipSenderFor()

uint32 TC_GAME_API GetGossipSenderFor ( Player player,
uint32  menuId 
)

Definition at line 22 of file ScriptedGossip.cpp.

◆ InitGossipMenuFor()

void TC_GAME_API 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 TC_GAME_API 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 TC_GAME_API SendGossipMenuFor ( Player player,
uint32  npcTextID,
ObjectGuid const &  guid 
)

Definition at line 60 of file ScriptedGossip.cpp.

+ Here is the caller graph for this function: