From cfb21bca0175c6199d349700a4ea043da314afc1 Mon Sep 17 00:00:00 2001 From: M'Dic Date: Thu, 19 Jan 2023 09:51:57 -0500 Subject: [PATCH] add (jail loc): add alternative jail locations so we added two additional jailing spots since i am getting dms about people wanting to use gm island as their teletubbie club hangout or whatever. So i added two other isolated locations, Stormwind Stockcades and The Pit of Criminals. They are at seperate locations. Besure to make the changes to both the auto jail and the gm jail command. all you need to do is commit the exsisting worldlocation loc and uncommit the one you want to have. --- src/AnticheatMgr.cpp | 7 ++++++- src/cs_anticheat.cpp | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 1cd20b3..a867570 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -1412,7 +1412,12 @@ void AnticheatMgr::BuildReport(Player* player, uint16 reportType) data << str; sWorld->SendGlobalGMMessage(&data); - WorldLocation loc = WorldLocation(1, 16226.5f, 16403.6f, -64.5f, 3.2f); // GM Jail Location + // GM Jail Location is uncommit and used as default for the jailing. Feel free to commit it out with double forward slashes (//) and uncommit, + // removing the double forward slashes (//) if you wish to use the other locations. + WorldLocation loc = WorldLocation(1, 16226.5f, 16403.6f, -64.5f, 3.2f);// GM Jail Location + //WorldLocation loc = WorldLocation(35, -98.0155, 149.8360,-40.3827, 3.2f);// Alliance Jail Stormwind Stockade Location + //WorldLocation loc = WorldLocation(0, -11139.1845, -1742.4421, -29.7365, 3.2f);// Horde Jail The Pit of Criminals Location + player->TeleportTo(loc); player->SetHomebind(loc, 876); // GM Jail Homebind location player->CastSpell(player, SHACKLES); // Shackle him in place to ensure no exploit happens for jail break attempt diff --git a/src/cs_anticheat.cpp b/src/cs_anticheat.cpp index 73ce4ca..5c2306b 100644 --- a/src/cs_anticheat.cpp +++ b/src/cs_anticheat.cpp @@ -111,7 +111,12 @@ public: handler->GetSession()->GetPlayer()->TeleportTo(1, 16226.5f, 16403.6f, -64.5f, 3.2f); } + // GM Jail Location is uncommit and used as default for the jailing. Feel free to commit it out with double forward slashes (//) and uncommit, + // removing the double forward slashes (//) if you wish to use the other locations. WorldLocation loc = WorldLocation(1, 16226.5f, 16403.6f, -64.5f, 3.2f);// GM Jail Location + //WorldLocation loc = WorldLocation(35, -98.0155, 149.8360,-40.3827, 3.2f);// Alliance Jail Stormwind Stockade Location + //WorldLocation loc = WorldLocation(0, -11139.1845, -1742.4421, -29.7365, 3.2f);// Horde Jail The Pit of Criminals Location + pTarget->TeleportTo(loc); pTarget->SetHomebind(loc, 876);// GM Jail Homebind location pTarget->CastSpell(pTarget, SHACKLES);// shackle him in place to ensure no exploit happens for jail break attempt