- Conqueror level/exp/step/points and the four sungma stats on the player (db load/save, simple player, actor add/update packets), POINT_CONQUEROR_*. - Conqueror maps 129-132 give conqueror exp instead of exp; per-map sungma requirements from map/<name>/sungma_attr.txt, sent as GC_SUNGMA_ATTR_UPDATE, with the AVA2 damage/defence penalties when below them. - /conqueror_stat, pc.set_conqueror_level / pc.get_conqueror_level, 9th skills 176-183 (+ Cheonun affects); DAMAGE_BLOCK is spelled (1 << 3) in char_battle. - tools/conqueror: schema, skill_proto rows, sungma_attr maps, the conqueror_unlock quest (lv 120 login/levelup) and install.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
1.0 KiB
SQL
22 lines
1.0 KiB
SQL
-- AVA2 conqueror (Yohara) level: per-player columns read/written by db ClientManagerLogin/Player.
|
|
-- Idempotent: run against the player schema (player / player_sb).
|
|
DROP PROCEDURE IF EXISTS mt_conqueror_add_columns;
|
|
DELIMITER //
|
|
CREATE PROCEDURE mt_conqueror_add_columns()
|
|
BEGIN
|
|
IF NOT EXISTS (SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'player' AND COLUMN_NAME = 'conquerorlevel') THEN
|
|
ALTER TABLE player
|
|
ADD COLUMN conquerorlevel tinyint(3) unsigned NOT NULL DEFAULT 0,
|
|
ADD COLUMN conqueror_level_step tinyint(3) unsigned NOT NULL DEFAULT 0,
|
|
ADD COLUMN sungma_str smallint(6) NOT NULL DEFAULT 0,
|
|
ADD COLUMN sungma_hp smallint(6) NOT NULL DEFAULT 0,
|
|
ADD COLUMN sungma_move smallint(6) NOT NULL DEFAULT 0,
|
|
ADD COLUMN sungma_inmune smallint(6) NOT NULL DEFAULT 0,
|
|
ADD COLUMN conqueror_exp int(10) unsigned NOT NULL DEFAULT 0,
|
|
ADD COLUMN conqueror_point smallint(6) NOT NULL DEFAULT 0;
|
|
END IF;
|
|
END //
|
|
DELIMITER ;
|
|
CALL mt_conqueror_add_columns();
|
|
DROP PROCEDURE mt_conqueror_add_columns;
|