Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From e08dd6b573b64a7968fa7b39c964c820c6c8b18c Mon Sep 17 00:00:00 2001
- From: unknown <cristi@cristis-PC.(none)>
- Date: Wed, 25 Jul 2012 18:53:05 +0300
- Subject: [PATCH] Fix quest Rallying the Earthen Ring
- ---
- src/server/scripts/Maelstrom/deepholm.cpp | 55 +++++++++++++++++++++++++++++
- 1 file changed, 55 insertions(+)
- diff --git a/src/server/scripts/Maelstrom/deepholm.cpp b/src/server/scripts/Maelstrom/deepholm.cpp
- index 0906093..f87ae1c 100644
- --- a/src/server/scripts/Maelstrom/deepholm.cpp
- +++ b/src/server/scripts/Maelstrom/deepholm.cpp
- @@ -1457,6 +1457,60 @@ public:
- };
- };
- +/*#####
- +## Support for quest Rallyng the Earthen Ring - 26827
- +#########*/
- +
- +enum eRallyingTheEarthenRing
- +{
- + QUEST_RALLYING_THE_EARTHEN_RING = 26827,
- + NPC_EARTHEN_RING_SHAMAN = 44088,
- + NPC_EARTHEN_RING_SHAMAN_CREDIT = 44133,
- +
- +};
- +
- +#define GOSSIP_EARTHEN_RING_SHAMAN "Rally the Shaman... "
- +
- +class npc_earthen_ring_shaman : public CreatureScript
- +{
- +public:
- + npc_earthen_ring_shaman() : CreatureScript("npc_earthen_ring_shaman") { }
- +
- + bool OnGossipHello(Player* player, Creature* creature)
- + {
- + if(player->GetQuestStatus(QUEST_RALLYING_THE_EARTHEN_RING)==QUEST_STATUS_INCOMPLETE)
- + player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_EARTHEN_RING_SHAMAN, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
- +
- + player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
- + return true;
- + }
- +
- + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
- + {
- + player->PlayerTalkClass->ClearMenus();
- + player->KilledMonsterCredit(NPC_EARTHEN_RING_SHAMAN_CREDIT,0);
- + player->CLOSE_GOSSIP_MENU();
- + creature->DespawnOrUnsummon();
- +
- + return true;
- + }
- +
- + struct npc_earthen_ring_shamanAI : public ScriptedAI
- + {
- + npc_earthen_ring_shamanAI(Creature* creature) : ScriptedAI(creature){}
- +
- + void Reset()
- + {
- + me->SetFlag(UNIT_NPC_FLAGS,UNIT_NPC_FLAG_GOSSIP);
- + }
- + };
- +
- + CreatureAI* GetAI(Creature *creature) const
- + {
- + return new npc_earthen_ring_shamanAI(creature);
- + }
- +};
- +
- void AddSC_deepholm()
- {
- new npc_lodestone();
- @@ -1483,4 +1537,5 @@ void AddSC_deepholm()
- new npc_boden_the_imposing();
- new spell_earthen_ring_proclamation();
- new npc_ricket_ticker();
- + new npc_earthen_ring_shaman();
- }
- --
- 1.7.10.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment