Scripts/Commands: update .wp commands to use orientation field from DB

Port From (https://github.com/TrinityCore/TrinityCore/commit/61cc88731c8941289352a1aaa6410bc3dce83faa)
This commit is contained in:
hondacrx
2021-12-27 16:41:32 -05:00
parent 8e06e237e0
commit 30d198cfbd
3 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -1114,7 +1114,7 @@ namespace Game.Chat
{
Player player = handler.GetSession().GetPlayer();
Log.outInfo(LogFilter.SqlDev, "(@PATH, XX, {0}, {1}, {2}, 0, 0, 0, 100, 0),", player.GetPositionX(), player.GetPositionY(), player.GetPositionZ());
Log.outInfo(LogFilter.SqlDev, $"(@PATH, XX, {player.GetPositionX():3F}, {player.GetPositionY():3F}, {player.GetPositionZ():5F}, {player.GetOrientation():5F}, 0, 0, 0, 100, 0)");
handler.SendSysMessage("Waypoint SQL written to SQL Developer log");
return true;