[7292] Implement storage for points of interest data in DB.

It can be in current state used for simplify scripting code that set POI and more advansed way later..
    Call void PlayerMenu::SendPointOfInterest( float X, float Y, uint32 Icon, uint32 Flags, uint32 Data, char const * locName )
    will removed after some time delay, and only void PlayerMenu::SendPointOfInterest( uint32 poi_id ) will exist.

Author: GriffonHeart

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-17 17:40:03 -06:00
parent 68cfb7c5a4
commit a24928be67
13 changed files with 298 additions and 16 deletions
+53 -1
View File
@@ -22,7 +22,7 @@
DROP TABLE IF EXISTS `db_version`;
CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`required_7290_01_mangos_command` bit(1) default NULL
`required_7292_02_mangos_locales_points_of_interest` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
--
@@ -2152,6 +2152,33 @@ LOCK TABLES `locales_page_text` WRITE;
/*!40000 ALTER TABLE `locales_page_text` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `locales_points_of_interest`
--
DROP TABLE IF EXISTS `locales_points_of_interest`;
CREATE TABLE `locales_points_of_interest` (
`entry` mediumint(8) unsigned NOT NULL default '0',
`icon_name_loc1` text,
`icon_name_loc2` text,
`icon_name_loc3` text,
`icon_name_loc4` text,
`icon_name_loc5` text,
`icon_name_loc6` text,
`icon_name_loc7` text,
`icon_name_loc8` text,
PRIMARY KEY (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `locales_points_of_interest`
--
LOCK TABLES `locales_points_of_interest` WRITE;
/*!40000 ALTER TABLE `locales_points_of_interest` DISABLE KEYS */;
/*!40000 ALTER TABLE `locales_points_of_interest` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `locales_quest`
--
@@ -12720,6 +12747,31 @@ INSERT INTO `playercreateinfo_spell` VALUES
/*!40000 ALTER TABLE `playercreateinfo_spell` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `points_of_interest`
--
DROP TABLE IF EXISTS `points_of_interest`;
CREATE TABLE `points_of_interest` (
`entry` mediumint(8) unsigned NOT NULL default '0',
`x` float NOT NULL default '0',
`y` float NOT NULL default '0',
`icon` mediumint(8) unsigned NOT NULL default '0',
`flags` mediumint(8) unsigned NOT NULL default '0',
`data` mediumint(8) unsigned NOT NULL default '0',
`icon_name` text NOT NULL,
PRIMARY KEY (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `points_of_interest`
--
LOCK TABLES `points_of_interest` WRITE;
/*!40000 ALTER TABLE `points_of_interest` DISABLE KEYS */;
/*!40000 ALTER TABLE `points_of_interest` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `prospecting_loot_template`
--