Gossip for Kalaran Windblade and Zamael Lunthistle.
This commit is contained in:
@@ -17,55 +17,17 @@
|
||||
/* ScriptData
|
||||
SDName: Searing_Gorge
|
||||
SD%Complete: 80
|
||||
SDComment: Quest support: 3377, 3441 (More accurate info on Kalaran needed). Lothos Riftwaker teleport to Molten Core.
|
||||
SDComment: Quest support: Lothos Riftwaker teleport to Molten Core.
|
||||
SDCategory: Searing Gorge
|
||||
EndScriptData */
|
||||
|
||||
/* ContentData
|
||||
npc_kalaran_windblade
|
||||
npc_lothos_riftwaker
|
||||
npc_zamael_lunthistle
|
||||
EndContentData */
|
||||
|
||||
#include "scriptPCH.h"
|
||||
|
||||
/*######
|
||||
## npc_kalaran_windblade
|
||||
######*/
|
||||
|
||||
bool GossipHello_npc_kalaran_windblade(Player* pPlayer, Creature* pCreature)
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
|
||||
if (pPlayer->GetQuestStatus(3441) == QUEST_STATUS_INCOMPLETE)
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Tell me what drives this vengance?", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF);
|
||||
|
||||
pPlayer->SEND_GOSSIP_MENU(pPlayer->GetGossipTextId(pCreature), pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_kalaran_windblade(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Continue please", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
pPlayer->SEND_GOSSIP_MENU(1954, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Let me confer with my colleagues", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);
|
||||
pPlayer->SEND_GOSSIP_MENU(1955, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+2:
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
pPlayer->AreaExploredOrEventHappens(3441);
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/*######
|
||||
## npc_lothos_riftwaker
|
||||
######*/
|
||||
@@ -99,42 +61,6 @@ bool GossipSelect_npc_lothos_riftwaker(Player* pPlayer, Creature* pCreature, uin
|
||||
return true;
|
||||
}
|
||||
|
||||
/*######
|
||||
## npc_zamael_lunthistle
|
||||
######*/
|
||||
|
||||
bool GossipHello_npc_zamael_lunthistle(Player* pPlayer, Creature* pCreature)
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
|
||||
if (pPlayer->GetQuestStatus(3377) == QUEST_STATUS_INCOMPLETE)
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Tell me your story", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF);
|
||||
|
||||
pPlayer->SEND_GOSSIP_MENU(1920, pCreature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_zamael_lunthistle(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
{
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Please continue...", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
pPlayer->SEND_GOSSIP_MENU(1921, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Goodbye", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);
|
||||
pPlayer->SEND_GOSSIP_MENU(1922, pCreature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+2:
|
||||
pPlayer->CLOSE_GOSSIP_MENU();
|
||||
pPlayer->AreaExploredOrEventHappens(3377);
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/*######
|
||||
## npc_dorius_stonetender
|
||||
######*/
|
||||
@@ -451,24 +377,12 @@ void AddSC_searing_gorge()
|
||||
{
|
||||
Script *newscript;
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_kalaran_windblade";
|
||||
newscript->pGossipHello = &GossipHello_npc_kalaran_windblade;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_kalaran_windblade;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_lothos_riftwaker";
|
||||
newscript->pGossipHello = &GossipHello_npc_lothos_riftwaker;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_lothos_riftwaker;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_zamael_lunthistle";
|
||||
newscript->pGossipHello = &GossipHello_npc_zamael_lunthistle;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_zamael_lunthistle;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_dorius_stonetender";
|
||||
newscript->GetAI = &GetAI_npc_dorius_stonetender;
|
||||
|
||||
Reference in New Issue
Block a user