Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 9de61ee43a5f5fdab9dcf3e15e422d489332b6f5 Mon Sep 17 00:00:00 2001
- From: unknown <cristi@cristis-PC.(none)>
- Date: Tue, 17 Jul 2012 23:00:05 +0300
- Subject: [PATCH] Fix quest Gunship Down
- ---
- src/server/scripts/Maelstrom/deepholm.cpp | 66 +++++++++++++++++++++++++++++
- 1 file changed, 66 insertions(+)
- diff --git a/src/server/scripts/Maelstrom/deepholm.cpp b/src/server/scripts/Maelstrom/deepholm.cpp
- index feb3ca6..f6fae69 100644
- --- a/src/server/scripts/Maelstrom/deepholm.cpp
- +++ b/src/server/scripts/Maelstrom/deepholm.cpp
- @@ -180,9 +180,75 @@ class npc_energized_geode : public CreatureScript
- }
- };
- +/*#####
- +## Support for quest Gunship Down - 26245
- +#########*/
- +
- +enum eGunshipDownEntries
- +{
- + QUEST_GUNSHIP_DOWN = 26245,
- + NPC_UNEXPLODED_ARTILLERY = 43044,
- + NPC_SLAIN_CANNONEER = 43032,
- + NPC_CAPTAIN_SKULLSHATTER = 43048,
- + CREDIT_FIRST_CLUE = 43027,
- + CREDIT_SECOND_CLUE = 43028,
- + CREDIT_THIRD_CLUE = 43029
- +};
- +
- +#define GOSSIP_FIRST_CLUE "Retrieve First Clue..."
- +#define GOSSIP_SECOND_CLUE "Retrieve Second Clue..."
- +#define GOSSIP_THIRD_CLUE "Retrieve Third Clue..."
- +
- +class npc_clues_gunship_down : public CreatureScript
- +{
- +public:
- + npc_clues_gunship_down() : CreatureScript("npc_clues_gunship_down") { }
- +
- + bool OnGossipHello(Player* player, Creature* creature)
- + {
- + if(player->GetQuestStatus(QUEST_GUNSHIP_DOWN)==QUEST_STATUS_INCOMPLETE)
- + {
- + switch (creature->GetEntry())
- + {
- + case NPC_UNEXPLODED_ARTILLERY:
- + player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_THIRD_CLUE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);break;
- + case NPC_SLAIN_CANNONEER:
- + player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_SECOND_CLUE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);break;
- + case NPC_CAPTAIN_SKULLSHATTER:
- + player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_FIRST_CLUE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);break;
- + default: break;
- + }
- + }
- +
- + player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
- + return true;
- + }
- +
- + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
- + {
- + player->PlayerTalkClass->ClearMenus();
- +
- + switch (action)
- + {
- + case GOSSIP_ACTION_INFO_DEF + 1:
- + player->KilledMonsterCredit(CREDIT_THIRD_CLUE,0);break;
- + case GOSSIP_ACTION_INFO_DEF + 2:
- + player->KilledMonsterCredit(CREDIT_SECOND_CLUE,0);break;
- + case GOSSIP_ACTION_INFO_DEF + 3:
- + player->KilledMonsterCredit(CREDIT_FIRST_CLUE,0);break;
- + default: break;
- + }
- +
- + player->CLOSE_GOSSIP_MENU();
- +
- + return true;
- + }
- +};
- +
- void AddSC_deepholm()
- {
- new npc_lodestone();
- new npc_slaincrewmember();
- new npc_energized_geode();
- + new npc_clues_gunship_down();
- }
- --
- 1.7.10.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment