Advertisement
Guest User

Player Housing SQL

a guest
Aug 17th, 2017
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 4.89 KB | None | 0 0
  1. -- --------------------------------------------------------
  2. -- Host:                         127.0.0.1
  3. -- Server version:               5.5.9 - MySQL Community Server (GPL)
  4. -- Server OS:                    Win32
  5. -- HeidiSQL Version:             9.4.0.5125
  6. -- --------------------------------------------------------
  7.  
  8. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!50503 SET NAMES utf8mb4 */;
  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.  
  15. -- Dumping database structure for characters
  16. CREATE DATABASE IF NOT EXISTS `characters` /*!40100 DEFAULT CHARACTER SET latin1 */;
  17. USE `characters`;
  18.  
  19. -- Dumping structure for table characters.player_house
  20. CREATE TABLE IF NOT EXISTS `player_house` (
  21.   `player_guid` int(11) NOT NULL,
  22.   `player_name` varchar(36) NOT NULL,
  23.   `items_spawned` int(11) unsigned DEFAULT '0',
  24.   `npcs_spawned` int(11) unsigned DEFAULT '0',
  25.   `items_bonus` int(11) DEFAULT '0',
  26.   `npcs_bonus` int(11) DEFAULT '0',
  27.   `package1` int(11) DEFAULT NULL,
  28.   `package2` int(11) DEFAULT NULL,
  29.   `package3` int(11) DEFAULT NULL,
  30.   `package4` int(11) DEFAULT NULL,
  31.   PRIMARY KEY (`player_guid`)
  32. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  33.  
  34. -- Dumping structure for table characters.player_house_available
  35. CREATE TABLE IF NOT EXISTS `player_house_available` (
  36.   `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  37.   `zone_name` text,
  38.   `price` int(11) NOT NULL DEFAULT '15',
  39.   `map_id` int(11) DEFAULT NULL,
  40.   `bottom_x` float DEFAULT NULL,
  41.   `top_x` float DEFAULT NULL,
  42.   `left_y` float DEFAULT NULL,
  43.   `right_y` float DEFAULT NULL,
  44.   `spawn_x` float DEFAULT NULL,
  45.   `spawn_y` float DEFAULT NULL,
  46.   `spawn_z` float DEFAULT NULL,
  47.   `spawn_o` float DEFAULT NULL,
  48.   `c_guid` int(11) DEFAULT NULL,
  49.   PRIMARY KEY (`id`)
  50. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
  51.  
  52. -- Dumping structure for table characters.player_house_npcs
  53. CREATE TABLE IF NOT EXISTS `player_house_npcs` (
  54.   `npcId` int(11) unsigned NOT NULL DEFAULT '0',
  55.   PRIMARY KEY (`npcId`)
  56. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  57.  
  58. -- Dumping data for table characters.player_house_npcs: 0 rows
  59. /*!40000 ALTER TABLE `player_house_npcs` DISABLE KEYS */;
  60. /*!40000 ALTER TABLE `player_house_npcs` ENABLE KEYS */;
  61.  
  62. -- Dumping structure for table characters.player_house_objects
  63. CREATE TABLE IF NOT EXISTS `player_house_objects` (
  64.   `gobjID` int(11) unsigned NOT NULL DEFAULT '0',
  65.   PRIMARY KEY (`gobjID`)
  66. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  67.  
  68. -- Dumping data for table characters.player_house_objects: 0 rows
  69. /*!40000 ALTER TABLE `player_house_objects` DISABLE KEYS */;
  70. /*!40000 ALTER TABLE `player_house_objects` ENABLE KEYS */;
  71.  
  72. -- Dumping structure for table characters.player_house_spawns
  73. CREATE TABLE IF NOT EXISTS `player_house_spawns` (
  74.   `id` int(10) unsigned NOT NULL DEFAULT '0',
  75.   `CreaOrObjId` int(10) unsigned NOT NULL DEFAULT '0',
  76.   `CreaOrObjName` varchar(50) DEFAULT '0',
  77.   `CreatureOrObject` int(3) unsigned NOT NULL DEFAULT '0',
  78.   `package` int(3) unsigned NOT NULL DEFAULT '0'
  79. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  80.  
  81. -- Dumping data for table characters.player_house_spawns: ~1 rows (approximately)
  82. /*!40000 ALTER TABLE `player_house_spawns` DISABLE KEYS */;
  83. INSERT INTO `player_house_spawns` (`id`, `CreaOrObjId`, `CreaOrObjName`, `CreatureOrObject`, `package`) VALUES
  84.     (1, 31395, 'Illidan Stormrage', 0, 1),
  85.     (1, 10217, 'Chair', 1, 1),
  86.     (2, 193167, 'Bunkbed', 1, 1),
  87.     (3, 191966, 'Table', 1, 1),
  88.     (4, 181103, 'Flower', 1, 1),
  89.     (1, 193167, 'Bunkbed', 1, 2),
  90.     (1, 31395, 'Illidan Stormrage', 0, 2),
  91.     (1, 193167, 'Bunkbed', 1, 3),
  92.     (1, 31395, 'Illidan Stormrage', 0, 3),
  93.     (1, 193167, 'Bunkbed', 1, 4),
  94.     (1, 31395, 'Illidan Stormrage', 0, 4),
  95.     (1, 193167, 'Bunkbed', 1, 5),
  96.     (1, 31395, 'Illidan Stormrage', 0, 5),
  97.     (2, 31395, 'Not Illidan Stormrage', 0, 1);
  98. /*!40000 ALTER TABLE `player_house_spawns` ENABLE KEYS */;
  99.  
  100. -- Dumping structure for table characters.player_house_taken
  101. CREATE TABLE IF NOT EXISTS `player_house_taken` (
  102.   `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  103.   `player_name` varchar(12) DEFAULT NULL,
  104.   `player_guid` int(11) unsigned DEFAULT '0',
  105.   `zone_name` text,
  106.   `map_id` int(11) DEFAULT NULL,
  107.   `bottom_x` float DEFAULT NULL,
  108.   `top_x` float DEFAULT NULL,
  109.   `left_y` float DEFAULT NULL,
  110.   `right_y` float DEFAULT NULL,
  111.   `spawn_x` float DEFAULT NULL,
  112.   `spawn_y` float DEFAULT NULL,
  113.   `spawn_z` float DEFAULT NULL,
  114.   `spawn_o` float DEFAULT NULL,
  115.   `sign1x` float DEFAULT NULL,
  116.   `sign1y` float DEFAULT NULL,
  117.   `sign2x` float DEFAULT NULL,
  118.   `sign2y` float DEFAULT NULL,
  119.   `sign3x` float DEFAULT NULL,
  120.   `sign3y` float DEFAULT NULL,
  121.   `sign4x` float DEFAULT NULL,
  122.   `sign4y` float DEFAULT NULL,
  123.   `updated` int(11) unsigned DEFAULT '0',
  124.   PRIMARY KEY (`id`)
  125. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement