TrinityCore
ScriptedGossip.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef TRINITY_SCRIPTEDGOSSIP_H
19#define TRINITY_SCRIPTEDGOSSIP_H
20
21#include "Define.h"
22#include "GossipDef.h"
23#include <string>
24
25class Creature;
26class ObjectGuid;
27class Player;
28
29// Gossip Item Text
30#define GOSSIP_TEXT_BROWSE_GOODS "I'd like to browse your goods."
31#define GOSSIP_TEXT_TRAIN "Train me!"
32
34{
35 // Skill defines
52
61
62 // Gossip defines
76
87};
88
91void TC_GAME_API InitGossipMenuFor(Player* player, uint32 menuId);
93// Using provided text, not from DB
94void TC_GAME_API AddGossipItemFor(Player* player, GossipOptionNpc optionNpc, std::string text, uint32 sender, uint32 action);
95// Using provided texts, not from DB
96void TC_GAME_API AddGossipItemFor(Player* player, GossipOptionNpc optionNpc, std::string text, uint32 sender, uint32 action, std::string popupText, uint32 popupMoney, bool coded);
97// Uses gossip item info from DB
98void TC_GAME_API AddGossipItemFor(Player* player, uint32 gossipMenuID, uint32 gossipMenuItemID, uint32 sender, uint32 action);
99void TC_GAME_API SendGossipMenuFor(Player* player, uint32 npcTextID, ObjectGuid const& guid);
100void TC_GAME_API SendGossipMenuFor(Player* player, uint32 npcTextID, Creature const* creature);
102
103#endif
#define TC_GAME_API
Definition: Define.h:123
uint32_t uint32
Definition: Define.h:142
GossipOptionNpc
Definition: GossipDef.h:35
void TC_GAME_API CloseGossipMenuFor(Player *player)
void TC_GAME_API SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const &guid)
uint32 TC_GAME_API GetGossipActionFor(Player *player, uint32 gossipListId)
void TC_GAME_API ClearGossipMenuFor(Player *player)
uint32 TC_GAME_API GetGossipSenderFor(Player *player, uint32 menuId)
eTradeskill
@ TRADESKILL_LEATHERWORKING
@ GOSSIP_SENDER_SEC_BATTLEINFO
@ TRADESKILL_LEVEL_GRAND_MASTER
@ TRADESKILL_JEWLCRAFTING
@ GOSSIP_SENDER_SEC_STABLEMASTER
@ GOSSIP_ACTION_TAXI
@ GOSSIP_SENDER_SEC_CLASSTRAIN
@ GOSSIP_SENDER_SEC_BANK
@ GOSSIP_SENDER_SEC_MAILBOX
@ TRADESKILL_FIRSTAID
@ TRADESKILL_ALCHEMY
@ TRADESKILL_LEVEL_EXPERT
@ GOSSIP_ACTION_BATTLE
@ GOSSIP_ACTION_GUILD
@ GOSSIP_SENDER_MAIN
@ TRADESKILL_SKINNING
@ TRADESKILL_MINING
@ GOSSIP_ACTION_INN
@ TRADESKILL_TAILORING
@ GOSSIP_ACTION_TABARD
@ GOSSIP_ACTION_BANK
@ TRADESKILL_LEVEL_JOURNEYMAN
@ GOSSIP_ACTION_HEAL
@ TRADESKILL_LEVEL_ILLUSTRIOUS
@ TRADESKILL_LEVEL_ARTISAN
@ GOSSIP_ACTION_TRADE
@ TRADESKILL_BLACKSMITHING
@ GOSSIP_SENDER_INN_INFO
@ TRADESKILL_ARCHAEOLOGY
@ TRADESKILL_INSCRIPTION
@ GOSSIP_ACTION_AUCTION
@ GOSSIP_ACTION_UNLEARN
@ TRADESKILL_LEVEL_MASTER
@ TRADESKILL_LEVEL_NONE
@ TRADESKILL_COOKING
@ GOSSIP_ACTION_TRAIN
@ TRADESKILL_HERBALISM
@ TRADESKILL_ENCHANTING
@ GOSSIP_SENDER_SEC_INN
@ TRADESKILL_POISONS
@ GOSSIP_ACTION_INN_INFO
@ TRADESKILL_FISHING
@ TRADESKILL_LEVEL_APPRENTICE
@ GOSSIP_ACTION_INFO_DEF
@ GOSSIP_SENDER_SEC_PROFTRAIN
@ GOSSIP_SENDER_INFO
@ TRADESKILL_ENGINEERING
void TC_GAME_API AddGossipItemFor(Player *player, GossipOptionNpc optionNpc, std::string text, uint32 sender, uint32 action)
void TC_GAME_API InitGossipMenuFor(Player *player, uint32 menuId)