Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions data/sql/updates/pending_db_world/rev_1764224411866335544.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Add creature_text for Eck the Ferocious "grows increasingly crazed" emote
DELETE FROM `creature_text` WHERE `CreatureID` = 29932 AND `GroupID` = 1;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`)
VALUES (29932, 1, 0, '%s grows increasingly crazed!', 16, 0, 100, 0, 0, 0, 30727, 0, 'Eck the Ferocious - Crazed Warning');
17 changes: 6 additions & 11 deletions src/server/scripts/Northrend/Gundrak/boss_eck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ enum Misc
EVENT_ECK_BITE = 2,
EVENT_ECK_SPIT = 3,
EVENT_ECK_SPRING = 4,
EVENT_ECK_HEALTH = 5
EVENT_ECK_CRAZED_EMOTE = 5,
EMOTE_CRAZED = 1
};

class boss_eck : public CreatureScript
Expand Down Expand Up @@ -89,7 +90,8 @@ class boss_eck : public CreatureScript
void JustEngagedWith(Unit* who) override
{
BossAI::JustEngagedWith(who);
events.ScheduleEvent(EVENT_ECK_BERSERK, 60s, 90s);
events.ScheduleEvent(EVENT_ECK_CRAZED_EMOTE, 76s, 78s);
events.ScheduleEvent(EVENT_ECK_BERSERK, 90s);
events.ScheduleEvent(EVENT_ECK_BITE, 5s);
events.ScheduleEvent(EVENT_ECK_SPIT, 10s, 37s);
events.ScheduleEvent(EVENT_ECK_SPRING, 10s, 24s);
Expand All @@ -111,18 +113,11 @@ class boss_eck : public CreatureScript

switch (events.ExecuteEvent())
{
case EVENT_ECK_HEALTH:
if (me->HealthBelowPct(21))
{
events.CancelEvent(EVENT_ECK_BERSERK);
me->CastSpell(me, SPELL_ECK_BERSERK, false);
break;
}
events.ScheduleEvent(EVENT_ECK_HEALTH, 1s);
case EVENT_ECK_CRAZED_EMOTE:
Talk(EMOTE_CRAZED);
break;
case EVENT_ECK_BERSERK:
me->CastSpell(me, SPELL_ECK_BERSERK, false);
events.CancelEvent(EVENT_ECK_HEALTH);
break;
case EVENT_ECK_BITE:
me->CastSpell(me->GetVictim(), SPELL_ECK_BITE, false);
Expand Down