mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
feat(Core): Hide Game Object Quest Markers Config Option (#13013)
This commit is contained in:
@@ -2164,6 +2164,14 @@ Visibility.Notify.Period.InBGArenas = 1000
|
||||
|
||||
Visibility.ObjectSparkles = 1
|
||||
|
||||
#
|
||||
# Visibility.ObjectQuestMarkers
|
||||
# Description: Show quest icons above game objects in the same way as creature quest givers.
|
||||
# Default: 1 - (Show quest markers, post patch 2.3 behavior)
|
||||
# 0 - (Hide quest markers, pre patch 2.3 behavior)
|
||||
|
||||
Visibility.ObjectQuestMarkers = 1
|
||||
|
||||
#
|
||||
###################################################################################################
|
||||
|
||||
|
||||
@@ -63,7 +63,10 @@ void WorldSession::HandleQuestgiverStatusQueryOpcode(WorldPacket& recvData)
|
||||
case TYPEID_GAMEOBJECT:
|
||||
{
|
||||
LOG_DEBUG("network", "WORLD: Received CMSG_QUESTGIVER_STATUS_QUERY for GameObject {}", guid.ToString());
|
||||
questStatus = _player->GetQuestDialogStatus(questGiver);
|
||||
if (sWorld->getBoolConfig(CONFIG_OBJECT_QUEST_MARKERS))
|
||||
{
|
||||
questStatus = _player->GetQuestDialogStatus(questGiver);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
@@ -177,6 +177,7 @@ enum WorldBoolConfigs
|
||||
CONFIG_LEAVE_GROUP_ON_LOGOUT,
|
||||
CONFIG_VMAP_BLIZZLIKE_PVP_LOS,
|
||||
CONFIG_OBJECT_SPARKLES,
|
||||
CONFIG_OBJECT_QUEST_MARKERS,
|
||||
BOOL_CONFIG_VALUE_COUNT
|
||||
};
|
||||
|
||||
|
||||
@@ -950,6 +950,8 @@ void World::LoadConfigSettings(bool reload)
|
||||
|
||||
m_bool_configs[CONFIG_OBJECT_SPARKLES] = sConfigMgr->GetOption<bool>("Visibility.ObjectSparkles", true);
|
||||
|
||||
m_bool_configs[CONFIG_OBJECT_QUEST_MARKERS] = sConfigMgr->GetOption<bool>("Visibility.ObjectQuestMarkers", true);
|
||||
|
||||
m_int_configs[CONFIG_MAIL_DELIVERY_DELAY] = sConfigMgr->GetOption<int32>("MailDeliveryDelay", HOUR);
|
||||
|
||||
m_int_configs[CONFIG_UPTIME_UPDATE] = sConfigMgr->GetOption<int32>("UpdateUptimeInterval", 10);
|
||||
|
||||
Reference in New Issue
Block a user