Core/Commands: Added transport position for command .gps

(cherry picked from commit 9c99a1d0c7d802fdaf8f944f73aa7eb2a6560950)
This commit is contained in:
Vincent-Michael authored and Aokromes committed 2016-05-04 02:59:13 +02:00
1 parent 63b5366347
commit f42e6647e4
3 files changed
+11 -1

No files matched your search

+5
View File
@@ -36,6 +36,7 @@
#include "MMapFactory.h"
#include "DisableMgr.h"
#include "SpellHistory.h"
#include "Transport.h"
class misc_commandscript : public CommandScript
{
@@ -236,6 +237,10 @@ public:
areaId, (areaEntry ? areaEntry->area_name : unknown),
object->GetPhaseMask(),
object->GetPositionX(), object->GetPositionY(), object->GetPositionZ(), object->GetOrientation());
if (Transport* transport = object->GetTransport())
handler->PSendSysMessage(LANG_TRANSPORT_POSITION,
transport->GetGOInfo()->moTransport.mapID, object->GetTransOffsetX(), object->GetTransOffsetY(), object->GetTransOffsetZ(), object->GetTransOffsetO(),
transport->GetEntry(), transport->GetName().c_str());
handler->PSendSysMessage(LANG_GRID_POSITION,
cell.GridX(), cell.GridY(), cell.CellX(), cell.CellY(), object->GetInstanceId(),
zoneX, zoneY, groundZ, floorZ, haveMap, haveVMap, haveMMap);