Core/Items: Implemented artifacts

This commit is contained in:
Shauren
2016-08-15 00:03:38 +02:00
parent f8c5a2c723
commit fea0cb16f2
40 changed files with 1744 additions and 65 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,36 @@
--
-- Table structure for table `item_instance_artifact`
--
DROP TABLE IF EXISTS `item_instance_artifact`;
CREATE TABLE `item_instance_artifact` (
`itemGuid` bigint(20) unsigned NOT NULL,
`xp` int(10) unsigned NOT NULL DEFAULT '0',
`artifactAppearanceId` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`itemGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `item_instance_artifact_powers`
--
DROP TABLE IF EXISTS `item_instance_artifact_powers`;
CREATE TABLE `item_instance_artifact_powers` (
`itemGuid` bigint(20) unsigned NOT NULL,
`artifactPowerId` int(10) unsigned NOT NULL,
`purchasedRank` tinyint(3) unsigned DEFAULT '0',
PRIMARY KEY (`itemGuid`,`artifactPowerId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `item_instance_modifiers`
--
DROP TABLE IF EXISTS `item_instance_modifiers`;
CREATE TABLE `item_instance_modifiers` (
`itemGuid` bigint(20) unsigned NOT NULL,
`fixedScalingLevel` int(10) unsigned DEFAULT '0',
`artifactKnowledgeLevel` int(10) unsigned DEFAULT '0',
PRIMARY KEY (`itemGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `character_void_storage`
ADD `fixedScalingLevel` int(10) unsigned DEFAULT '0' AFTER `upgradeId`,
ADD `artifactKnowledgeLevel` int(10) unsigned DEFAULT '0' AFTER `fixedScalingLevel`;

View File

@@ -0,0 +1,182 @@
--
-- Table structure for table `artifact`
--
DROP TABLE IF EXISTS `artifact`;
CREATE TABLE `artifact` (
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`Name` text,
`BarConnectedColor` int(10) unsigned NOT NULL DEFAULT '0',
`BarDisconnectedColor` int(10) unsigned NOT NULL DEFAULT '0',
`TitleColor` int(10) unsigned NOT NULL DEFAULT '0',
`ClassUiTextureKitID` smallint(5) unsigned NOT NULL DEFAULT '0',
`SpecID` smallint(5) unsigned NOT NULL DEFAULT '0',
`ArtifactCategoryID` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Flags` tinyint(3) unsigned NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_locale`
--
DROP TABLE IF EXISTS `artifact_locale`;
CREATE TABLE `artifact_locale` (
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`locale` varchar(4) NOT NULL,
`Name_lang` text,
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`,`locale`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_appearance`
--
DROP TABLE IF EXISTS `artifact_appearance`;
CREATE TABLE `artifact_appearance` (
`Name` text,
`SwatchColor` int(10) unsigned NOT NULL DEFAULT '0',
`ModelDesaturation` float NOT NULL DEFAULT '0',
`ModelAlpha` float NOT NULL DEFAULT '0',
`ShapeshiftDisplayID` int(10) unsigned NOT NULL DEFAULT '0',
`ArtifactAppearanceSetID` smallint(5) unsigned NOT NULL DEFAULT '0',
`PlayerConditionID` smallint(5) unsigned NOT NULL DEFAULT '0',
`Unknown` smallint(5) unsigned NOT NULL DEFAULT '0',
`DisplayIndex` tinyint(3) unsigned NOT NULL DEFAULT '0',
`AppearanceModID` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Flags` tinyint(3) unsigned NOT NULL DEFAULT '0',
`ModifiesShapeshiftFormDisplay` tinyint(3) unsigned NOT NULL DEFAULT '0',
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`ItemAppearanceID` int(10) unsigned NOT NULL DEFAULT '0',
`AltItemAppearanceID` int(10) unsigned NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_appearance_locale`
--
DROP TABLE IF EXISTS `artifact_appearance_locale`;
CREATE TABLE `artifact_appearance_locale` (
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`locale` varchar(4) NOT NULL,
`Name_lang` text,
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`,`locale`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_appearance_set`
--
DROP TABLE IF EXISTS `artifact_appearance_set`;
CREATE TABLE `artifact_appearance_set` (
`Name` text,
`Name2` text,
`UiCameraID` smallint(5) unsigned NOT NULL DEFAULT '0',
`AltHandUICameraID` smallint(5) unsigned NOT NULL DEFAULT '0',
`ArtifactID` tinyint(3) unsigned NOT NULL DEFAULT '0',
`DisplayIndex` tinyint(3) unsigned NOT NULL DEFAULT '0',
`AttachmentPoint` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Flags` tinyint(3) unsigned NOT NULL DEFAULT '0',
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_appearance_set_locale`
--
DROP TABLE IF EXISTS `artifact_appearance_set_locale`;
CREATE TABLE `artifact_appearance_set_locale` (
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`locale` varchar(4) NOT NULL,
`Name_lang` text,
`Name2_lang` text,
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`,`locale`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_category`
--
DROP TABLE IF EXISTS `artifact_category`;
CREATE TABLE `artifact_category` (
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`ArtifactKnowledgeCurrencyID` smallint(5) unsigned NOT NULL DEFAULT '0',
`ArtifactKnowledgeMultiplierCurveID` smallint(5) unsigned NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_power`
--
DROP TABLE IF EXISTS `artifact_power`;
CREATE TABLE `artifact_power` (
`PosX` float NOT NULL DEFAULT '0',
`PosY` float NOT NULL DEFAULT '0',
`ArtifactID` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Flags` tinyint(3) unsigned NOT NULL DEFAULT '0',
`MaxRank` tinyint(3) unsigned NOT NULL DEFAULT '0',
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`RelicType` int(10) unsigned NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_power_link`
--
DROP TABLE IF EXISTS `artifact_power_link`;
CREATE TABLE `artifact_power_link` (
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`FromArtifactPowerID` smallint(5) unsigned NOT NULL DEFAULT '0',
`ToArtifactPowerID` smallint(5) unsigned NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_power_rank`
--
DROP TABLE IF EXISTS `artifact_power_rank`;
CREATE TABLE `artifact_power_rank` (
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`SpellID` int(10) unsigned NOT NULL DEFAULT '0',
`Value` float NOT NULL DEFAULT '0',
`ArtifactPowerID` smallint(5) unsigned NOT NULL DEFAULT '0',
`Unknown` smallint(5) unsigned NOT NULL DEFAULT '0',
`Rank` tinyint(3) unsigned NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `artifact_quest_xp`
--
DROP TABLE IF EXISTS `artifact_quest_xp`;
CREATE TABLE `artifact_quest_xp` (
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`Exp1` int(10) unsigned NOT NULL DEFAULT '0',
`Exp2` int(10) unsigned NOT NULL DEFAULT '0',
`Exp3` int(10) unsigned NOT NULL DEFAULT '0',
`Exp4` int(10) unsigned NOT NULL DEFAULT '0',
`Exp5` int(10) unsigned NOT NULL DEFAULT '0',
`Exp6` int(10) unsigned NOT NULL DEFAULT '0',
`Exp7` int(10) unsigned NOT NULL DEFAULT '0',
`Exp8` int(10) unsigned NOT NULL DEFAULT '0',
`Exp9` int(10) unsigned NOT NULL DEFAULT '0',
`Exp10` int(10) unsigned NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `item_bonus_list_level_delta`
--
DROP TABLE IF EXISTS `item_bonus_list_level_delta`;
CREATE TABLE `item_bonus_list_level_delta` (
`Delta` smallint(6) NOT NULL DEFAULT '0',
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_item_artifical_stamina','spell_item_artifical_damage');
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(211309,'spell_item_artifical_stamina'),
(213428,'spell_item_artifical_damage'),
(219655,'spell_item_artifical_damage'),
(226829,'spell_item_artifical_damage');