Skip to content

Commit 2466834

Browse files
ThelsenShauren
authored andcommitted
Scripts: Adjust previous commit to include scripts found only in 3.3.5 branch and exclude master branch data
1 parent f3b691d commit 2466834

File tree

6 files changed

+33
-18
lines changed

6 files changed

+33
-18
lines changed

sql/updates/world/3.3.5/2025_12_23_00_world_2023_04_10_00_world_script_waypoints.sql

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,6 @@ SET @PATHID := 138498;
9494
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_WALK WHERE `id`=@PATHID;
9595
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=@PATHID AND `point` >= 28;
9696

97-
-- Wizzlecrank Shredder, zone_the_barrens.cpp
98-
SET @PATHID := 27514;
99-
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=@PATHID;
100-
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_WALK WHERE `id`=@PATHID AND `point` BETWEEN 9 AND 17;
101-
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=@PATHID AND `point` >= 18;
102-
10397
-- Brann Bronzebeard, halls_of_stone.cpp
10498
SET @PATHID := 224562;
10599
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=@PATHID AND `point` >= 1;
@@ -108,6 +102,10 @@ UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=@PATHID AND `po
108102
SET @PATHID := 145682;
109103
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=@PATHID AND `point` >= 16;
110104

105+
-- Rin'ji, zone_hinterlands.cpp
106+
SET @PATHID := 62242;
107+
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=@PATHID AND `point` >= 17;
108+
111109
-- ------------------------------------------------------------------------------------------------
112110

113111
-- Mograine, chapter5.cpp
@@ -143,8 +141,5 @@ UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=266962;
143141
-- Icefang, zone_storm_peaks.cpp
144142
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=236818;
145143

146-
-- Garments of quests, npcs_special.cpp
147-
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id` IN(99386,99418,99426,99434,99442);
148-
149144
-- Taretha, old_hillsbrad.cpp
150145
UPDATE `waypoint_data` SET `move_type`=@MOVE_TYPE_RUN WHERE `id`=151098;

src/server/scripts/EasternKingdoms/zone_hinterlands.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Position const AmbushMoveTo[] =
6262
{ 70.886589f, -2874.335449f, 116.675f, 0.0f }
6363
};
6464

65+
static constexpr uint32 PATH_ESCORT_RINJI = 62242;
66+
6567
class npc_rinji : public CreatureScript
6668
{
6769
public:
@@ -140,7 +142,8 @@ class npc_rinji : public CreatureScript
140142
if (GameObject* go = me->FindNearestGameObject(GO_RINJI_CAGE, INTERACTION_DISTANCE))
141143
go->UseDoorOrButton();
142144

143-
EscortAI::Start(false, false, player->GetGUID(), quest);
145+
LoadPath(PATH_ESCORT_RINJI);
146+
Start(false, player->GetGUID(), quest);
144147
}
145148
}
146149

@@ -164,7 +167,6 @@ class npc_rinji : public CreatureScript
164167
case 17:
165168
Talk(SAY_RIN_COMPLETE, player);
166169
player->GroupEventHappens(QUEST_RINJI_TRAPPED, me);
167-
SetRun();
168170
postEventCount = 1;
169171
break;
170172
}

src/server/scripts/EasternKingdoms/zone_stormwind_city.cpp

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ enum TyrionSpybot
319319
NPC_LORD_GREGOR_LESCOVAR = 1754,
320320
};
321321

322+
static constexpr uint32 PATH_ESCORT_LESCOVAR = 70850;
323+
322324
class npc_tyrion_spybot : public CreatureScript
323325
{
324326
public:
@@ -438,8 +440,12 @@ class npc_tyrion_spybot : public CreatureScript
438440
{
439441
if (Player* player = GetPlayerForEscort())
440442
{
441-
ENSURE_AI(npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI, pLescovar->AI())->Start(false, false, player->GetGUID());
442-
ENSURE_AI(npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI, pLescovar->AI())->SetMaxPlayerDistance(200.0f);
443+
if (EscortAI* ai = CAST_AI(EscortAI, pLescovar->AI()))
444+
{
445+
ai->LoadPath(PATH_ESCORT_LESCOVAR);
446+
ai->Start(false, player->GetGUID());
447+
ai->SetMaxPlayerDistance(200.0f);
448+
}
443449
}
444450
}
445451
me->DisappearAndDie();
@@ -468,6 +474,8 @@ enum Tyrion
468474
NPC_TYRION_SPYBOT = 8856
469475
};
470476

