Core/DBC: Implemented achievement_dbc db table for filling in missing achievements and added sample data
This commit is contained in:
@@ -75,6 +75,38 @@ LOCK TABLES `achievement_criteria_data` WRITE;
|
||||
/*!40000 ALTER TABLE `achievement_criteria_data` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `achievement_dbc`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `achievement_dbc`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `achievement_dbc` (
|
||||
`ID` int(10) unsigned NOT NULL,
|
||||
`requiredFaction` int(11) NOT NULL DEFAULT '-1',
|
||||
`mapID` int(11) NOT NULL DEFAULT '-1',
|
||||
`points` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`flags` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`count` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`refAchievement` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `achievement_dbc`
|
||||
--
|
||||
|
||||
LOCK TABLES `achievement_dbc` WRITE;
|
||||
/*!40000 ALTER TABLE `achievement_dbc` DISABLE KEYS */;
|
||||
INSERT INTO `achievement_dbc` VALUES
|
||||
(3696,-1,-1,0,2,1,0), -- Earned the right to represent a city in the Argent Tournament
|
||||
(4788,-1,-1,0,2,1,0), -- Is exalted with The Aldor or has any of exalted rewards
|
||||
(4789,-1,-1,0,2,1,0); -- Is exalted with The Scryers or has any of exalted rewards
|
||||
/*!40000 ALTER TABLE `achievement_dbc` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `achievement_reward`
|
||||
--
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
--
|
||||
-- Table structure for table `achievement_dbc`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `achievement_dbc`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `achievement_dbc` (
|
||||
`ID` int(10) unsigned NOT NULL,
|
||||
`requiredFaction` int(11) NOT NULL DEFAULT '-1',
|
||||
`mapID` int(11) NOT NULL DEFAULT '-1',
|
||||
`points` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`flags` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`count` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`refAchievement` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `achievement_dbc`
|
||||
--
|
||||
|
||||
LOCK TABLES `achievement_dbc` WRITE;
|
||||
/*!40000 ALTER TABLE `achievement_dbc` DISABLE KEYS */;
|
||||
INSERT INTO `achievement_dbc` VALUES
|
||||
(3696,-1,-1,0,2,1,0), -- Earned the right to represent a city in the Argent Tournament
|
||||
(4788,-1,-1,0,2,1,0), -- Is exalted with The Aldor or has any of exalted rewards
|
||||
(4789,-1,-1,0,2,1,0); -- Is exalted with The Scryers or has any of exalted rewards
|
||||
/*!40000 ALTER TABLE `achievement_dbc` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
@@ -268,7 +268,7 @@ void LoadDBCStores(const std::string& dataPath)
|
||||
}
|
||||
}
|
||||
|
||||
LoadDBC(availableDbcLocales,bad_dbc_files,sAchievementStore, dbcPath,"Achievement.dbc");
|
||||
LoadDBC(availableDbcLocales,bad_dbc_files,sAchievementStore, dbcPath,"Achievement.dbc", &CustomAchievementfmt, &CustomAchievementIndex);
|
||||
LoadDBC(availableDbcLocales,bad_dbc_files,sAchievementCriteriaStore, dbcPath,"Achievement_Criteria.dbc");
|
||||
LoadDBC(availableDbcLocales,bad_dbc_files,sAreaTriggerStore, dbcPath,"AreaTrigger.dbc");
|
||||
LoadDBC(availableDbcLocales,bad_dbc_files,sAreaGroupStore, dbcPath,"AreaGroup.dbc");
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#define TRINITY_DBCSFRM_H
|
||||
|
||||
const char Achievementfmt[]="niixssssssssssssssssxxxxxxxxxxxxxxxxxxiixixxxxxxxxxxxxxxxxxxii";
|
||||
const std::string CustomAchievementfmt="pppaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaapapaaaaaaaaaaaaaaaaaapp";
|
||||
const std::string CustomAchievementIndex = "ID";
|
||||
const char AchievementCriteriafmt[]="niiiiiiiixxxxxxxxxxxxxxxxxiiiix";
|
||||
const char AreaTableEntryfmt[]="iiinixxxxxissssssssssssssssxixxxxxxx";
|
||||
const char AreaGroupEntryfmt[]="niiiiiii";
|
||||
|
||||
Reference in New Issue
Block a user