Support for quest 'Hand of Iruxos' (5183) by dracula70

--HG--
branch : trunk
This commit is contained in:
tartalo
2009-10-19 17:46:33 +02:00
parent 48ca729f5a
commit 2fc8b2134f
3 changed files with 22 additions and 0 deletions

View File

@@ -465,6 +465,8 @@ UPDATE `creature_template` SET `ScriptName`='npc_alexstrasza_wr_gate' WHERE `ent
/* DESOLACE */
UPDATE `creature_template` SET `ScriptName`='npc_aged_dying_ancient_kodo' WHERE `entry` IN (4700,4701,4702,11627);
UPDATE `gameobject_template` SET `ScriptName` = 'go_iruxos' WHERE `entry` = 176581;
/* DIRE MAUL */

View File

@@ -0,0 +1 @@
UPDATE `gameobject_template` SET `ScriptName` = 'go_iruxos' WHERE `entry` = 176581;

View File

@@ -157,6 +157,20 @@ bool GossipHello_npc_aged_dying_ancient_kodo(Player* pPlayer, Creature* pCreatur
return true;
}
/*######
## go_iruxos. Quest 5381
######*/
bool GOHello_go_iruxos(Player *player, GameObject* _GO)
{
if (player->GetQuestStatus(5381) == QUEST_STATUS_INCOMPLETE)
{
player->SummonCreature(11876, player->GetInnPosX(),player->GetInnPosY(),player->GetInnPosZ(),0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
}
return true;
}
void AddSC_desolace()
{
Script *newscript;
@@ -167,4 +181,9 @@ void AddSC_desolace()
newscript->pEffectDummyCreature = &EffectDummyCreature_npc_aged_dying_ancient_kodo;
newscript->pGossipHello = &GossipHello_npc_aged_dying_ancient_kodo;
newscript->RegisterSelf();
newscript = new Script;
newscript->Name = "go_iruxos";
newscript->pGOHello = &GOHello_go_iruxos;
newscript->RegisterSelf();
}