Skip to content

Commit

Permalink
SD2: Stone Watcher of Norgannon 7918
Browse files Browse the repository at this point in the history
Gossip moved to DB

Part of:
cmangos/wotlk-db@51f6682
  • Loading branch information
Grz3s committed Sep 15, 2024
1 parent 7a15dfd commit 6bedfb2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 64 deletions.
1 change: 0 additions & 1 deletion sql/scriptdev2/scriptdev2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,6 @@ UPDATE creature_template SET ScriptName='npc_galen_goodward' WHERE entry=5391;
UPDATE creature_template SET ScriptName='mob_aquementas' WHERE entry=9453;
UPDATE creature_template SET ScriptName='npc_custodian_of_time' WHERE entry=20129;
UPDATE creature_template SET ScriptName='npc_oox17tn' WHERE entry=7784;
UPDATE creature_template SET ScriptName='npc_stone_watcher_of_norgannon' WHERE entry=7918;
UPDATE creature_template SET ScriptName='npc_tooga' WHERE entry=5955;

/* TELDRASSIL */
Expand Down
63 changes: 0 additions & 63 deletions src/game/AI/ScriptDevAI/scripts/kalimdor/tanaris.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ EndScriptData */
mob_aquementas
npc_custodian_of_time
npc_oox17tn
npc_stone_watcher_of_norgannon
npc_tooga
EndContentData */

Expand Down Expand Up @@ -336,62 +335,6 @@ bool QuestAccept_npc_oox17tn(Player* pPlayer, Creature* pCreature, const Quest*
return true;
}

/*######
## npc_stone_watcher_of_norgannon
######*/

#define GOSSIP_ITEM_NORGANNON_1 "What function do you serve?"
#define GOSSIP_ITEM_NORGANNON_2 "What are the Plates of Uldum?"
#define GOSSIP_ITEM_NORGANNON_3 "Where are the Plates of Uldum?"
#define GOSSIP_ITEM_NORGANNON_4 "Excuse me? We've been \"reschedueled for visitations\"? What does that mean?!"
#define GOSSIP_ITEM_NORGANNON_5 "So, what's inside Uldum?"
#define GOSSIP_ITEM_NORGANNON_6 "I will return when i have the Plates of Uldum."

bool GossipHello_npc_stone_watcher_of_norgannon(Player* pPlayer, Creature* pCreature)
{
if (pCreature->isQuestGiver())
pPlayer->PrepareQuestMenu(pCreature->GetObjectGuid());

if (pPlayer->GetQuestStatus(2954) == QUEST_STATUS_INCOMPLETE)
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF);

pPlayer->SEND_GOSSIP_MENU(1674, pCreature->GetObjectGuid());

return true;
}

bool GossipSelect_npc_stone_watcher_of_norgannon(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
case GOSSIP_ACTION_INFO_DEF:
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
pPlayer->SEND_GOSSIP_MENU(1675, pCreature->GetObjectGuid());
break;
case GOSSIP_ACTION_INFO_DEF+1:
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_3, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);
pPlayer->SEND_GOSSIP_MENU(1676, pCreature->GetObjectGuid());
break;
case GOSSIP_ACTION_INFO_DEF+2:
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_4, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);
pPlayer->SEND_GOSSIP_MENU(1677, pCreature->GetObjectGuid());
break;
case GOSSIP_ACTION_INFO_DEF+3:
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_5, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 4);
pPlayer->SEND_GOSSIP_MENU(1678, pCreature->GetObjectGuid());
break;
case GOSSIP_ACTION_INFO_DEF+4:
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_NORGANNON_6, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 5);
pPlayer->SEND_GOSSIP_MENU(1679, pCreature->GetObjectGuid());
break;
case GOSSIP_ACTION_INFO_DEF+5:
pPlayer->CLOSE_GOSSIP_MENU();
pPlayer->AreaExploredOrEventHappens(2954);
break;
}
return true;
}

/*####
# npc_tooga
####*/
Expand Down Expand Up @@ -569,12 +512,6 @@ void AddSC_tanaris()
pNewScript->pQuestAcceptNPC = &QuestAccept_npc_oox17tn;
pNewScript->RegisterSelf();

pNewScript = new Script;
pNewScript->Name = "npc_stone_watcher_of_norgannon";
pNewScript->pGossipHello = &GossipHello_npc_stone_watcher_of_norgannon;
pNewScript->pGossipSelect = &GossipSelect_npc_stone_watcher_of_norgannon;
pNewScript->RegisterSelf();

pNewScript = new Script;
pNewScript->Name = "npc_tooga";
pNewScript->GetAI = &GetAI_npc_tooga;
Expand Down

0 comments on commit 6bedfb2

Please sign in to comment.