Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/bindings/ScriptDev2/scripts/northrend/howling_fjord.cpp b/src/bindings/ScriptDev2/scripts/northrend/howling_fjord.cpp
- index 0229ef8..c81d780 100644
- --- a/src/bindings/ScriptDev2/scripts/northrend/howling_fjord.cpp
- +++ b/src/bindings/ScriptDev2/scripts/northrend/howling_fjord.cpp
- @@ -671,6 +671,43 @@ CreatureAI* GetAI_npc_olga(Creature* pCreature)
- return new npc_olgaAI(pCreature);
- }
- +/*#####
- +## go_dragonflayer_cage
- +#####*/
- +
- +enum
- +{
- + QUEST_PRISONERS_OF_WYRMSKULL = 11255,
- + NPC_VALGARDE_PRISONER1 = 24086,
- + NPC_VALGARDE_PRISONER2 = 24088,
- + NPC_VALGARDE_PRISONER3 = 24089,
- + NPC_VALGARDE_PRISONER4 = 24090,
- + CAPTURED_VALGARDE_PRISONER = 24124,
- + SPELL_DESPAWN_SELF = 43014,
- + SAY_THANKS = -1999843 // "I'm free? I'm free!"
- +};
- +
- +bool GOHello_go_dragonflayer_cage(Player* pPlayer, GameObject* pGo)
- +{
- + if (pPlayer->GetQuestStatus(QUEST_PRISONERS_OF_WYRMSKULL) == QUEST_STATUS_INCOMPLETE)
- + {
- + Creature *pPrisoner = GetClosestCreatureWithEntry(pPlayer, NPC_VALGARDE_PRISONER1, INTERACTION_DISTANCE);
- + if(!pPrisoner)
- + pPrisoner = GetClosestCreatureWithEntry(pPlayer, NPC_VALGARDE_PRISONER2, INTERACTION_DISTANCE);
- + if(!pPrisoner)
- + pPrisoner = GetClosestCreatureWithEntry(pPlayer, NPC_VALGARDE_PRISONER3, INTERACTION_DISTANCE);
- + if(!pPrisoner)
- + pPrisoner = GetClosestCreatureWithEntry(pPlayer, NPC_VALGARDE_PRISONER4, INTERACTION_DISTANCE);
- + if(pPrisoner)
- + {
- + pPlayer->KilledMonsterCredit(CAPTURED_VALGARDE_PRISONER, pPrisoner->GetGUID());
- + DoScriptText(SAY_THANKS, pPrisoner);
- + pPrisoner->CastSpell(pPrisoner, SPELL_DESPAWN_SELF, false);
- + }
- + }
- + return false;
- +};
- +
- void AddSC_howling_fjord()
- {
- Script* newscript;
- @@ -724,4 +761,9 @@ void AddSC_howling_fjord()
- newscript->pGossipHello = &GossipHello_npc_jack_adams;
- newscript->pGossipSelect = &GossipSelect_npc_jack_adams;
- newscript->RegisterSelf();
- +
- + newscript = new Script;
- + newscript->Name = "go_dragonflayer_cage";
- + newscript->pGOHello = &GOHello_go_dragonflayer_cage;
- + newscript->RegisterSelf();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement