aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Custom
diff options
context:
space:
mode:
authorLiberate <none@none>2010-08-29 00:57:51 +0200
committerLiberate <none@none>2010-08-29 00:57:51 +0200
commitf67441b863ae449c2e9e7fab767531e7637d6753 (patch)
tree6bf0fae28da98a10b8c907baf55f30ef68b2523c /src/server/scripts/Custom
parent7ad5e2ad875e7488175f6c59b68f548372489e4b (diff)
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
Diffstat (limited to 'src/server/scripts/Custom')
-rw-r--r--src/server/scripts/Custom/custom_example.cpp1
-rw-r--r--src/server/scripts/Custom/npc_acherus_taxi.cpp1
-rw-r--r--src/server/scripts/Custom/npc_wyrmresttempel_taxi.cpp3
3 files changed, 5 insertions, 0 deletions
diff --git a/src/server/scripts/Custom/custom_example.cpp b/src/server/scripts/Custom/custom_example.cpp
index c0de8cc5475..e9c43cfbc6a 100644
--- a/src/server/scripts/Custom/custom_example.cpp
+++ b/src/server/scripts/Custom/custom_example.cpp
@@ -80,6 +80,7 @@ public:
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
{
+ pPlayer->PlayerTalkClass->ClearMenus();
if (uiSender == GOSSIP_SENDER_MAIN)
SendDefaultMenu(pPlayer, pCreature, uiAction);
diff --git a/src/server/scripts/Custom/npc_acherus_taxi.cpp b/src/server/scripts/Custom/npc_acherus_taxi.cpp
index 86530ac2094..059b69fe0cc 100644
--- a/src/server/scripts/Custom/npc_acherus_taxi.cpp
+++ b/src/server/scripts/Custom/npc_acherus_taxi.cpp
@@ -35,6 +35,7 @@ public:
bool OnGossipSelect(Player *pPlayer, Creature * /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
+ pPlayer->PlayerTalkClass->ClearMenus();
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
{
if (pPlayer->GetPositionZ() >= 316)
diff --git a/src/server/scripts/Custom/npc_wyrmresttempel_taxi.cpp b/src/server/scripts/Custom/npc_wyrmresttempel_taxi.cpp
index ac72117da1a..301be4b7baf 100644
--- a/src/server/scripts/Custom/npc_wyrmresttempel_taxi.cpp
+++ b/src/server/scripts/Custom/npc_wyrmresttempel_taxi.cpp
@@ -43,6 +43,7 @@ public:
bool OnGossipSelect(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
+ pPlayer->PlayerTalkClass->ClearMenus();
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1)
pPlayer->GetSession()->SendDoFlight(6376, 881);
@@ -70,6 +71,7 @@ public:
bool OnGossipSelect(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
+ pPlayer->PlayerTalkClass->ClearMenus();
if (uiAction == GOSSIP_ACTION_INFO_DEF + 4)
pPlayer->GetSession()->SendDoFlight(6376, 878);
@@ -96,6 +98,7 @@ public:
bool OnGossipSelect(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
+ pPlayer->PlayerTalkClass->ClearMenus();
if (uiAction == GOSSIP_ACTION_INFO_DEF + 5)
pPlayer->GetSession()->SendDoFlight(6376, 879);