aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortkrokli <tkrokli@hotmail.com>2016-08-30 21:15:53 +0200
committertkrokli <tkrokli@hotmail.com>2016-09-24 02:26:04 +0200
commit3ad76dea7bdd889f016cce506833af7ed73d439d (patch)
tree009b1970cf4027143d42e86f4935626c5f0c8c3b /src
parent0d70a7349d7b245adba72f9a15410a5b3d22dc77 (diff)
Core/Scripts: move npc_lunaclaw_spirit to SAI
This PR moves the core script `npc_lunaclaw_spirit` to SAI, removing hardcoded text. The quests 6001 + 6002 are druid class quests to get bear form, removed in patch 4.0.3a Changes in this PR: - remove core script, including hardcoded text (with typo) - use gossip_menu_option for each faction (Alliance & Horde) - add SAI script to complete quest 6001 or 6002 based on option - add gossip option conditions for team A (469) or team H (67) - add gossip option conditions for quest 6001/6002 not completed
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/World/npcs_special.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp
index a598f017eb6..8dd606f8b66 100644
--- a/src/server/scripts/World/npcs_special.cpp
+++ b/src/server/scripts/World/npcs_special.cpp
@@ -243,47 +243,6 @@ public:
}
};
-/*######
-## npc_lunaclaw_spirit
-######*/
-
-enum LunaclawSpirit
-{
- QUEST_BODY_HEART_A = 6001,
- QUEST_BODY_HEART_H = 6002,
-
- TEXT_ID_DEFAULT = 4714,
- TEXT_ID_PROGRESS = 4715
-};
-
-#define GOSSIP_ITEM_GRANT "You have thought well, spirit. I ask you to grant me the strength of your body and the strength of your heart."
-
-class npc_lunaclaw_spirit : public CreatureScript
-{
-public:
- npc_lunaclaw_spirit() : CreatureScript("npc_lunaclaw_spirit") { }
-
- bool OnGossipHello(Player* player, Creature* creature) override
- {
- if (player->GetQuestStatus(QUEST_BODY_HEART_A) == QUEST_STATUS_INCOMPLETE || player->GetQuestStatus(QUEST_BODY_HEART_H) == QUEST_STATUS_INCOMPLETE)
- AddGossipItemFor(player, GOSSIP_ICON_CHAT, GOSSIP_ITEM_GRANT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
-
- SendGossipMenuFor(player, TEXT_ID_DEFAULT, creature->GetGUID());
- return true;
- }
-
- bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
- {
- ClearGossipMenuFor(player);
- if (action == GOSSIP_ACTION_INFO_DEF + 1)
- {
- SendGossipMenuFor(player, TEXT_ID_PROGRESS, creature->GetGUID());
- player->AreaExploredOrEventHappens(player->GetTeam() == ALLIANCE ? QUEST_BODY_HEART_A : QUEST_BODY_HEART_H);
- }
- return true;
- }
-};
-
/*########
# npc_chicken_cluck
#########*/
@@ -2644,7 +2603,6 @@ public:
void AddSC_npcs_special()
{
new npc_air_force_bots();
- new npc_lunaclaw_spirit();
new npc_chicken_cluck();
new npc_dancing_flames();
new npc_torch_tossing_target_bunny_controller();