aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-04-14 17:29:54 +0200
committerMachiavelli <none@none>2009-04-14 17:29:54 +0200
commit348339770e7e04f4a1a3bef7ba45fef83821c7a4 (patch)
treec8938eead970f21f305f21831e0ede9950a12a0a /sql
parentcebdaeb68e9bda4c73e1d6e409d50bc04eb1d83b (diff)
* 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
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/1366_characters.sql4
-rw-r--r--sql/updates/1366_world.sql1
2 files changed, 5 insertions, 0 deletions
diff --git a/sql/updates/1366_characters.sql b/sql/updates/1366_characters.sql
new file mode 100644
index 00000000000..8a8d61c2b91
--- /dev/null
+++ b/sql/updates/1366_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/1366_world.sql b/sql/updates/1366_world.sql
new file mode 100644
index 00000000000..a22254a9d2a
--- /dev/null
+++ b/sql/updates/1366_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.');