mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Update cs_individualProgression.cpp
add a few more options for .ip tele
This commit is contained in:
@@ -77,7 +77,7 @@ public:
|
|||||||
|
|
||||||
static bool HandleTeleIndividualProgressionCommand(ChatHandler* handler, Optional<PlayerIdentifier> player, std::string location)
|
static bool HandleTeleIndividualProgressionCommand(ChatHandler* handler, Optional<PlayerIdentifier> player, std::string location)
|
||||||
{
|
{
|
||||||
if (location != "naxx40" && location != "onyxia40")
|
if (location != "naxx40" && location != "onyxia40" && location != "naxx" && location != "onyxia")
|
||||||
{
|
{
|
||||||
handler->PSendSysMessage("|cff00ffff{}|r is not a valid teleport location.", location);
|
handler->PSendSysMessage("|cff00ffff{}|r is not a valid teleport location.", location);
|
||||||
return false;
|
return false;
|
||||||
@@ -88,13 +88,13 @@ public:
|
|||||||
uint32 progressionLevel = target->GetPlayerSetting("mod-individual-progression", SETTING_PROGRESSION_STATE).value;
|
uint32 progressionLevel = target->GetPlayerSetting("mod-individual-progression", SETTING_PROGRESSION_STATE).value;
|
||||||
std::string playername = target->GetName();
|
std::string playername = target->GetName();
|
||||||
|
|
||||||
if (location == "naxx40" && ((progressionLevel < PROGRESSION_TBC_TIER_5 && isAttuned(target)) || target->IsGameMaster()))
|
if ((location == "naxx" || location == "naxx40" ) && ((progressionLevel < PROGRESSION_TBC_TIER_5 && isAttuned(target)) || target->IsGameMaster()))
|
||||||
{
|
{
|
||||||
target->SetRaidDifficulty(RAID_DIFFICULTY_10MAN_HEROIC);
|
target->SetRaidDifficulty(RAID_DIFFICULTY_10MAN_HEROIC);
|
||||||
target->TeleportTo(533, 3005.51f, -3434.64f, 304.195f, 6.2831f);
|
target->TeleportTo(533, 3005.51f, -3434.64f, 304.195f, 6.2831f);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (location == "onyxia40" && ((progressionLevel < PROGRESSION_TBC_TIER_5 && target->HasItemCount(ITEM_DRAKEFIRE_AMULET)) || target->IsGameMaster()))
|
else if ((location == "onyxia" || location == "onyxia40") && ((progressionLevel < PROGRESSION_TBC_TIER_5 && target->HasItemCount(ITEM_DRAKEFIRE_AMULET)) || target->IsGameMaster()))
|
||||||
{
|
{
|
||||||
target->SetRaidDifficulty(RAID_DIFFICULTY_10MAN_HEROIC);
|
target->SetRaidDifficulty(RAID_DIFFICULTY_10MAN_HEROIC);
|
||||||
target->TeleportTo(249, 29.1607f, -71.3372f, -8.18032f, 4.58f);
|
target->TeleportTo(249, 29.1607f, -71.3372f, -8.18032f, 4.58f);
|
||||||
|
|||||||
Reference in New Issue
Block a user