From ecbaf6483d453e0d80ab0b24f27232fbda1a3c4c Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Tue, 14 Apr 2009 17:48:58 +0200 Subject: * Ticket system update; - Add map, x, y, z coordinate data to ticket upon creation - Add command .go ticket to teleport to the coordinates where the ticket was created - Move InitTicketID() to the class constructor instead of at every LoadGMTickets call - Minor code cleanup --HG-- branch : trunk --- sql/updates/2686_characters.sql | 4 ++++ sql/updates/2686_world.sql | 1 + 2 files changed, 5 insertions(+) create mode 100644 sql/updates/2686_characters.sql create mode 100644 sql/updates/2686_world.sql (limited to 'sql') diff --git a/sql/updates/2686_characters.sql b/sql/updates/2686_characters.sql new file mode 100644 index 00000000000..8a8d61c2b91 --- /dev/null +++ b/sql/updates/2686_characters.sql @@ -0,0 +1,4 @@ +ALTER TABLE `gm_tickets` ADD COLUMN `map` INT NOT NULL DEFAULT '0' AFTER `createtime`; +ALTER TABLE `gm_tickets` ADD COLUMN `posX` FLOAT NOT NULL DEFAULT '0' AFTER `map`; +ALTER TABLE `gm_tickets` ADD COLUMN `posY` FLOAT NOT NULL DEFAULT '0' AFTER `posX`; +ALTER TABLE `gm_tickets` ADD COLUMN `posZ` FLOAT NOT NULL DEFAULT '0' AFTER `posY`; diff --git a/sql/updates/2686_world.sql b/sql/updates/2686_world.sql new file mode 100644 index 00000000000..a22254a9d2a --- /dev/null +++ b/sql/updates/2686_world.sql @@ -0,0 +1 @@ +insert into `command` (`name`, `security`, `help`) values('go ticket','1','Syntax: .go ticket #ticketid\r\nTeleports the user to the location where $ticketid was created.'); -- cgit v1.2.3