mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
fix(DB/SAI): Lunaclaw (#4859)
Co-authored-by: joschiwald <joschiwald@online.de> Co-authored-by: illfated <illfated@users.noreply.github.com>
This commit is contained in:
@@ -14,7 +14,6 @@ EndScriptData
|
||||
|
||||
/* ContentData
|
||||
npc_air_force_bots 80% support for misc (invisible) guard bots in areas where player allowed to fly. Summon guards after a preset time if tagged by spell
|
||||
npc_lunaclaw_spirit 80% support for quests 6001/6002 (Body and Heart)
|
||||
npc_chicken_cluck 100% support for quest 3861 (Cluck!)
|
||||
npc_dancing_flames 100% midsummer event NPC
|
||||
npc_guardian 100% guardianAI used to prevent players from accessing off-limits areas. Not in use by SD2
|
||||
@@ -631,47 +630,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->GetTeamId() == TEAM_ALLIANCE ? QUEST_BODY_HEART_A : QUEST_BODY_HEART_H);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
/*########
|
||||
# npc_chicken_cluck
|
||||
#########*/
|
||||
@@ -2503,7 +2461,6 @@ void AddSC_npcs_special()
|
||||
|
||||
// Theirs
|
||||
new npc_air_force_bots();
|
||||
new npc_lunaclaw_spirit();
|
||||
new npc_chicken_cluck();
|
||||
new npc_dancing_flames();
|
||||
new npc_doctor();
|
||||
|
||||
Reference in New Issue
Block a user