From ee8b436306e3d5e6d01ed13cf6cd4cd5cbd14dbf Mon Sep 17 00:00:00 2001 From: duckietm Date: Tue, 13 Jan 2026 09:51:04 +0100 Subject: [PATCH] :up: Added SQL for Chat bubbles --- Database Updates/12012026_ChatBubbles.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Database Updates/12012026_ChatBubbles.sql diff --git a/Database Updates/12012026_ChatBubbles.sql b/Database Updates/12012026_ChatBubbles.sql new file mode 100644 index 00000000..e955ad1a --- /dev/null +++ b/Database Updates/12012026_ChatBubbles.sql @@ -0,0 +1,15 @@ +ALTER TABLE `permissions` ADD COLUMN `cmd_update_chat_bubbles` ENUM('0','1') NOT NULL DEFAULT '0'; + +--New table for custom chat bubbles +CREATE TABLE chat_bubbles ( + type INT(11) PRIMARY KEY AUTO_INCREMENT COMMENT "Only 46 and higher will work", + name VARCHAR(255) NOT NULL DEFAULT '', + permission VARCHAR(255) NOT NULL DEFAULT '', + overridable BOOLEAN NOT NULL DEFAULT TRUE, + triggers_talking_furniture BOOLEAN NOT NULL DEFAULT FALSE +); + +--New texts for update chat bubbles command +INSERT INTO `emulator_texts` (`key`, `value`) VALUES ('commands.keys.cmd_update_chat_bubbles', 'update_chat_bubbles'); +INSERT INTO `emulator_texts` (`key`, `value`) VALUES ('commands.success.cmd_update_chat_bubbles', 'Successfully updated chat bubbles'); +INSERT INTO `emulator_texts` (`key`, `value`) VALUES ('commands.description.cmd_update_chat_bubbles', ':update_chat_bubbles'); \ No newline at end of file