mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-10 19:20:32 +00:00
fix(Scripts/Misc): Adjust points from old wrong 0 based indexing to smart ai indexing (#23472)
This commit is contained in:
@@ -130,9 +130,9 @@ enum Misc
|
||||
ACTION_DRAKE_DIED = 3,
|
||||
|
||||
// Movement points
|
||||
POINT_FINAL_TENEBRON = 8,
|
||||
POINT_FINAL_SHADRON = 4,
|
||||
POINT_FINAL_VESPERON = 4,
|
||||
POINT_FINAL_TENEBRON = 9,
|
||||
POINT_FINAL_SHADRON = 5,
|
||||
POINT_FINAL_VESPERON = 5,
|
||||
|
||||
// Lava directions. Its used to identify to which side lava was moving by last time
|
||||
LAVA_LEFT_SIDE = 0,
|
||||
|
||||
@@ -1200,16 +1200,16 @@ public:
|
||||
|
||||
switch (id)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
Talk(me->GetEntry() == NPC_JAINA_PART2 ? SAY_JAINA_OUTRO_2 : SAY_SYLVANAS_OUTRO_2);
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
if (me->GetEntry() == NPC_JAINA_PART2)
|
||||
{
|
||||
Talk(SAY_JAINA_OUTRO_3);
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
me->SetNpcFlag(UNIT_NPC_FLAG_QUESTGIVER);
|
||||
if (GameObject* g = me->FindNearestGameObject(GO_HOR_PORTCULLIS, 50.0f))
|
||||
g->SetGoState(GO_STATE_ACTIVE);
|
||||
|
||||
@@ -95,7 +95,7 @@ enum EnslavedProtoDrake
|
||||
SPELL_FLAME_BREATH = 50653,
|
||||
SPELL_KNOCK_AWAY = 49722,
|
||||
|
||||
POINT_LAST = 5,
|
||||
POINT_LAST = 6,
|
||||
};
|
||||
|
||||
const Position protodrakeCheckPos = {206.24f, -190.28f, 200.11f, 0.f};
|
||||
|
||||
@@ -1652,7 +1652,7 @@ public:
|
||||
|
||||
void MovementInform(uint32 type, uint32 param) override
|
||||
{
|
||||
if (type == WAYPOINT_MOTION_TYPE && param == 2)
|
||||
if (type == WAYPOINT_MOTION_TYPE && param == 3)
|
||||
{
|
||||
me->SetWalk(false);
|
||||
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY1H);
|
||||
@@ -2024,7 +2024,7 @@ public:
|
||||
|
||||
void MovementInform(uint32 type, uint32 param) override
|
||||
{
|
||||
if (type == WAYPOINT_MOTION_TYPE && param == 2)
|
||||
if (type == WAYPOINT_MOTION_TYPE && param == 3)
|
||||
{
|
||||
if (me->IsSummon())
|
||||
{
|
||||
|
||||
@@ -622,7 +622,7 @@ public:
|
||||
if (type != WAYPOINT_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
if (point == 8) // max-1
|
||||
if (point == 9)
|
||||
{
|
||||
Talk(0);
|
||||
me->RemoveAllAuras();
|
||||
|
||||
Reference in New Issue
Block a user