Core/Movement: waypoint movement

Port From (https://github.com/TrinityCore/TrinityCore/commit/97585597f0b1aff93873fe4d757556731bc0c1b2)
This commit is contained in:
hondacrx
2020-08-24 17:02:02 -04:00
parent c9e535bb3a
commit 3d3fd0f55f
31 changed files with 960 additions and 950 deletions
@@ -1379,7 +1379,7 @@ namespace Scripts.EasternKingdoms.Karazhan.OperaEvent
{
public npc_barnes() : base("npc_barnes") { }
class npc_barnesAI : NpcEscortAI
class npc_barnesAI : EscortAI
{
public npc_barnesAI(Creature creature) : base(creature)
{
@@ -1418,7 +1418,7 @@ namespace Scripts.EasternKingdoms.Karazhan.OperaEvent
public override void EnterCombat(Unit who) { }
public override void WaypointReached(uint waypointId)
public override void WaypointReached(uint waypointId, uint pathId)
{
switch (waypointId)
{
@@ -947,7 +947,7 @@ namespace Scripts.EasternKingdoms
}
[Script]
class npc_scarlet_miner : NpcEscortAI
class npc_scarlet_miner : EscortAI
{
public npc_scarlet_miner(Creature creature) : base(creature)
{
@@ -1012,7 +1012,7 @@ namespace Scripts.EasternKingdoms
SetDespawnAtFar(false);
}
public override void WaypointReached(uint waypointId)
public override void WaypointReached(uint waypointId, uint pathId)
{
switch (waypointId)
{