mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
Missing code related to Warden added
Missing code related to Warden added
This commit is contained in:
parent
9a9f90b394
commit
f0d405bad1
2 changed files with 81 additions and 1 deletions
|
|
@ -842,6 +842,18 @@ void World::LoadConfigSettings(bool reload)
|
||||||
|
|
||||||
setConfig(CONFIG_BOOL_PET_UNSUMMON_AT_MOUNT, "PetUnsummonAtMount", true);
|
setConfig(CONFIG_BOOL_PET_UNSUMMON_AT_MOUNT, "PetUnsummonAtMount", true);
|
||||||
|
|
||||||
|
// Warden
|
||||||
|
|
||||||
|
setConfig(CONFIG_BOOL_WARDEN_WIN_ENABLED, "Warden.WinEnabled", true);
|
||||||
|
setConfig(CONFIG_BOOL_WARDEN_OSX_ENABLED, "Warden.OSXEnabled", false);
|
||||||
|
setConfig(CONFIG_UINT32_WARDEN_NUM_MEM_CHECKS, "Warden.NumMemChecks", 3);
|
||||||
|
setConfig(CONFIG_UINT32_WARDEN_NUM_OTHER_CHECKS, "Warden.NumOtherChecks", 7);
|
||||||
|
setConfig(CONFIG_UINT32_WARDEN_CLIENT_BAN_DURATION, "Warden.BanDuration", 86400);
|
||||||
|
setConfig(CONFIG_UINT32_WARDEN_CLIENT_CHECK_HOLDOFF, "Warden.ClientCheckHoldOff", 30);
|
||||||
|
setConfig(CONFIG_UINT32_WARDEN_CLIENT_FAIL_ACTION, "Warden.ClientCheckFailAction", 0);
|
||||||
|
setConfig(CONFIG_UINT32_WARDEN_CLIENT_RESPONSE_DELAY, "Warden.ClientResponseDelay", 600);
|
||||||
|
setConfig(CONFIG_UINT32_WARDEN_DB_LOGLEVEL, "Warden.DBLogLevel", 0);
|
||||||
|
|
||||||
m_relocation_ai_notify_delay = sConfig.GetIntDefault("Visibility.AIRelocationNotifyDelay", 1000u);
|
m_relocation_ai_notify_delay = sConfig.GetIntDefault("Visibility.AIRelocationNotifyDelay", 1000u);
|
||||||
m_relocation_lower_limit_sq = pow(sConfig.GetFloatDefault("Visibility.RelocationLowerLimit", 10), 2);
|
m_relocation_lower_limit_sq = pow(sConfig.GetFloatDefault("Visibility.RelocationLowerLimit", 10), 2);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1748,6 +1748,74 @@ Currency.ResetHour = 6
|
||||||
Currency.ConquestPointsDefaultWeekCap = 135000
|
Currency.ConquestPointsDefaultWeekCap = 135000
|
||||||
Currency.ConquestPointsArenaReward = 12000
|
Currency.ConquestPointsArenaReward = 12000
|
||||||
|
|
||||||
|
###################################################################################################
|
||||||
|
# WARDEN SETTINGS
|
||||||
|
#
|
||||||
|
# Warden.WinEnabled
|
||||||
|
# Description: Enables Warden checks for Windows clients.
|
||||||
|
# Default: 1 - (Enabled)
|
||||||
|
# 0 - (Disabled)
|
||||||
|
#
|
||||||
|
# Warden.OSXEnabled
|
||||||
|
# Description: Enables Warden checks for OSX clients.
|
||||||
|
# Default: 0 - (Disabled)
|
||||||
|
# 1 - (Enabled)
|
||||||
|
#
|
||||||
|
# Warden.NumMemChecks
|
||||||
|
# Description: Number of Warden memory checks that are sent to the client each cycle.
|
||||||
|
# Default: 3 - (Enabled)
|
||||||
|
# 0 - (Disabled)
|
||||||
|
#
|
||||||
|
# Warden.NumOtherChecks
|
||||||
|
# Description: Number of Warden checks other than memory checks that are added to request
|
||||||
|
# each checking cycle.
|
||||||
|
# Default: 7 - (Enabled)
|
||||||
|
# 0 - (Disabled)
|
||||||
|
#
|
||||||
|
# Warden.ClientResponseDelay
|
||||||
|
# Description: Time (in seconds) before client is getting disconnecting for not responding.
|
||||||
|
# Default: 600 - (10 Minutes)
|
||||||
|
# 0 - (Disabled, client won't be kicked)
|
||||||
|
#
|
||||||
|
# Warden.ClientCheckHoldOff
|
||||||
|
# Description: Time (in seconds) to wait before sending the next check request to the client.
|
||||||
|
# A low number increases traffic and load on client and server side.
|
||||||
|
# Default: 30 - (30 Seconds)
|
||||||
|
# 0 - (Send check as soon as possible)
|
||||||
|
#
|
||||||
|
# Warden.ClientCheckFailAction
|
||||||
|
# Description: Default action being taken if a client check failed. Actions can be
|
||||||
|
# overwritten for each single check via warden_action table in characters
|
||||||
|
# database.
|
||||||
|
# Default: 1 - (Kick)
|
||||||
|
# 0 - (Disabled, Logging only)
|
||||||
|
# 2 - (Ban)
|
||||||
|
#
|
||||||
|
# Warden.BanDuration
|
||||||
|
# Description: Time (in seconds) an account will be banned if ClientCheckFailAction is set
|
||||||
|
# to ban.
|
||||||
|
# Default: 86400 - (24 hours)
|
||||||
|
# 0 - (Permanent ban)
|
||||||
|
#
|
||||||
|
# Warden.DBLogLevel
|
||||||
|
# Description: The minimal WardenActions value of Warden check to be logged into realmd.warden_log table.
|
||||||
|
# WardenActions: 0 - log, 1 - kick, 2 - ban
|
||||||
|
#
|
||||||
|
# Deafult: 0 - (Logging any failed check)
|
||||||
|
# 3 - (Disable DB logging)
|
||||||
|
#
|
||||||
|
###################################################################################################
|
||||||
|
|
||||||
|
Warden.WinEnabled = 1
|
||||||
|
Warden.OSXEnabled = 0
|
||||||
|
Warden.NumMemChecks = 3
|
||||||
|
Warden.NumOtherChecks = 7
|
||||||
|
Warden.ClientResponseDelay = 600
|
||||||
|
Warden.ClientCheckHoldOff = 30
|
||||||
|
Warden.ClientCheckFailAction = 1
|
||||||
|
Warden.BanDuration = 86400
|
||||||
|
Warden.DBLogLevel = 0
|
||||||
|
|
||||||
###################################################################################################################
|
###################################################################################################################
|
||||||
# ELUNA SETTINGS
|
# ELUNA SETTINGS
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue