From 33e58aaf55e7cd682b2d8126d57a64d49ffa4356 Mon Sep 17 00:00:00 2001 From: MDIC Date: Thu, 24 Mar 2022 11:38:23 -0400 Subject: [PATCH] fix (cmd) .anticheat jail gm cmd this cleans up and ensures .anticheat jail cmd is consistent with the auto jail option. --- src/cs_anticheat.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/cs_anticheat.cpp b/src/cs_anticheat.cpp index dc594fc..e7a8715 100644 --- a/src/cs_anticheat.cpp +++ b/src/cs_anticheat.cpp @@ -123,12 +123,11 @@ public: pTarget->TeleportTo(1,16226.5f,16403.6f,-64.5f,3.2f); handler->GetSession()->GetPlayer()->TeleportTo(1,16226.5f,16403.6f,-64.5f,3.2f); - // the player should be already there, but no :( - // pTarget->GetPosition(&loc); - WorldLocation loc; - loc = WorldLocation(1, 16226.5f, 16403.6f, -64.5f, 3.2f); - pTarget->SetHomebind(loc, 876); + loc = WorldLocation(1, 16226.5f, 16403.6f, -64.5f, 3.2f);// GM Jail Location + pTarget->TeleportTo(loc); + pTarget->SetHomebind(loc, 876);// GM Jail Homebind location + pTarget->CastSpell(pTarget, 9454);// freeze him in place to ensure no exploit happens for jail break attempt return true; }