Core/Movement: waypoint movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/97585597f0b1aff93873fe4d757556731bc0c1b2)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace Scripts.Kalimdor.ZoneAshenvale
|
||||
|
||||
|
||||
[Script]
|
||||
class npc_ruul_snowhoof : NpcEscortAI
|
||||
class npc_ruul_snowhoof : EscortAI
|
||||
{
|
||||
public npc_ruul_snowhoof(Creature creature) : base(creature) { }
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace Scripts.Kalimdor.ZoneAshenvale
|
||||
}
|
||||
}
|
||||
|
||||
public override void WaypointReached(uint waypointId)
|
||||
public override void WaypointReached(uint waypointId, uint pathId)
|
||||
{
|
||||
Player player = GetPlayerForEscort();
|
||||
if (!player)
|
||||
@@ -170,7 +170,7 @@ namespace Scripts.Kalimdor.ZoneAshenvale
|
||||
}
|
||||
|
||||
[Script]
|
||||
public class npc_muglash : NpcEscortAI
|
||||
public class npc_muglash : EscortAI
|
||||
{
|
||||
public npc_muglash(Creature creature) : base(creature)
|
||||
{
|
||||
@@ -228,7 +228,7 @@ namespace Scripts.Kalimdor.ZoneAshenvale
|
||||
}
|
||||
}
|
||||
|
||||
public override void WaypointReached(uint waypointId)
|
||||
public override void WaypointReached(uint waypointId, uint pathId)
|
||||
{
|
||||
Player player = GetPlayerForEscort();
|
||||
if (player)
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace Scripts.Northrend.CrusadersColiseum.TrialOfTheChampion
|
||||
}
|
||||
|
||||
[Script]
|
||||
class generic_vehicleAI_toc5 : NpcEscortAI
|
||||
class generic_vehicleAI_toc5 : EscortAI
|
||||
{
|
||||
public generic_vehicleAI_toc5(Creature creature) : base(creature)
|
||||
{
|
||||
@@ -124,7 +124,7 @@ namespace Scripts.Northrend.CrusadersColiseum.TrialOfTheChampion
|
||||
Start(false, true);
|
||||
}
|
||||
|
||||
public override void WaypointReached(uint waypointId)
|
||||
public override void WaypointReached(uint waypointId, uint pathId)
|
||||
{
|
||||
switch (waypointId)
|
||||
{
|
||||
|
||||
@@ -666,7 +666,7 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
}
|
||||
|
||||
[Script]
|
||||
class npc_crok_scourgebane : NpcEscortAI
|
||||
class npc_crok_scourgebane : EscortAI
|
||||
{
|
||||
public npc_crok_scourgebane(Creature creature) : base(creature)
|
||||
{
|
||||
@@ -748,7 +748,7 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
}
|
||||
}
|
||||
|
||||
public override void WaypointReached(uint waypointId)
|
||||
public override void WaypointReached(uint waypointId, uint pathId)
|
||||
{
|
||||
switch (waypointId)
|
||||
{
|
||||
@@ -780,7 +780,7 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
}
|
||||
}
|
||||
|
||||
public override void WaypointStart(uint waypointId)
|
||||
public override void WaypointStarted(uint waypointId, uint pathId)
|
||||
{
|
||||
_currentWPid = waypointId;
|
||||
switch (waypointId)
|
||||
|
||||
@@ -867,7 +867,7 @@ namespace Scripts.Northrend.Ulduar.FlameLeviathan
|
||||
}
|
||||
|
||||
[Script]
|
||||
class npc_mimirons_inferno : NpcEscortAI
|
||||
class npc_mimirons_inferno : EscortAI
|
||||
{
|
||||
public npc_mimirons_inferno(Creature creature)
|
||||
: base(creature)
|
||||
@@ -877,10 +877,7 @@ namespace Scripts.Northrend.Ulduar.FlameLeviathan
|
||||
me.SetReactState(ReactStates.Passive);
|
||||
}
|
||||
|
||||
public override void WaypointReached(uint waypointId)
|
||||
{
|
||||
|
||||
}
|
||||
public override void WaypointReached(uint waypointId, uint pathId) { }
|
||||
|
||||
public override void Reset()
|
||||
{
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace Scripts.Outlands
|
||||
}
|
||||
|
||||
[Script]
|
||||
class npc_ancestral_wolf : NpcEscortAI
|
||||
class npc_ancestral_wolf : EscortAI
|
||||
{
|
||||
public npc_ancestral_wolf(Creature creature) : base(creature)
|
||||
{
|
||||
@@ -146,7 +146,7 @@ namespace Scripts.Outlands
|
||||
base.MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
public override void WaypointReached(uint waypointId)
|
||||
public override void WaypointReached(uint waypointId, uint pathId)
|
||||
{
|
||||
switch (waypointId)
|
||||
{
|
||||
@@ -167,7 +167,7 @@ namespace Scripts.Outlands
|
||||
}
|
||||
|
||||
[Script]
|
||||
class npc_wounded_blood_elf : NpcEscortAI
|
||||
class npc_wounded_blood_elf : EscortAI
|
||||
{
|
||||
public npc_wounded_blood_elf(Creature creature) : base(creature) { }
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace Scripts.Outlands
|
||||
}
|
||||
}
|
||||
|
||||
public override void WaypointReached(uint waypointId)
|
||||
public override void WaypointReached(uint waypointId, uint pathId)
|
||||
{
|
||||
Player player = GetPlayerForEscort();
|
||||
if (!player)
|
||||
|
||||
@@ -289,13 +289,13 @@ namespace Scripts.Outlands
|
||||
{
|
||||
public npc_kayra_longmane() : base("npc_kayra_longmane") { }
|
||||
|
||||
class npc_kayra_longmaneAI : NpcEscortAI
|
||||
class npc_kayra_longmaneAI : EscortAI
|
||||
{
|
||||
public npc_kayra_longmaneAI(Creature creature) : base(creature) { }
|
||||
|
||||
public override void Reset() { }
|
||||
|
||||
public override void WaypointReached(uint waypointId)
|
||||
public override void WaypointReached(uint waypointId, uint pathId)
|
||||
{
|
||||
Player player = GetPlayerForEscort();
|
||||
if (!player)
|
||||
|
||||
@@ -1163,7 +1163,7 @@ namespace Scripts.World.NpcSpecial
|
||||
}
|
||||
|
||||
[Script]
|
||||
class npc_garments_of_quests : NpcEscortAI
|
||||
class npc_garments_of_quests : EscortAI
|
||||
{
|
||||
public npc_garments_of_quests(Creature creature) : base(creature)
|
||||
{
|
||||
@@ -1254,7 +1254,7 @@ namespace Scripts.World.NpcSpecial
|
||||
}
|
||||
}
|
||||
|
||||
public override void WaypointReached(uint waypointId)
|
||||
public override void WaypointReached(uint waypointId, uint pathId)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user