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
This commit is contained in:
@@ -52,6 +52,7 @@ public:
|
||||
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
hyjalAI* ai = CAST_AI(hyjalAI, pCreature->AI());
|
||||
switch(uiAction)
|
||||
{
|
||||
@@ -129,6 +130,7 @@ public:
|
||||
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
hyjalAI* ai = CAST_AI(hyjalAI, pCreature->AI());
|
||||
ai->DeSpawnVeins();//despawn the alliance veins
|
||||
switch(uiAction)
|
||||
@@ -216,6 +218,7 @@ public:
|
||||
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF)
|
||||
{
|
||||
ItemPosCountVec dest;
|
||||
|
||||
+1
@@ -232,6 +232,7 @@ public:
|
||||
|
||||
bool OnGossipSelect(Player *pPlayer, Creature *pCreature, uint32 /*sender*/, uint32 action)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
npc_arthasAI* pAI = CAST_AI(npc_arthas::npc_arthasAI,pCreature->AI());
|
||||
|
||||
if (!pAI)
|
||||
|
||||
@@ -374,6 +374,7 @@ public:
|
||||
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
ItemPosCountVec dest;
|
||||
@@ -200,6 +201,7 @@ public:
|
||||
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
InstanceScript* pInstance = pCreature->GetInstanceScript();
|
||||
switch(uiAction)
|
||||
{
|
||||
@@ -585,6 +587,7 @@ public:
|
||||
|
||||
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
InstanceScript* pInstance = pCreature->GetInstanceScript();
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user