Initial upload of AnticheatModule

This commit is contained in:
3ndos
2016-12-05 11:39:52 -05:00
commit 05231e0c2c
15 changed files with 1181 additions and 0 deletions

40
conf/Anticheat.conf.dist Normal file
View File

@@ -0,0 +1,40 @@
[worldserver]
#
###################################################################################################
###################################################################################################
# Anticheat.Enable
# Description: Enables or disables the Anticheat System functionality
# Default: 1 - (Enabled)
# 0 - (Disabled)
Anticheat.Enabled = 1
# Anticheat.ReportsForIngameWarnings
# Description: How many reports the player must have to notify to GameMasters ingame when he generates a new report.
# Default: 70
Anticheat.ReportsForIngameWarnings = 70
# Anticheat.LoginMessage
# Description: Enable login message "This server is running an Anticheat module."
# Default: 1
Anticheat.LoginMessage = 1
# Anticheat.Detect
# Description: It represents which detections are enabled.
# Default 1 (climbhack = 0 by default)
Anticheat.DetectFlyHack = 1
Anticheat.DetectWaterWalk = 1
Anticheat.DetectJumpHack = 1
Anticheat.DetectTelePlaneHack = 1
Anticheat.DetectSpeedHack = 1
Anticheat.DetectClimbHack = 0
# Anticheat.MaxReportsForDailyReport
# Description: How many reports must the player have to make a report that it is in DB for a day (not only during the player's session).
# Default: 70
Anticheat.MaxReportsForDailyReport = 70

View File

@@ -0,0 +1,30 @@
DROP TABLE IF EXISTS `players_reports_status`;
CREATE TABLE `players_reports_status` (
`guid` int(10) unsigned NOT NULL DEFAULT '0',
`creation_time` int(10) unsigned NOT NULL DEFAULT '0',
`average` float NOT NULL DEFAULT '0',
`total_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`speed_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`fly_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`jump_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`waterwalk_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`teleportplane_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`climb_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='';
DROP TABLE IF EXISTS `daily_players_reports`;
CREATE TABLE `daily_players_reports` (
`guid` int(10) unsigned NOT NULL DEFAULT '0',
`creation_time` int(10) unsigned NOT NULL DEFAULT '0',
`average` float NOT NULL DEFAULT '0',
`total_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`speed_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`fly_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`jump_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`waterwalk_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`teleportplane_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
`climb_reports` bigint(20) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='';