From f67441b863ae449c2e9e7fab767531e7637d6753 Mon Sep 17 00:00:00 2001 From: Liberate Date: Sun, 29 Aug 2010 00:57:51 +0200 Subject: Fixes gossip scripts or points of interests of npc's with a Scriptname assigned to them. This fixes guards in Major cities. Thanks to Aokromes for testing. Thanks to click for converting all the scripts to work with this change. --HG-- branch : trunk --- src/server/scripts/EasternKingdoms/ghostlands.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/scripts/EasternKingdoms/ghostlands.cpp') diff --git a/src/server/scripts/EasternKingdoms/ghostlands.cpp b/src/server/scripts/EasternKingdoms/ghostlands.cpp index a57ededd846..703a4919ec4 100644 --- a/src/server/scripts/EasternKingdoms/ghostlands.cpp +++ b/src/server/scripts/EasternKingdoms/ghostlands.cpp @@ -46,6 +46,7 @@ public: bool OnGossipSelect(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction) { + pPlayer->PlayerTalkClass->ClearMenus(); if (uiAction == GOSSIP_ACTION_INFO_DEF+1) { ItemPosCountVec dest; @@ -85,6 +86,7 @@ public: bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction) { + pPlayer->PlayerTalkClass->ClearMenus(); if (uiAction == GOSSIP_ACTION_INFO_DEF) { pPlayer->CLOSE_GOSSIP_MENU(); @@ -119,6 +121,7 @@ public: bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction) { + pPlayer->PlayerTalkClass->ClearMenus(); if (uiAction == GOSSIP_ACTION_TRADE) pPlayer->SEND_VENDORLIST(pCreature->GetGUID()); return true; -- cgit v1.2.3