TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ScriptedGossip.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef SC_GOSSIP_H
20 #define SC_GOSSIP_H
21 
22 #include "GossipDef.h"
23 #include "QuestDef.h"
24 
25 // Gossip Item Text
26 #define GOSSIP_TEXT_BROWSE_GOODS "I'd like to browse your goods."
27 #define GOSSIP_TEXT_TRAIN "Train me!"
28 
30 {
31  // Skill defines
48 
57 
58  // Gossip defines
72 
83 };
84 
85 // Defined fuctions to use with player.
86 
87 // This fuction add's a menu item,
88 // a - Icon Id
89 // b - Text
90 // c - Sender(this is to identify the current Menu with this item)
91 // d - Action (identifys this Menu Item)
92 // e - Text to be displayed in pop up box
93 // f - Money value in pop up box
94 // g - Coded
95 // h - Menu ID from DB
96 // i - Menu item ID from DB
97 #define ADD_GOSSIP_ITEM(a, b, c, d) PlayerTalkClass->GetGossipMenu().AddMenuItem(-1, a, b, c, d, "", 0)
98 #define ADD_GOSSIP_ITEM_DB(h, i, c, d) PlayerTalkClass->GetGossipMenu().AddMenuItem(h, i, c, d)
99 #define ADD_GOSSIP_ITEM_EXTENDED(a, b, c, d, e, f, g) PlayerTalkClass->GetGossipMenu().AddMenuItem(-1, a, b, c, d, e, f, g)
100 
101 // This fuction Sends the current menu to show to client, a - NPCTEXTID(uint32), b - npc guid(uint64)
102 #define SEND_GOSSIP_MENU(a, b) PlayerTalkClass->SendGossipMenu(a, b)
103 
104 // Closes the Menu
105 #define CLOSE_GOSSIP_MENU() PlayerTalkClass->SendCloseGossip()
106 
107 #endif
Definition: ScriptedGossip.h:43
Definition: ScriptedGossip.h:32
Definition: ScriptedGossip.h:74
Definition: ScriptedGossip.h:71
eTradeskill
Definition: ScriptedGossip.h:29
Definition: ScriptedGossip.h:37
Definition: ScriptedGossip.h:59
Definition: ScriptedGossip.h:61
Definition: ScriptedGossip.h:35
Definition: ScriptedGossip.h:77
Definition: ScriptedGossip.h:53
Definition: ScriptedGossip.h:36
Definition: ScriptedGossip.h:42
Definition: ScriptedGossip.h:68
Definition: ScriptedGossip.h:82
Definition: ScriptedGossip.h:34
Definition: ScriptedGossip.h:47
Definition: ScriptedGossip.h:33
Definition: ScriptedGossip.h:55
Definition: ScriptedGossip.h:78
Definition: ScriptedGossip.h:46
Definition: ScriptedGossip.h:80
Definition: ScriptedGossip.h:67
Definition: ScriptedGossip.h:65
Definition: ScriptedGossip.h:44
Definition: ScriptedGossip.h:62
Definition: ScriptedGossip.h:69
Definition: ScriptedGossip.h:70
Definition: ScriptedGossip.h:40
Definition: ScriptedGossip.h:66
Definition: ScriptedGossip.h:49
Definition: ScriptedGossip.h:51
Definition: ScriptedGossip.h:63
Definition: ScriptedGossip.h:39
Definition: ScriptedGossip.h:79
Definition: ScriptedGossip.h:81
Definition: ScriptedGossip.h:75
Definition: ScriptedGossip.h:60
Definition: ScriptedGossip.h:73
Definition: ScriptedGossip.h:38
Definition: ScriptedGossip.h:52
Definition: ScriptedGossip.h:56
Definition: ScriptedGossip.h:76
Definition: ScriptedGossip.h:41
Definition: ScriptedGossip.h:45
Definition: ScriptedGossip.h:54
Definition: ScriptedGossip.h:50
Definition: ScriptedGossip.h:64