Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
feat (anticheat): Anticheat Port
Browse files Browse the repository at this point in the history
  • Loading branch information
acidmanifesto committed Nov 24, 2023
1 parent ce6c690 commit ebced70
Show file tree
Hide file tree
Showing 28 changed files with 2,090 additions and 5 deletions.
45 changes: 45 additions & 0 deletions sql/updates/characters/2023_11_12_00_characters.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
CREATE TABLE IF NOT EXISTS `lua_cheaters` (
`guid` int unsigned NOT NULL DEFAULT 0,
`account` int unsigned NOT NULL DEFAULT 0,
`macro` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`guid`,`account`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

DROP TABLE `daily_players_reports`;
CREATE TABLE IF NOT EXISTS `daily_players_reports` (
`guid` int unsigned NOT NULL DEFAULT 0,
`creation_time` int unsigned NOT NULL DEFAULT 0,
`average` float NOT NULL DEFAULT 0,
`total_reports` bigint unsigned NOT NULL DEFAULT 0,
`speed_reports` bigint unsigned NOT NULL DEFAULT 0,
`fly_reports` bigint unsigned NOT NULL DEFAULT 0,
`jump_reports` bigint unsigned NOT NULL DEFAULT 0,
`waterwalk_reports` bigint unsigned NOT NULL DEFAULT 0,
`teleportplane_reports` bigint unsigned NOT NULL DEFAULT 0,
`climb_reports` bigint unsigned NOT NULL DEFAULT 0,
`time_maniputation_reports` bigint unsigned NOT NULL DEFAULT 0,
`gravity_reports` bigint unsigned NOT NULL DEFAULT 0,
`teleport_reports` bigint unsigned NOT NULL DEFAULT 0,
`bg_start_reports` bigint unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

DROP TABLE `players_reports_status`;
CREATE TABLE IF NOT EXISTS `players_reports_status` (
`guid` int unsigned NOT NULL DEFAULT 0,
`creation_time` int unsigned NOT NULL DEFAULT 0,
`average` float NOT NULL DEFAULT 0,
`total_reports` bigint unsigned NOT NULL DEFAULT 0,
`speed_reports` bigint unsigned NOT NULL DEFAULT 0,
`fly_reports` bigint unsigned NOT NULL DEFAULT 0,
`jump_reports` bigint unsigned NOT NULL DEFAULT 0,
`waterwalk_reports` bigint unsigned NOT NULL DEFAULT 0,
`teleportplane_reports` bigint unsigned NOT NULL DEFAULT 0,
`climb_reports` bigint unsigned NOT NULL DEFAULT 0,
`time_maniputation_reports` bigint unsigned NOT NULL DEFAULT 0,
`gravity_reports` bigint unsigned NOT NULL DEFAULT 0,
`teleport_reports` bigint unsigned NOT NULL DEFAULT 0,
`bg_start_reports` bigint unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

13 changes: 13 additions & 0 deletions sql/updates/world/2023_11_22_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DROP TABLE IF EXISTS `lua_private_functions`;
CREATE TABLE IF NOT EXISTS `lua_private_functions` (
`function_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`enabled` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DELETE FROM `lua_private_functions`;
INSERT INTO `lua_private_functions` (`function_name`, `enabled`) VALUES
('CastSpellByName', 1),
('RunMacroText', 1);

DELETE FROM `skyfire_string` WHERE `entry`=11002;
INSERT INTO `skyfire_string` (`entry`, `content_default`, `content_loc1`, `content_loc2`, `content_loc3`, `content_loc4`, `content_loc5`, `content_loc6`, `content_loc7`, `content_loc8`, `content_loc9`, `content_loc10`, `content_loc11`)VALUES
(11002, '|cFFFFBF00[%s]:|cFFFFFFFF|Hplayer:%s|h[%s]|h|cFF00FFFF potential |r|cFFFFFF00%s|r%s x %u|r', null, null, null, null, null, null, null, null, null, null, null);
Loading

0 comments on commit ebced70

Please sign in to comment.