new version commit
This commit is contained in:
0
modules/mod-item-upgrade/data/.gitkeep
Normal file
0
modules/mod-item-upgrade/data/.gitkeep
Normal file
@@ -0,0 +1,7 @@
|
||||
DROP TABLE IF EXISTS `character_item_upgrade`;
|
||||
CREATE TABLE `character_item_upgrade`(
|
||||
`guid` int unsigned not null,
|
||||
`item_guid` int unsigned not null,
|
||||
`stat_id` int unsigned not null,
|
||||
PRIMARY KEY (`guid`, `item_guid`, `stat_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
@@ -0,0 +1,7 @@
|
||||
DROP TABLE IF EXISTS `character_weapon_upgrade`;
|
||||
CREATE TABLE `character_weapon_upgrade`(
|
||||
`guid` int unsigned not null,
|
||||
`item_guid` int unsigned not null,
|
||||
`upgrade_perc` float not null,
|
||||
PRIMARY KEY (`guid`, `item_guid`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
@@ -0,0 +1,5 @@
|
||||
DROP TABLE IF EXISTS `mod_item_upgrade_allowed_items`;
|
||||
CREATE TABLE `mod_item_upgrade_allowed_items`(
|
||||
`entry` int unsigned not null,
|
||||
PRIMARY KEY (`entry`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
@@ -0,0 +1,6 @@
|
||||
DROP TABLE IF EXISTS `mod_item_upgrade_allowed_stats_items`;
|
||||
CREATE TABLE `mod_item_upgrade_allowed_stats_items`(
|
||||
`stat_id` int unsigned not null,
|
||||
`entry` int unsigned not null,
|
||||
PRIMARY KEY (`stat_id`, `entry`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
@@ -0,0 +1,5 @@
|
||||
DROP TABLE IF EXISTS `mod_item_upgrade_blacklisted_items`;
|
||||
CREATE TABLE `mod_item_upgrade_blacklisted_items`(
|
||||
`entry` int unsigned not null,
|
||||
PRIMARY KEY (`entry`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
@@ -0,0 +1,6 @@
|
||||
DROP TABLE IF EXISTS `mod_item_upgrade_blacklisted_stats_items`;
|
||||
CREATE TABLE `mod_item_upgrade_blacklisted_stats_items`(
|
||||
`stat_id` int unsigned not null,
|
||||
`entry` int unsigned not null,
|
||||
PRIMARY KEY (`stat_id`, `entry`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
@@ -0,0 +1,25 @@
|
||||
DROP TABLE IF EXISTS `mod_item_upgrade_stats`;
|
||||
CREATE TABLE `mod_item_upgrade_stats`(
|
||||
`id` int unsigned not null,
|
||||
`stat_type` tinyint unsigned NOT NULL,
|
||||
`stat_mod_pct` float not null,
|
||||
`stat_rank` smallint unsigned NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (1, 3, 5, 1);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (2, 4, 5, 1);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (3, 5, 5, 1);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (4, 6, 5, 1);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (5, 7, 5, 1);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (6, 32, 5, 1);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (7, 36, 5, 1);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (8, 45, 5, 1);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (9, 3, 10, 2);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (10, 4, 10, 2);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (11, 5, 10, 2);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (12, 6, 10, 2);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (13, 7, 10, 2);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (14, 32, 10, 2);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (15, 36, 10, 2);
|
||||
INSERT INTO `mod_item_upgrade_stats` (`id`, `stat_type`, `stat_mod_pct`, `stat_rank`) VALUES (16, 45, 10, 2);
|
||||
@@ -0,0 +1,34 @@
|
||||
DROP TABLE IF EXISTS `mod_item_upgrade_stats_req`;
|
||||
CREATE TABLE `mod_item_upgrade_stats_req`(
|
||||
`id` int unsigned not null AUTO_INCREMENT,
|
||||
`stat_id` int unsigned not null,
|
||||
`req_type` tinyint unsigned not null,
|
||||
`req_val1` float not null,
|
||||
`req_val2` float,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (1, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (2, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (3, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (4, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (5, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (6, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (7, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (8, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (9, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (10, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (11, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (12, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (13, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (14, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (15, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`) VALUES (16, 1, 10000000);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`, `req_val2`) VALUES (9, 4, 29434, 100);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`, `req_val2`) VALUES (10, 4, 29434, 100);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`, `req_val2`) VALUES (11, 4, 29434, 100);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`, `req_val2`) VALUES (12, 4, 29434, 100);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`, `req_val2`) VALUES (13, 4, 29434, 100);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`, `req_val2`) VALUES (14, 4, 29434, 100);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`, `req_val2`) VALUES (15, 4, 29434, 100);
|
||||
INSERT INTO `mod_item_upgrade_stats_req` (`stat_id`, `req_type`, `req_val1`, `req_val2`) VALUES (16, 4, 29434, 100);
|
||||
@@ -0,0 +1,10 @@
|
||||
DROP TABLE IF EXISTS `mod_item_upgrade_stats_req_override`;
|
||||
CREATE TABLE `mod_item_upgrade_stats_req_override` (
|
||||
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
`stat_id` int unsigned NOT NULL,
|
||||
`item_entry` int unsigned NOT NULL,
|
||||
`req_type` tinyint unsigned NOT NULL,
|
||||
`req_val1` float DEFAULT NULL,
|
||||
`req_val2` float DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
@@ -0,0 +1 @@
|
||||
CREATE UNIQUE INDEX `idx_stat` ON `mod_item_upgrade_stats` (`stat_type`, `stat_mod_pct`);
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE `mod_item_upgrade_stats_req` MODIFY `req_val1` FLOAT;
|
||||
@@ -0,0 +1,10 @@
|
||||
SET @Entry = 200003;
|
||||
SET @Name = "Master";
|
||||
SET @Subname = "Item Upgrades";
|
||||
|
||||
DELETE FROM `creature_template_model` WHERE `CreatureID` = @Entry;
|
||||
DELETE FROM `creature_template` WHERE `entry` = @Entry;
|
||||
|
||||
INSERT INTO `creature_template` (`entry`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `scale`, `rank`, `dmgschool`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `AIName`, `MovementType`, `HoverHeight`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`) VALUES
|
||||
(@Entry, @Name, @Subname, null, 0, 80, 80, 2, 35, 1, 1, 0, 0, 2000, 0, 1, 2147483648, 7, 138936390, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 'npc_item_upgrade');
|
||||
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (@Entry, 0, 19646, 1, 1, 0);
|
||||
@@ -0,0 +1,4 @@
|
||||
DELETE FROM `command` WHERE `name`='item_upgrade reload';
|
||||
INSERT INTO `command`(`name`, `security`, `help`) VALUES ('item_upgrade reload', 3, 'Syntax: .item_upgrade reload
|
||||
Reloads all necessary data for the Item Upgrades module.');
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
DELETE FROM `command` WHERE `name`='item_upgrade lock';
|
||||
INSERT INTO `command`(`name`, `security`, `help`) VALUES ('item_upgrade lock', 3, 'Syntax: .item_upgrade lock
|
||||
Locks the Item Upgrade NPC for safe database edit. Players won''t be able to use the NPC anymore, the lock will be released when using .item_upgrade reload command');
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
DELETE FROM `command` WHERE `name`='item_upgrade list';
|
||||
INSERT INTO `command`(`name`, `security`, `help`) VALUES ('item_upgrade list', 0, 'Syntax: .item_upgrade list
|
||||
Lists player''s upgraded items, only searches through equipped items.');
|
||||
|
||||
Reference in New Issue
Block a user