Fixed ToS access req strings

Closes: #23
This commit is contained in:
Kulyadev
2022-01-30 12:43:59 +03:00
parent aebb1e6dc2
commit 57b4750b59
2 changed files with 37 additions and 22 deletions

View File

@@ -0,0 +1,9 @@
UPDATE `access_requirement` SET `completed_achievement` = 6689 WHERE `mapId` = 996 AND (`difficulty` = "RAID_10MAN_HEROIC" OR `difficulty` = "RAID_25MAN_HEROIC");
DELETE FROM `trinity_string` WHERE `entry` IN (15000, 15001, 15002, 15003, 15004, 15005);
INSERT INTO `trinity_string` (`entry`, `content_default`, `content_loc8`) VALUES
(15000, "You must clear Terrace of Endless Spring on normal before progressing to Heroic difficulty.", "Вы должны пройти «Терасса Вечной Весны» в обычном режиме, прежде чем переходить на героический уровень сложности."),
(15001, "You must complete Heart of Fear in normal difficulty.", "Вы должны пройти «Сердце Страха» в обычном режиме."),
(15002, "You must complete Heart of Fear on heroic difficulty.", "Вы должны пройти «Сердце Страха» в героическом режиме."),
(15003, "You must complete Mogu'shan Vaults in normal difficulty.", "Вы должны пройти «Подземелья Могу'шан» в обычном режиме."),
(15004, "You must complete Mogu'shan Vaults on heroic difficulty.", "Вы должны пройти «Подземелья Могу'шан» в героическом режиме.");

View File

@@ -160,28 +160,34 @@ enum ToES_achi_check
{
// Heart of Fear (6 bosses)
// For Normal
ACH_THE_DREAD_APPROACH = 6718,
ACH_NIGHTMARE_OF_SHEKZEER = 6845,
ACH_THE_DREAD_APPROACH = 6718,
ACH_NIGHTMARE_OF_SHEKZEER = 6845,
// For Heroic
ACH_ZORLOK_H = 6725,
ACH_TAYAK_H = 6726,
ACH_GARALON_H = 6727,
ACH_MELJARAK_H = 6728,
ACH_UNSOK_H = 6729,
ACH_SHEKZEER_H = 6730,
ACH_ZORLOK_H = 6725,
ACH_TAYAK_H = 6726,
ACH_GARALON_H = 6727,
ACH_MELJARAK_H = 6728,
ACH_UNSOK_H = 6729,
ACH_SHEKZEER_H = 6730,
// Mogushan Vaults
// For Normal
ACH_GUARDIANS_OF_MOGUSHAN = 6458,
ACH_THE_VAULT_OF_MYSTERIES = 6844,
ACH_GUARDIANS_OF_MOGUSHAN = 6458,
ACH_THE_VAULT_OF_MYSTERIES = 6844,
// For Heroic
ACH_STONE_GUARD_H = 6719,
ACH_FENG_H = 6720,
ACH_GARAJAL_H = 6721,
ACH_FOUR_KINGS_H = 6722,
ACH_ELEGON_H = 6723,
ACH_WILL_OF_THE_EMPEROR_H = 6724,
ACH_STONE_GUARD_H = 6719,
ACH_FENG_H = 6720,
ACH_GARAJAL_H = 6721,
ACH_FOUR_KINGS_H = 6722,
ACH_ELEGON_H = 6723,
ACH_WILL_OF_THE_EMPEROR_H = 6724,
// Terrace of Endless Spring
ACH_TOES_NORMAL = 6689,
ACH_TOES_NORMAL = 6689,
/// Strings
STRING_ID_00 = 15000,
STRING_ID_01 = 15001,
STRING_ID_02 = 15002,
STRING_ID_03 = 15003,
STRING_ID_04 = 15004
};
bool HasCompletedMogushan(Player* p, Difficulty mapDiff)
@@ -193,7 +199,7 @@ bool HasCompletedMogushan(Player* p, Difficulty mapDiff)
else
{
if (p->GetSession())
p->GetSession()->SendNotification(15004);
p->GetSession()->SendNotification(STRING_ID_04);
return false;
}
}
@@ -204,7 +210,7 @@ bool HasCompletedMogushan(Player* p, Difficulty mapDiff)
else
{
if (p->GetSession())
p->GetSession()->SendNotification(15003);
p->GetSession()->SendNotification(STRING_ID_03);
return false;
}
}
@@ -219,7 +225,7 @@ bool HasCompletedHoF(Player* p, Difficulty mapDiff)
else
{
if (p->GetSession())
p->GetSession()->SendNotification(15002);
p->GetSession()->SendNotification(STRING_ID_02);
return false;
}
@@ -231,7 +237,7 @@ bool HasCompletedHoF(Player* p, Difficulty mapDiff)
else
{
if (p->GetSession())
p->GetSession()->SendNotification(15001);
p->GetSession()->SendNotification(STRING_ID_01);
return false;
}
}
@@ -355,7 +361,7 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player, bool loginCheck)
if (!player->HasAchieved(ACH_TOES_NORMAL))
{
if (player->GetSession())
player->GetSession()->SendNotification(15000);
player->GetSession()->SendNotification(STRING_ID_00);
return false;
}
}