Code:
Index: src/ascent-world/Chat.cpp
===================================================================
--- src/ascent-world/Chat.cpp (revision 3842)
+++ src/ascent-world/Chat.cpp (working copy)
@@ -369,6 +369,7 @@
{ "flyspeed", 'm', &ChatHandler::HandleFlySpeedCheatCommand, "Modifies fly speed.", NULL, 0, 0, 0 },
{ "stack", 'm', &ChatHandler::HandleStackCheatCommand, "Enables aura stacking cheat.", NULL, 0, 0, 0 },
{ "triggerpass", 'm', &ChatHandler::HandleTriggerpassCheatCommand, "Ignores area trigger prerequisites.", NULL, 0, 0, 0 },
+ { "flyingmount", 'm', &ChatHandler::HandleFlyingMountCommand, "Allows you to mount any DisplayID and fly around!", NULL, 0, 0, 0 },
{ NULL, 0, NULL, "", NULL, 0, 0, 0 },
};
dupe_command_table(CheatCommandTable, _CheatCommandTable);
Index: src/ascent-world/Chat.h
===================================================================
--- src/ascent-world/Chat.h (revision 3842)
+++ src/ascent-world/Chat.h (working copy)
@@ -438,6 +438,7 @@
bool HandleLandCommand(const char* args, WorldSession* m_session);
bool HandleRemoveRessurectionSickessAuraCommand(const char *args, WorldSession *m_session);
bool HandleDBReloadCommand(const char* args, WorldSession* m_session);
+ bool HandleFlyingMountCommand(const char* args, WorldSession* m_session);
// honor
bool HandleAddHonorCommand(const char* args, WorldSession* m_session);
Index: src/ascent-world/Level2.cpp
===================================================================
--- src/ascent-world/Level2.cpp (revision 3842)
+++ src/ascent-world/Level2.cpp (working copy)
@@ -1127,3 +1127,36 @@
crt->GetAIInterface()->MoveTo(plr->GetPositionX(), plr->GetPositionY(), plr->GetPositionZ(), plr->GetOrientation());
return true;
}
+
+bool ChatHandler::HandleFlyingMountCommand(const char* args, WorldSession* m_session)
+{
+
+ Player * plr = m_session->GetPlayer();
+
+ uint32 MountID = atoi(args);
+ if (!MountID)
+ {
+ RedSystemMessage(m_session, "You don't have a DisplayID chosen the syntax for this command is; .flyingmount DisplayID");
+ return false;
+ }
+
+
+ plr->SetUInt32Value(147, MountID);
+
+ WorldPacket data;
+
+ data.Initialize(SMSG_MOVE_SET_FLY);
+ data << uint8(0xFF) << plr->GetGUID();
+ data << uint32(2);
+ m_session->SendPacket(&data);
+
+ data.Initialize(CMSG_MOVE_SET_FLY_ACK);
+ data << uint8(0xFF) << plr->GetGUID();
+ data << uint32(0);
+ data << float(40);
+ m_session->SendPacket(&data);
+ return true;
+
+}
+
+