Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 0ac5f708fea37c9a4208268b7b552139ee5cbd19 Mon Sep 17 00:00:00 2001
- From: unknown <cristi@cristis-PC.(none)>
- Date: Thu, 19 Jul 2012 21:55:19 +0300
- Subject: [PATCH] Fix quest A head full of Wind
- ---
- src/server/scripts/Maelstrom/deepholm.cpp | 43 +++++++++++++++++++++++++++++
- 1 file changed, 43 insertions(+)
- diff --git a/src/server/scripts/Maelstrom/deepholm.cpp b/src/server/scripts/Maelstrom/deepholm.cpp
- index 350a605..0449e04 100644
- --- a/src/server/scripts/Maelstrom/deepholm.cpp
- +++ b/src/server/scripts/Maelstrom/deepholm.cpp
- @@ -433,6 +433,48 @@ class npc_pebble : public CreatureScript
- }
- };
- +/*###
- +## Support for quest A head Full of Wind 26581
- +######*/
- +
- +enum eRedMistEntries
- +{
- + QUEST_A_HEAD_FULL_OF_WIND = 26581,
- + SPELL_RED_MIST_AURA = 77707,
- + SPELL_CREDIT = 84510
- +};
- +
- +class npc_red_mist : public CreatureScript
- +{
- + public:
- + npc_red_mist() : CreatureScript("npc_red_mist") { }
- +
- + struct npc_red_mistAI : public ScriptedAI
- + {
- + npc_red_mistAI(Creature* creature) : ScriptedAI(creature) { }
- +
- + void Reset()
- + {
- + me->CastSpell(me,SPELL_RED_MIST_AURA);
- + }
- +
- + void MoveInLineOfSight(Unit* who)
- + {
- + Player* player = who->ToPlayer();
- +
- + if(player && (me->GetDistance(player) < 10.0f) && (player->GetQuestStatus(QUEST_A_HEAD_FULL_OF_WIND)==QUEST_STATUS_INCOMPLETE))
- + {
- + player->CastSpell(player,SPELL_CREDIT);
- + }
- + }
- + };
- +
- + CreatureAI* GetAI(Creature *creature) const
- + {
- + return new npc_red_mistAI(creature);
- + }
- +};
- +
- void AddSC_deepholm()
- {
- new npc_lodestone();
- @@ -443,4 +485,5 @@ void AddSC_deepholm()
- new npc_petrified_stone_bat();
- new npc_kor_the_immovable();
- new npc_pebble();
- + new npc_red_mist();
- }
- --
- 1.7.10.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment