TrinityCore/TrinityCore — Issue #5273: You Don't Have An Eternity (10+25)
Author: mweinelt
Created: 2012-02-16 21:37:39+00:00
State: open

```patch
diff --git a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
index 6dfa62d..7bfdd09 100644
--- a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
+++ b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
@@ -126,6 +126,11 @@ enum MalygosEvents
DATA_PHASE
};

+enum
+{
+ ACHIEV_YOU_DONT_HAVE_AN_ETERNITY_STARTING_EVENT = 20387,
+};
+
#define TEN_MINUTES 600000

enum MalygosSays
@@ -242,6 +247,10 @@ public:
_cannotMove = true;

me->SetFlying(true);
+
+ if (instance)
+ instance->DoStopTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_YOU_DONT_HAVE_AN_ETERNITY_STARTING_EVENT);
+
}

uint32 GetData(uint32 data)
@@ -360,6 +369,9 @@ public:
Talk(SAY_AGGRO_P_ONE);

DoCast(SPELL_BERSEKER);
+
+ if (instance)
+ instance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_YOU_DONT_HAVE_AN_ETERNITY_STARTING_EVENT);
}

void KilledUnit(Unit* who)
```

```mysql
DELETE FROM `achievement_crtieria_data` WHERE `criteria_id` IN (1874,1875);
INSERT INTO `achievement_criteria_data` (`criteria_id`, `type`, `value1`, `value2`, `ScriptName`) VALUES
('1874', '12', '0', '0', ''), -- 10 players
('1875', '12', '1', '0', ''); -- 25 players
```

tested and works, this is my first code-patch, so be gentle :)