From c21a506c35297353e58ca21d2942a9956c7ce0ab Mon Sep 17 00:00:00 2001 From: Grimfeather <88028633+Grimfeather@users.noreply.github.com> Date: Wed, 6 Aug 2025 14:35:20 +0200 Subject: [PATCH] Update cs_individualProgression.cpp --- src/cs_individualProgression.cpp | 38 ++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/src/cs_individualProgression.cpp b/src/cs_individualProgression.cpp index 8625429..3b85aa7 100644 --- a/src/cs_individualProgression.cpp +++ b/src/cs_individualProgression.cpp @@ -15,12 +15,14 @@ public: { static ChatCommandTable individualProgressionTable = { - { "set", HandleSetIndividualProgressionCommand, SEC_GAMEMASTER, Console::Yes }, + { "set", HandleSetIndividualProgressionCommand, SEC_GAMEMASTER, Console::Yes }, + { "tele", HandleTeleIndividualProgressionCommand, SEC_GAMEMASTER, Console::Yes }, }; static ChatCommandTable commandTable = { - { "individualProgression", individualProgressionTable }, + { "individualprogression", individualProgressionTable }, + { "ip", individualProgressionTable }, }; return commandTable; @@ -43,6 +45,38 @@ public: } + static bool HandleTeleIndividualProgressionCommand(ChatHandler* handler, Optional player, string location) + { + player = PlayerIdentifier::FromTargetOrSelf(handler); + + if (location != 'naxx40' && location != 'onyxia40') + { + handler->SendSysMessage("Invalid teleport location."); + return false; + } + + if (player && player->GetConnectedPlayer()) + { + if ((location == 'naxx40') && (player->GetLevel() <= IP_LEVEL_TBC) && (player->getClass() != CLASS_DEATH_KNIGHT)) + { + player->SetRaidDifficulty(RAID_DIFFICULTY_10MAN_HEROIC); + player->TeleportTo(533, 3005.51f, -3434.64f, 304.195f, 6.2831f); + return true; + } + else if (location == 'onyxia40' && player->GetLevel() < IP_LEVEL_WOTLK) + { + player->SetRaidDifficulty(RAID_DIFFICULTY_10MAN_HEROIC); + player->TeleportTo(249, 29.1607f, -71.3372f, -8.18032f, 4.58f); + return true; + } + else + { + handler->SendSysMessage("You are not allowed to teleport to this location."); + return false; + } + } + } + }; void AddSC_individualProgression_commandscript()