Advertisement
Rochet2

Structure Final version 2.0

Aug 4th, 2011
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 5.60 KB | None | 0 0
  1. # --------------------------------------------------------
  2. # Host:                         127.0.0.1
  3. # Server version:               5.5.11
  4. # Server OS:                    Win64
  5. # HeidiSQL version:             6.0.0.3916
  6. # DATE/TIME:                    2011-08-04 13:28:57
  7. # --------------------------------------------------------
  8.  
  9. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  10. /*!40101 SET NAMES utf8 */;
  11. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  12. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  13.  
  14. # Dumping DATABASE STRUCTURE FOR custom_gossip
  15. DROP DATABASE IF EXISTS `custom_gossip`;
  16. CREATE DATABASE IF NOT EXISTS `custom_gossip` /*!40100 DEFAULT CHARACTER SET latin1 */;
  17. USE `custom_gossip`;
  18.  
  19.  
  20. # Dumping STRUCTURE FOR TABLE custom_gossip.gossip_conditions
  21. DROP TABLE IF EXISTS `gossip_conditions`;
  22. CREATE TABLE IF NOT EXISTS `gossip_conditions` (
  23.   `menu_id` INT(10) UNSIGNED NOT NULL COMMENT 'menu_id from gossip_menu_option',
  24.   `order` tinyint(2) UNSIGNED NOT NULL COMMENT 'order from gossip_menu_option',
  25.   `has_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  26.   `value` INT(10) NOT NULL DEFAULT '0',
  27.   `bool` tinyint(1) UNSIGNED NOT NULL DEFAULT '1' COMMENT '0 = must not have, 1 = must have',
  28.   PRIMARY KEY (`menu_id`,`order`,`has_id`,`value`,`bool`)
  29. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This table is used for extra conditions.\r\nThere can be more than one of each has_id.\r\nConditions of any kind do not apply on GMs';
  30.  
  31. # DATA exporting was unselected.
  32.  
  33.  
  34. # Dumping STRUCTURE FOR TABLE custom_gossip.gossip_menu
  35. DROP TABLE IF EXISTS `gossip_menu`;
  36. CREATE TABLE IF NOT EXISTS `gossip_menu` (
  37.   `menu_id` INT(10) UNSIGNED NOT NULL COMMENT 'menu_id from gossip_menu_option',
  38.   `npc_text_id` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Entry from world.npc_text',
  39.   PRIMARY KEY (`menu_id`,`npc_text_id`)
  40. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Used for linking the menu_id to a text in world database.\r\nThis text is shown at the top of the menu.';
  41.  
  42. # DATA exporting was unselected.
  43.  
  44.  
  45. # Dumping STRUCTURE FOR TABLE custom_gossip.gossip_menu_option
  46. DROP TABLE IF EXISTS `gossip_menu_option`;
  47. CREATE TABLE IF NOT EXISTS `gossip_menu_option` (
  48.   `menu_id` INT(10) UNSIGNED NOT NULL COMMENT 'Unique number for a menu',
  49.   `order` tinyint(2) UNSIGNED NOT NULL COMMENT 'min 1, max 30. Order of the options',
  50.   `icon` tinyint(2) UNSIGNED NOT NULL DEFAULT '2' COMMENT 'Icon number',
  51.   `name` text NOT NULL COMMENT 'Name of the teleport (label)',
  52.   `script_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'ID that links to gossip_scripts script_id. You can have multiple scripts for one option',
  53.   `next_menu_id` BIGINT(10) NOT NULL DEFAULT '-1' COMMENT 'the menu_id of the next menu shown.',
  54.   `cost` mediumint(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'cost in copper',
  55.   `popup` text NOT NULL COMMENT 'popup text',
  56.   `req_level` tinyint(3) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'required level',
  57.   `team` tinyint(1) UNSIGNED NOT NULL DEFAULT '2' COMMENT '0 = ally, 1 = horde, 2=both',
  58.   PRIMARY KEY (`menu_id`,`order`)
  59. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This table holds all the items for menus and a part of their requirements\r\nand information on what do the items do on click.';
  60.  
  61. # DATA exporting was unselected.
  62.  
  63.  
  64. # Dumping STRUCTURE FOR TABLE custom_gossip.gossip_scripts
  65. DROP TABLE IF EXISTS `gossip_scripts`;
  66. CREATE TABLE IF NOT EXISTS `gossip_scripts` (
  67.   `script_id` BIGINT(20) UNSIGNED NOT NULL COMMENT 'id that is the same in gossip_menu_option',
  68.   `command` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '0 = teleport. More on release site',
  69.   `float` FLOAT UNSIGNED NOT NULL DEFAULT '0' COMMENT 'used for: scale',
  70.   `value` INT(10) NOT NULL DEFAULT '0' COMMENT 'a value',
  71.   `value2` INT(10) NOT NULL DEFAULT '0' COMMENT 'a value',
  72.   `string` text COMMENT 'text field. Separate entry numbers with a space',
  73.   `bool` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '0 = false, 1 = true',
  74.   `map` SMALLINT(6) NOT NULL DEFAULT '0' COMMENT 'map ID',
  75.   `x` FLOAT NOT NULL DEFAULT '0' COMMENT 'X-coord',
  76.   `y` FLOAT NOT NULL DEFAULT '0' COMMENT 'Y-coord',
  77.   `z` FLOAT NOT NULL DEFAULT '0' COMMENT 'Z-coord',
  78.   `o` FLOAT NOT NULL DEFAULT '0' COMMENT 'Orientation',
  79.   `comment` text COMMENT 'optional comment'
  80. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This table stores all the events that can happen when you click an item in a menu.\r\nThis table does not store data for next menu, only the event scripts.';
  81.  
  82. # DATA exporting was unselected.
  83.  
  84.  
  85. # Dumping STRUCTURE FOR TABLE custom_gossip.units
  86. DROP TABLE IF EXISTS `units`;
  87. CREATE TABLE IF NOT EXISTS `units` (
  88.   `entry` INT(10) UNSIGNED NOT NULL COMMENT 'Max 200000, Min 1',
  89.   `type` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '0 = NPC, 1 = Gob, 2 = item',
  90.   `menu_id` INT(10) UNSIGNED NOT NULL COMMENT 'MAIN menu''s menu_id for this NPC entry - reloadable',
  91.   `check_combat` tinyint(3) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'bool defining whether we will error if player in combat. 1 = yes, 0 = no - reloadable',
  92.   PRIMARY KEY (`entry`,`type`)
  93. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This table holds all the items, gameobjects and NPCs that have gossip.\r\nThis table also holds the data on what menu does the unit open on click (gossip hello)\r\nand whether to error out if the player is in combat when trying to click the unit.';
  94.  
  95. # DATA exporting was unselected.
  96. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  97. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  98. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement