mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-09 03:18:57 +01:00
Scripts/Gossips: Set gossip menu id for scripts that load menu items from database
(cherry picked from commit 900a2f6d88)
This commit is contained in:
@@ -53,6 +53,7 @@ public:
|
||||
|
||||
bool OnGossipHello(Player* player) override
|
||||
{
|
||||
InitGossipMenuFor(player, NPC_GOSSIP_MENU);
|
||||
if (IsHolidayActive(HOLIDAY_HALLOWS_END) && !player->HasAura(SPELL_TRICK_OR_TREATED))
|
||||
AddGossipItemFor(player, NPC_GOSSIP_MENU_EVENT, 0, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
|
||||
|
||||
@@ -1639,6 +1639,7 @@ class npc_wormhole : public CreatureScript
|
||||
|
||||
bool OnGossipHello(Player* player) override
|
||||
{
|
||||
InitGossipMenuFor(player, MENU_ID_WORMHOLE);
|
||||
if (me->IsSummon())
|
||||
{
|
||||
if (player == me->ToTempSummon()->GetSummoner())
|
||||
|
||||
Reference in New Issue
Block a user