TrinityCore
Loading...
Searching...
No Matches
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 "GossipDef.h"
22#include "QuestDef.h"
23
24// Gossip Item Text
25#define GOSSIP_TEXT_BROWSE_GOODS "I'd like to browse your goods."
26#define GOSSIP_TEXT_TRAIN "Train me!"
27
81
82class Creature;
83
86void TC_GAME_API InitGossipMenuFor(Player* player, uint32 menuId);
88// Using provided text, not from DB
89void TC_GAME_API AddGossipItemFor(Player* player, GossipOptionIcon icon, std::string const& text, uint32 sender, uint32 action);
90// Using provided texts, not from DB
91void TC_GAME_API AddGossipItemFor(Player* player, GossipOptionIcon icon, std::string const& text, uint32 sender, uint32 action, std::string const& popupText, uint32 popupMoney, bool coded);
92// Uses gossip item info from DB
93void TC_GAME_API AddGossipItemFor(Player* player, uint32 gossipMenuID, uint32 gossipMenuItemID, uint32 sender, uint32 action);
94void TC_GAME_API SendGossipMenuFor(Player* player, uint32 npcTextID, ObjectGuid const& guid);
95void TC_GAME_API SendGossipMenuFor(Player* player, uint32 npcTextID, Creature const* creature);
97
98#endif
#define TC_GAME_API
Definition Define.h:114
uint32_t uint32
Definition Define.h:133
GossipOptionIcon
Definition GossipDef.h:59
void TC_GAME_API AddGossipItemFor(Player *player, GossipOptionIcon icon, std::string const &text, uint32 sender, uint32 action)
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_ARTISAN
@ GOSSIP_ACTION_TRADE
@ TRADESKILL_BLACKSMITHING
@ GOSSIP_SENDER_INN_INFO
@ 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 InitGossipMenuFor(Player *player, uint32 menuId)