Quest Support All Along the Watchtowers (5097,5098). Thanks Retriman.

Fixes issue #519.

--HG--
branch : trunk
This commit is contained in:
Trazom62
2010-02-03 22:27:35 +01:00
parent 000876b2f4
commit b1cc10aaf0
2 changed files with 36 additions and 1 deletions
@@ -0,0 +1 @@
UPDATE `creature_template` SET `ScriptName`='npc_andorhal_tower' WHERE `entry` in (10902,10903,10904,10905);
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Western_Plaguelands
SD%Complete: 90
SDComment: Quest support: 5216, 5219, 5222, 5225, 5229, 5231, 5233, 5235. To obtain Vitreous Focuser (could use more spesifics about gossip items)
SDComment: Quest support: 5097, 5098, 5216, 5219, 5222, 5225, 5229, 5231, 5233, 5235. To obtain Vitreous Focuser (could use more spesifics about gossip items)
SDCategory: Western Plaguelands
EndScriptData */
@@ -25,6 +25,7 @@ EndScriptData */
npcs_dithers_and_arbington
npc_myranda_the_hag
npc_the_scourge_cauldron
npc_andorhal_tower
EndContentData */
#include "ScriptedPch.h"
@@ -204,6 +205,34 @@ CreatureAI* GetAI_npc_the_scourge_cauldron(Creature* pCreature)
return new npc_the_scourge_cauldronAI (pCreature);
}
/*######
## npcs_andorhal_tower
######*/
enum eAndorhalTower
{
GO_BEACON_TORCH = 176093
};
struct TRINITY_DLL_DECL npc_andorhal_towerAI : public Scripted_NoMovementAI
{
npc_andorhal_towerAI(Creature *c) : Scripted_NoMovementAI(c) {}
void MoveInLineOfSight(Unit* pWho)
{
if (!pWho || pWho->GetTypeId() != TYPEID_PLAYER)
return;
if (m_creature->FindNearestGameObject(GO_BEACON_TORCH, 10.0f))
CAST_PLR(pWho)->KilledMonsterCredit(m_creature->GetEntry(), m_creature->GetGUID());
}
};
CreatureAI* GetAI_npc_andorhal_tower(Creature* pCreature)
{
return new npc_andorhal_towerAI (pCreature);
}
/*######
##
######*/
@@ -228,4 +257,9 @@ void AddSC_western_plaguelands()
newscript->Name = "npc_the_scourge_cauldron";
newscript->GetAI = &GetAI_npc_the_scourge_cauldron;
newscript->RegisterSelf();
newscript = new Script;
newscript->Name = "npc_andorhal_tower";
newscript->GetAI = &GetAI_npc_andorhal_tower;
newscript->RegisterSelf();
}