477+
static constexpr uint32 PATH_ESCORT_TYRION_SPYBOT = 14034;
478+
471479
class npc_tyrion : public CreatureScript
472480
{
473481
public:
@@ -483,8 +491,12 @@ class npc_tyrion : public CreatureScript
483491
{
484492
if (Creature* spybot = me->FindNearestCreature(NPC_TYRION_SPYBOT, 5.0f, true))
485493
{
486-
ENSURE_AI(npc_tyrion_spybot::npc_tyrion_spybotAI, spybot->AI())->Start(false, false, player->GetGUID());
487-
ENSURE_AI(npc_tyrion_spybot::npc_tyrion_spybotAI, spybot->AI())->SetMaxPlayerDistance(200.0f);
494+
if (EscortAI* ai = CAST_AI(EscortAI, spybot->AI()))
495+
{
496+
ai->LoadPath(PATH_ESCORT_TYRION_SPYBOT);
497+
ai->Start(false, player->GetGUID());
498+
ai->SetMaxPlayerDistance(200.0f);
499+
}
488500
}
489501
}
490502
}

src/server/scripts/Kalimdor/zone_darkshore.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ enum Remtravel
196196
NPC_GRAVEL_GEO = 2160
197197
};
198198

199+
static constexpr uint32 PATH_ESCORT_PROSPECTOR_REMTRAVEL = 23338;
200+
199201
class npc_prospector_remtravel : public CreatureScript
200202
{
201203
public:
@@ -284,7 +286,8 @@ class npc_prospector_remtravel : public CreatureScript
284286
{
285287
if (quest->GetQuestId() == QUEST_ABSENT_MINDED_PT2)
286288
{
287-
Start(false, false, player->GetGUID());
289+
LoadPath(PATH_ESCORT_PROSPECTOR_REMTRAVEL);
290+
Start(false, player->GetGUID());
288291
me->SetFaction(FACTION_ESCORTEE_A_NEUTRAL_PASSIVE);
289292
}
290293
}

src/server/scripts/Kalimdor/zone_moonglade.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class npc_clintar_spirit : public CreatureScript
196196
AddWaypoint(i, Clintar_spirit_WP[i].X, Clintar_spirit_WP[i].Y, Clintar_spirit_WP[i].Z, Clintar_spirit_WP[i].O, Clintar_spirit_WP[i].waitTime);
197197
}
198198
PlayerGUID = player->GetGUID();
199-
Start(true, false, PlayerGUID);
199+
Start(true, player->GetGUID());
200200
me->SetDisplayId(me->GetCreatureTemplate()->Modelid1);
201201
me->RemoveUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
202202
}

src/server/scripts/Kalimdor/zone_the_barrens.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ enum Gilthares
5959
AREA_MERCHANT_COAST = 391
6060
};
6161

62+
static constexpr uint32 PATH_ESCORT_GILTHARES = 27722;
63+
6264
class npc_gilthares : public CreatureScript
6365
{
6466
public:
@@ -122,7 +124,8 @@ class npc_gilthares : public CreatureScript
122124
me->SetStandState(UNIT_STAND_STATE_STAND);
123125

124126
Talk(SAY_GIL_START, player);
125-
Start(false, false, player->GetGUID(), quest);
127+
LoadPath(PATH_ESCORT_GILTHARES);
128+
Start(false, player->GetGUID(), quest);
126129
}
127130
}
128131
};

0 commit comments

Comments
 (0)