mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Character] Record character stats to character_stats_record table (#3522)
* [Character] Record character stats to * Record stats on disconnect as well * Record later in connect process * Move enter zone code path so we're after bonuses * Ok this spot for real * Adjust recording * Update client_packet.cpp * Timestamps * Update database_update_manifest.cpp * Update client_packet.cpp * Fix stat bonuses
This commit is contained in:
@@ -4845,6 +4845,93 @@ UPDATE data_buckets SET bot_id = SUBSTRING_INDEX(SUBSTRING_INDEX( `key`, '-', 2
|
||||
ADD COLUMN `marked_npc_3_instance_id` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `marked_npc_3_zone_id`;
|
||||
)"
|
||||
},
|
||||
ManifestEntry{
|
||||
.version = 9235,
|
||||
.description = "2023_07_31_character_stats_record.sql",
|
||||
.check = "SHOW TABLES LIKE 'character_stats_record'",
|
||||
.condition = "empty",
|
||||
.match = "",
|
||||
.sql = R"(
|
||||
|
||||
CREATE TABLE `character_stats_record` (
|
||||
`character_id` int NULL,
|
||||
`name` varchar(100) NULL,
|
||||
`status` int NULL DEFAULT 0,
|
||||
`level` int NULL DEFAULT 0,
|
||||
`class` int NULL DEFAULT 0,
|
||||
`race` int NULL DEFAULT 0,
|
||||
`aa_points` int NULL DEFAULT 0,
|
||||
`hp` bigint NULL DEFAULT 0,
|
||||
`mana` bigint NULL DEFAULT 0,
|
||||
`endurance` bigint NULL DEFAULT 0,
|
||||
`ac` int NULL DEFAULT 0,
|
||||
`strength` int NULL DEFAULT 0,
|
||||
`stamina` int NULL DEFAULT 0,
|
||||
`dexterity` int NULL DEFAULT 0,
|
||||
`agility` int NULL DEFAULT 0,
|
||||
`intelligence` int NULL DEFAULT 0,
|
||||
`wisdom` int NULL DEFAULT 0,
|
||||
`charisma` int NULL DEFAULT 0,
|
||||
`magic_resist` int NULL DEFAULT 0,
|
||||
`fire_resist` int NULL DEFAULT 0,
|
||||
`cold_resist` int NULL DEFAULT 0,
|
||||
`poison_resist` int NULL DEFAULT 0,
|
||||
`disease_resist` int NULL DEFAULT 0,
|
||||
`corruption_resist` int NULL DEFAULT 0,
|
||||
`heroic_strength` int NULL DEFAULT 0,
|
||||
`heroic_stamina` int NULL DEFAULT 0,
|
||||
`heroic_dexterity` int NULL DEFAULT 0,
|
||||
`heroic_agility` int NULL DEFAULT 0,
|
||||
`heroic_intelligence` int NULL DEFAULT 0,
|
||||
`heroic_wisdom` int NULL DEFAULT 0,
|
||||
`heroic_charisma` int NULL DEFAULT 0,
|
||||
`heroic_magic_resist` int NULL DEFAULT 0,
|
||||
`heroic_fire_resist` int NULL DEFAULT 0,
|
||||
`heroic_cold_resist` int NULL DEFAULT 0,
|
||||
`heroic_poison_resist` int NULL DEFAULT 0,
|
||||
`heroic_disease_resist` int NULL DEFAULT 0,
|
||||
`heroic_corruption_resist` int NULL DEFAULT 0,
|
||||
`haste` int NULL DEFAULT 0,
|
||||
`accuracy` int NULL DEFAULT 0,
|
||||
`attack` int NULL DEFAULT 0,
|
||||
`avoidance` int NULL DEFAULT 0,
|
||||
`clairvoyance` int NULL DEFAULT 0,
|
||||
`combat_effects` int NULL DEFAULT 0,
|
||||
`damage_shield_mitigation` int NULL DEFAULT 0,
|
||||
`damage_shield` int NULL DEFAULT 0,
|
||||
`dot_shielding` int NULL DEFAULT 0,
|
||||
`hp_regen` int NULL DEFAULT 0,
|
||||
`mana_regen` int NULL DEFAULT 0,
|
||||
`endurance_regen` int NULL DEFAULT 0,
|
||||
`shielding` int NULL DEFAULT 0,
|
||||
`spell_damage` int NULL DEFAULT 0,
|
||||
`spell_shielding` int NULL DEFAULT 0,
|
||||
`strikethrough` int NULL DEFAULT 0,
|
||||
`stun_resist` int NULL DEFAULT 0,
|
||||
`backstab` int NULL DEFAULT 0,
|
||||
`wind` int NULL DEFAULT 0,
|
||||
`brass` int NULL DEFAULT 0,
|
||||
`string` int NULL DEFAULT 0,
|
||||
`percussion` int NULL DEFAULT 0,
|
||||
`singing` int NULL DEFAULT 0,
|
||||
`baking` int NULL DEFAULT 0,
|
||||
`alchemy` int NULL DEFAULT 0,
|
||||
`tailoring` int NULL DEFAULT 0,
|
||||
`blacksmithing` int NULL DEFAULT 0,
|
||||
`fletching` int NULL DEFAULT 0,
|
||||
`brewing` int NULL DEFAULT 0,
|
||||
`jewelry` int NULL DEFAULT 0,
|
||||
`pottery` int NULL DEFAULT 0,
|
||||
`research` int NULL DEFAULT 0,
|
||||
`alcohol` int NULL DEFAULT 0,
|
||||
`fishing` int NULL DEFAULT 0,
|
||||
`tinkering` int NULL DEFAULT 0,
|
||||
`created_at` datetime DEFAULT NULL,
|
||||
`updated_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`character_id`)
|
||||
);
|
||||
)"
|
||||
},
|
||||
|
||||
// -- template; copy/paste this when you need to create a new entry
|
||||
// ManifestEntry{
|
||||
|
||||
Reference in New Issue
Block a user