Core/Commands: Implemented command to teleport character to npc

Port From (https://github.com/TrinityCore/TrinityCore/commit/e93ef06b05c27c7c79b234e331a0d26aa956ba65)
This commit is contained in:
hondacrx
2022-06-09 21:15:23 -04:00
parent 452dd95e39
commit 34ace549e8
2 changed files with 146 additions and 47 deletions
+4
View File
@@ -428,6 +428,10 @@ namespace Game.Entities
return GetAreaId(phaseShift, loc.GetMapId(), loc);
}
public uint GetZoneId(PhaseShift phaseShift, uint mapid, Position pos) { return GetZoneId(phaseShift, mapid, pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ()); }
public uint GetZoneId(PhaseShift phaseShift, WorldLocation loc) { return GetZoneId(phaseShift, loc.GetMapId(), loc); }
public uint GetZoneId(PhaseShift phaseShift, uint mapid, float x, float y, float z)
{
Map m = CreateBaseMap(mapid);