diff options
author | n0n4m3 <none@none> | 2009-12-30 18:42:55 +0100 |
---|---|---|
committer | n0n4m3 <none@none> | 2009-12-30 18:42:55 +0100 |
commit | 72b7c5c69d14a96d9fa4489ab95e8be40b8acd24 (patch) | |
tree | b364e6b9a01dc12aa0c74c70ecf52a7f4d7ed057 /src | |
parent | 269ec72bd5bde6bbbbf4b2ae174eccfa40931dd4 (diff) |
Added script support for quest The Valiant's Challenge(13699), by alister
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/northrend/icecrown.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/northrend/icecrown.cpp b/src/bindings/scripts/scripts/northrend/icecrown.cpp index 2c60709eb5b..bb6f83c3893 100644 --- a/src/bindings/scripts/scripts/northrend/icecrown.cpp +++ b/src/bindings/scripts/scripts/northrend/icecrown.cpp @@ -105,6 +105,19 @@ bool GossipSelect_npc_arete(Player* pPlayer, Creature* pCreature, uint32 uiSende return true; } +/*###### +## The Valiant's Challenge Quest 13699 +######*/ + +bool GossipHello_valiant_challenge(Player* player, Creature* _Creature) +{ + if (player->GetQuestStatus(13699) == QUEST_STATUS_INCOMPLETE) + { + player->SummonCreature(30675, player->GetInnPosX(),player->GetInnPosY(),player->GetInnPosZ(),0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,1000000); + } + return true; +} + void AddSC_icecrown() { Script *newscript; @@ -114,4 +127,9 @@ void AddSC_icecrown() newscript->pGossipHello = &GossipHello_npc_arete; newscript->pGossipSelect = &GossipSelect_npc_arete; newscript->RegisterSelf(); + + newscript = new Script; + newscript->Name = "valiant_challenge"; + newscript->pGossipHello = &GossipHello_valiant_challenge; + newscript->RegisterSelf(); } |