Fix corrupt item cache crashes, bot whispers, trade crashes

This commit is contained in:
郑佩茹
2022-03-22 11:04:21 -06:00
parent b952636f0d
commit a7f412b428
21 changed files with 91 additions and 78 deletions

View File

@@ -1,14 +1,14 @@
DROP TABLE IF EXISTS `playerbot_arena_team_names`;
CREATE TABLE `playerbot_arena_team_names` (
`name_id` mediumint(8) NOT NULL AUTO_INCREMENT UNIQUE,
`name` varchar(24) NOT NULL UNIQUE,
`type` TINYINT(3) NOT NULL,
PRIMARY KEY (`name_id`)
DROP TABLE IF EXISTS `playerbots_arena_team_names`;
CREATE TABLE `playerbots_arena_team_names` (
`name_id` mediumint(8) NOT NULL AUTO_INCREMENT UNIQUE,
`name` varchar(24) NOT NULL UNIQUE,
`type` TINYINT(3) NOT NULL,
PRIMARY KEY (`name_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Playerbot arena team names';
DELETE FROM `playerbot_arena_team_names`;
INSERT INTO `playerbot_arena_team_names` (`name_id`,`name`, `type`) VALUES
DELETE FROM `playerbots_arena_team_names`;
INSERT INTO `playerbots_arena_team_names` (`name_id`,`name`, `type`) VALUES
(NULL, 'out of coverage',2),
(NULL, 'Dead or Alive',2),
(NULL, 'Noßrain',2),

View File

@@ -1,11 +1,11 @@
DROP TABLE IF EXISTS `playerbot_guild_names`;
CREATE TABLE `playerbot_guild_names` (
`name_id` INT(11) NOT NULL AUTO_INCREMENT UNIQUE,
`name` varchar(24) NOT NULL UNIQUE,
PRIMARY KEY (`name_id`)
DROP TABLE IF EXISTS `playerbots_guild_names`;
CREATE TABLE `playerbots_guild_names` (
`name_id` INT(11) NOT NULL AUTO_INCREMENT UNIQUE,
`name` varchar(24) NOT NULL UNIQUE,
PRIMARY KEY (`name_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Playerbot guild names';
INSERT INTO `playerbot_guild_names` VALUES
INSERT INTO `playerbots_guild_names` VALUES
(NULL, 'Black Guard'),
(NULL, 'Abyssal Kingdoms'),
(NULL, 'Acid Evil'),

View File

@@ -1,12 +1,12 @@
DROP TABLE IF EXISTS `playerbot_names`;
CREATE TABLE `playerbot_names` (
DROP TABLE IF EXISTS `playerbots_names`;
CREATE TABLE `playerbots_names` (
`name_id` INT(11) NOT NULL UNIQUE,
`name` varchar(255) NOT NULL,
`gender` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`name_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Playerbot RandomBot names';
INSERT INTO `playerbot_names` VALUES
INSERT INTO `playerbots_names` VALUES
(1,'Aalart',0),
(2,'Aalef',0),
(3,'Aalot',0),
@@ -10687,5 +10687,5 @@ INSERT INTO `playerbot_names` VALUES
(10678,'Zuzene',1),
(10679,'Zwaante',1);
DELETE FROM `playerbot_names` WHERE LENGTH(`name`) > 12;
ALTER TABLE `playerbot_names` MODIFY `name` varchar(12);
DELETE FROM `playerbots_names` WHERE LENGTH(`name`) > 12;
ALTER TABLE `playerbots_names` MODIFY `name` varchar(12);

View File

@@ -1,45 +1,48 @@
DROP TABLE IF EXISTS `playerbots_item_info_cache`;
CREATE TABLE IF NOT EXISTS `playerbots_item_info_cache` (
`id` int(11) NOT NULL,
`quality` int(11) DEFAULT NULL,
`slot` int(11) DEFAULT NULL,
`source` mediumint(8) DEFAULT NULL,
`sourceId` mediumint(8) DEFAULT NULL,
`team` mediumint(8) DEFAULT NULL,
`faction` mediumint(8) DEFAULT NULL,
`factionRepRank` mediumint(8) DEFAULT NULL,
`minLevel` mediumint(8) DEFAULT NULL,
`scale_1` mediumint(8) DEFAULT NULL,
`scale_2` mediumint(8) DEFAULT NULL,
`scale_3` mediumint(8) DEFAULT NULL,
`scale_4` mediumint(8) DEFAULT NULL,
`scale_5` mediumint(8) DEFAULT NULL,
`scale_6` mediumint(8) DEFAULT NULL,
`scale_7` mediumint(8) DEFAULT NULL,
`scale_8` mediumint(8) DEFAULT NULL,
`scale_9` mediumint(8) DEFAULT NULL,
`scale_10` mediumint(8) DEFAULT NULL,
`scale_11` mediumint(8) DEFAULT NULL,
`scale_12` mediumint(8) DEFAULT NULL,
`scale_13` mediumint(8) DEFAULT NULL,
`scale_14` mediumint(8) DEFAULT NULL,
`scale_15` mediumint(8) DEFAULT NULL,
`scale_16` mediumint(8) DEFAULT NULL,
`scale_17` mediumint(8) DEFAULT NULL,
`scale_18` mediumint(8) DEFAULT NULL,
`scale_19` mediumint(8) DEFAULT NULL,
`scale_20` mediumint(8) DEFAULT NULL,
`scale_21` mediumint(8) DEFAULT NULL,
`scale_22` mediumint(8) DEFAULT NULL,
`scale_23` mediumint(8) DEFAULT NULL,
`scale_24` mediumint(8) DEFAULT NULL,
`scale_25` mediumint(8) DEFAULT NULL,
`scale_26` mediumint(8) DEFAULT NULL,
`scale_27` mediumint(8) DEFAULT NULL,
`scale_28` mediumint(8) DEFAULT NULL,
`scale_29` mediumint(8) DEFAULT NULL,
`scale_30` mediumint(8) DEFAULT NULL,
`scale_31` mediumint(8) DEFAULT NULL,
`scale_32` mediumint(8) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='PlayerbotAI item info Cache';
CREATE TABLE IF NOT EXISTS `playerbots_item_info_cache`
(
`id` int(11) NOT NULL,
`quality` int(11) DEFAULT NULL,
`slot` int(11) DEFAULT NULL,
`source` bigint(20) DEFAULT NULL,
`sourceId` bigint(20) DEFAULT NULL,
`team` bigint(20) DEFAULT NULL,
`faction` bigint(20) DEFAULT NULL,
`factionRepRank` bigint(20) DEFAULT NULL,
`minLevel` bigint(20) DEFAULT NULL,
`scale_1` bigint(20) DEFAULT NULL,
`scale_2` bigint(20) DEFAULT NULL,
`scale_3` bigint(20) DEFAULT NULL,
`scale_4` bigint(20) DEFAULT NULL,
`scale_5` bigint(20) DEFAULT NULL,
`scale_6` bigint(20) DEFAULT NULL,
`scale_7` bigint(20) DEFAULT NULL,
`scale_8` bigint(20) DEFAULT NULL,
`scale_9` bigint(20) DEFAULT NULL,
`scale_10` bigint(20) DEFAULT NULL,
`scale_11` bigint(20) DEFAULT NULL,
`scale_12` bigint(20) DEFAULT NULL,
`scale_13` bigint(20) DEFAULT NULL,
`scale_14` bigint(20) DEFAULT NULL,
`scale_15` bigint(20) DEFAULT NULL,
`scale_16` bigint(20) DEFAULT NULL,
`scale_17` bigint(20) DEFAULT NULL,
`scale_18` bigint(20) DEFAULT NULL,
`scale_19` bigint(20) DEFAULT NULL,
`scale_20` bigint(20) DEFAULT NULL,
`scale_21` bigint(20) DEFAULT NULL,
`scale_22` bigint(20) DEFAULT NULL,
`scale_23` bigint(20) DEFAULT NULL,
`scale_24` bigint(20) DEFAULT NULL,
`scale_25` bigint(20) DEFAULT NULL,
`scale_26` bigint(20) DEFAULT NULL,
`scale_27` bigint(20) DEFAULT NULL,
`scale_28` bigint(20) DEFAULT NULL,
`scale_29` bigint(20) DEFAULT NULL,
`scale_30` bigint(20) DEFAULT NULL,
`scale_31` bigint(20) DEFAULT NULL,
`scale_32` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE = MyISAM
DEFAULT CHARSET = utf8
ROW_FORMAT = FIXED COMMENT ='PlayerbotAI item info Cache';

View File

@@ -11,4 +11,4 @@ CREATE TABLE `charsections_dbc` (
`Type` INT NOT NULL DEFAULT '0',
`Color` INT NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE=MYISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
) ENGINE=MYISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;

View File

@@ -6,4 +6,4 @@ CREATE TABLE `emotetextsound_dbc` (
`SexId` INT NOT NULL DEFAULT '0',
`SoundId` INT NOT NULL DEFAULT '0',
PRIMARY KEY (`Id`) USING BTREE
) ENGINE=MYISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
) ENGINE=MYISAM DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;