mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
This commit is contained in:
2
sql/updates/world/3.3.5/9999_99_99_99_world.sql
Normal file
2
sql/updates/world/3.3.5/9999_99_99_99_world.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
UPDATE `creature_template` SET `AIName`='' WHERE `entry`=28092;
|
||||
DELETE FROM `smart_scripts` WHERE `entryorguid`=28092 AND `source_type`=0;
|
||||
@@ -639,6 +639,12 @@ class npc_elder_kekek : public CreatureScript
|
||||
}
|
||||
};
|
||||
|
||||
enum TheEtymidian
|
||||
{
|
||||
SAY_ACTIVATION = 0,
|
||||
QUEST_THE_ACTIVATION_RUNE = 12547
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_the_etymidian
|
||||
## @todo A red crystal as a gift for the great one should be spawned during the event.
|
||||
@@ -668,10 +674,20 @@ class npc_the_etymidian : public CreatureScript
|
||||
Initialize();
|
||||
}
|
||||
|
||||
void sQuestReward(Player* /*player*/, Quest const* quest, uint32 /*opt*/) override
|
||||
{
|
||||
if (quest->GetQuestId() != QUEST_THE_ACTIVATION_RUNE)
|
||||
return;
|
||||
|
||||
Talk(SAY_ACTIVATION);
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit* who) override
|
||||
{
|
||||
if (!phase && who && who->GetDistance2d(me) < 10.0f)
|
||||
{
|
||||
if (Player* player = who->ToPlayer())
|
||||
{
|
||||
if (player->GetQuestStatus(QUEST_MEETING_A_GREAT_ONE) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
playerGUID = player->GetGUID();
|
||||
@@ -679,6 +695,8 @@ class npc_the_etymidian : public CreatureScript
|
||||
if (orphanGUID)
|
||||
phase = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
@@ -734,7 +752,6 @@ class npc_the_etymidian : public CreatureScript
|
||||
int8 phase;
|
||||
ObjectGuid playerGUID;
|
||||
ObjectGuid orphanGUID;
|
||||
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
|
||||
Reference in New Issue
Block a user