mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Merge pull request #188 from Day36512/master
Added Config Options for LFG and RDF
This commit is contained in:
@@ -328,3 +328,11 @@ IndividualProgression.AllowEarlyDungeonSet2 = 1
|
|||||||
#
|
#
|
||||||
|
|
||||||
IndividualProgression.PvPGearRequirements = 1
|
IndividualProgression.PvPGearRequirements = 1
|
||||||
|
#
|
||||||
|
# IndividualProgression.DisableRDF
|
||||||
|
# Description: Enable or disable the Random Dungeon Finder feature within the context of Individual Progression.
|
||||||
|
# Queing for specific dungeons will still be possible. (See worldserver.conf for total LFG removal).
|
||||||
|
# Default: 0 - Enabled
|
||||||
|
# 1 - Disabled
|
||||||
|
#
|
||||||
|
IndividualProgression.DisableRDF = 0
|
||||||
|
|||||||
@@ -348,6 +348,15 @@ public:
|
|||||||
|
|
||||||
void OnQueueRandomDungeon(Player* player, uint32& rDungeonId) override
|
void OnQueueRandomDungeon(Player* player, uint32& rDungeonId) override
|
||||||
{
|
{
|
||||||
|
// Check if RDF is disabled in the context of Individual Progression
|
||||||
|
if (sConfigMgr->GetOption<bool>("IndividualProgression.DisableRDF", false))
|
||||||
|
{
|
||||||
|
// Notify the player
|
||||||
|
player->GetSession()->SendNotification("The Random Dungeon feature is currently disabled by the Individual Progression module.");
|
||||||
|
rDungeonId = 1000; // Set dungeon ID to an invalid value to cancel the queuing
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!sIndividualProgression->hasPassedProgression(player, PROGRESSION_NAXX40))
|
if (!sIndividualProgression->hasPassedProgression(player, PROGRESSION_NAXX40))
|
||||||
{
|
{
|
||||||
rDungeonId = RDF_CLASSIC;
|
rDungeonId = RDF_CLASSIC;
|
||||||
|
|||||||
Reference in New Issue
Block a user