17ed98cdae
Better detection for No Fall Time and No Fall Damage cheats.
25 lines
1.5 KiB
SQL
25 lines
1.5 KiB
SQL
DROP PROCEDURE IF EXISTS add_migration;
|
|
DELIMITER ??
|
|
CREATE PROCEDURE `add_migration`()
|
|
BEGIN
|
|
DECLARE v INT DEFAULT 1;
|
|
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20240611051049');
|
|
IF v = 0 THEN
|
|
INSERT INTO `migrations` VALUES ('20240611051049');
|
|
-- Add your query below.
|
|
|
|
|
|
-- Add texts for fixed z cheat command.
|
|
INSERT INTO `mangos_string` (`entry`, `content_default`, `content_loc1`, `content_loc2`, `content_loc3`, `content_loc4`, `content_loc5`, `content_loc6`, `content_loc7`, `content_loc8`) VALUES (614, 'FIXED Z cheat is OFF', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
INSERT INTO `mangos_string` (`entry`, `content_default`, `content_loc1`, `content_loc2`, `content_loc3`, `content_loc4`, `content_loc5`, `content_loc6`, `content_loc7`, `content_loc8`) VALUES (613, 'FIXED Z cheat is ON', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
INSERT INTO `mangos_string` (`entry`, `content_default`, `content_loc1`, `content_loc2`, `content_loc3`, `content_loc4`, `content_loc5`, `content_loc6`, `content_loc7`, `content_loc8`) VALUES (612, 'Your fixed z mode has been turned %s by %s.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
INSERT INTO `mangos_string` (`entry`, `content_default`, `content_loc1`, `content_loc2`, `content_loc3`, `content_loc4`, `content_loc5`, `content_loc6`, `content_loc7`, `content_loc8`) VALUES (611, 'You set fixed z mode to %s for %s.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
|
|
|
-- End of migration.
|
|
END IF;
|
|
END??
|
|
DELIMITER ;
|
|
CALL add_migration();
|
|
DROP PROCEDURE IF EXISTS add_migration;
|