From 57ea9222800e3155c985a1ac5bcfa904db5eab8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Wed, 7 Dec 2022 12:44:25 -0700 Subject: [PATCH] Item Random Enchantment Corrections --- sql/world/base/item_changes.sql | 26 +- sql/world/base/item_enchantment_rates.sql | 472 ++++++++++++++++++++++ 2 files changed, 494 insertions(+), 4 deletions(-) create mode 100644 sql/world/base/item_enchantment_rates.sql diff --git a/sql/world/base/item_changes.sql b/sql/world/base/item_changes.sql index a45755d..7ac81f4 100644 --- a/sql/world/base/item_changes.sql +++ b/sql/world/base/item_changes.sql @@ -320,7 +320,7 @@ UPDATE `item_template` SET `BuyPrice` = 4651 WHERE entry=1214; UPDATE `item_template` SET `spellid_1` = 133, `spellcooldown_1` = 30000, `spellcategorycooldown_1` = 30000, `spellcategory_1` = 24 WHERE entry=1258; /* JYoo test item */ -UPDATE `item_template` SET `dmg_min1` = 1.0, `dmg_max1` = 1.0, `dmg_min2` = 3000.0, `dmg_max2` = 3000.0, `MaxDurability` = 20 WHERE entry=1259; +UPDATE `item_template` SET `dmg_min1` = 1.0, `dmg_max1` = 1.0, `dmg_min2` = 3000.0, `dmg_max2` = 3000.0, `MaxDurability` = 20, `RandomProperty` = 2191 WHERE entry=1259; /* Brain Hacker */ UPDATE `item_template` SET `BuyPrice` = 395323 WHERE entry=1263; @@ -2003,7 +2003,7 @@ UPDATE `item_template` SET `Quality` = 1, `armor` = 73, `BuyPrice` = 357, `SellP UPDATE `item_template` SET `BuyPrice` = 1498 WHERE entry=3473; /* Gemmed Copper Gauntlets */ -UPDATE `item_template` SET `stat_type1` = 0, `stat_value1` = 0 WHERE entry=3474; +UPDATE `item_template` SET `stat_type1` = 0, `stat_value1` = 0, `RandomProperty` = 749 WHERE entry=3474; /* Cloak of Flames */ UPDATE `item_template` SET `armor` = 50, `BuyPrice` = 130092, `SellPrice` = 26018 WHERE entry=3475; @@ -3580,6 +3580,9 @@ UPDATE `item_template` SET `DisenchantID` = 0 WHERE entry=5742; /* Prismstone Ring */ UPDATE `item_template` SET `DisenchantID` = 0 WHERE entry=5743; +/* Pale Skinner */ +UPDATE `item_template` SET `RandomProperty` = 0 WHERE entry=5744; + /* Centaur Longbow */ UPDATE `item_template` SET `BuyPrice` = 3046, `dmg_min1` = 9.0, `dmg_max1` = 18.0, `MaxDurability` = 40 WHERE entry=5748; @@ -4162,6 +4165,9 @@ UPDATE `item_template` SET `BuyPrice` = 6514, `SellPrice` = 1302 WHERE entry=657 /* Scouting Cloak */ UPDATE `item_template` SET `BuyPrice` = 2792, `SellPrice` = 558 WHERE entry=6585; +/* Viridian Band */ +UPDATE `item_template` SET `RandomProperty` = 3475 WHERE entry=6589; + /* Battleforge Armor */ UPDATE `item_template` SET `BuyPrice` = 12239, `SellPrice` = 2447 WHERE entry=6592; @@ -4586,7 +4592,7 @@ UPDATE `item_template` SET `BuyPrice` = 9293 WHERE entry=7107; UPDATE `item_template` SET `spellcooldown_1` = -1 WHERE entry=7108; /* Pioneer Buckler */ -UPDATE `item_template` SET `spellcooldown_1` = -1 WHERE entry=7109; +UPDATE `item_template` SET `spellcooldown_1` = -1, `RandomProperty` = 0 WHERE entry=7109; /* Silver-thread Armor */ UPDATE `item_template` SET `BuyPrice` = 10349, `SellPrice` = 2069 WHERE entry=7110; @@ -4801,6 +4807,12 @@ UPDATE `item_template` SET `spellcooldown_1` = -1 WHERE entry=7463; /* Knight's Crest */ UPDATE `item_template` SET `BuyPrice` = 33735, `spellcooldown_1` = -1 WHERE entry=7465; +/* Vermilion Band */ +UPDATE `item_template` SET `RandomProperty` = 3479 WHERE entry=7466; + +/* Vermilion Necklace */ +UPDATE `item_template` SET `RandomProperty` = 3507 WHERE entry=7467; + /* Regal Robe */ UPDATE `item_template` SET `BuyPrice` = 33815 WHERE entry=7468; @@ -4849,6 +4861,9 @@ UPDATE `item_template` SET `BuyPrice` = 47792, `spellcooldown_1` = -1 WHERE entr /* Field Plate Shield */ UPDATE `item_template` SET `BuyPrice` = 44412, `spellcooldown_1` = -1 WHERE entry=7496; +/* Ivory Band */ +UPDATE `item_template` SET `RandomProperty` = 3480 WHERE entry=7497; + /* Ley Orb */ UPDATE `item_template` SET `ItemLevel` = 10, `spellcooldown_1` = 1800000 WHERE entry=7508; @@ -4912,6 +4927,9 @@ UPDATE `item_template` SET `BuyPrice` = 23290 WHERE entry=7545; /* Onyx Ring */ UPDATE `item_template` SET `DisenchantID` = 0, `spellcooldown_1` = -1, `spellcategorycooldown_1` = -1 WHERE entry=7547; +/* Onyx Choker */ +UPDATE `item_template` SET `RandomProperty` = 3511 WHERE entry=7548; + /* Fairy's Embrace */ UPDATE `item_template` SET `spellcooldown_1` = -1 WHERE entry=7549; @@ -14222,7 +14240,7 @@ UPDATE `item_template` SET `BuyPrice` = 576, `SellPrice` = 115 WHERE entry=17922 UPDATE `item_template` SET `BuyPrice` = 160783, `SellPrice` = 32156 WHERE entry=17943; /* Ragnaros Core */ -UPDATE `item_template` SET `DisenchantID` = 49, `spelltrigger_1` = 0, `spellcooldown_1` = -1 WHERE entry=17982; +UPDATE `item_template` SET `DisenchantID` = 49, `spelltrigger_1` = 0, `spellcooldown_1` = -1, `RandomProperty` = 3474 WHERE entry=17982; /* Royal Seal of Alexis */ UPDATE `item_template` SET `DisenchantID` = 49 WHERE entry=18022; diff --git a/sql/world/base/item_enchantment_rates.sql b/sql/world/base/item_enchantment_rates.sql new file mode 100644 index 0000000..b773813 --- /dev/null +++ b/sql/world/base/item_enchantment_rates.sql @@ -0,0 +1,472 @@ +REPLACE INTO `item_enchantment_template` (`entry`, `ench`, `chance`) VALUES +(581, 15, 0.1001), +(581, 24, 0.1001), +(581, 49, 0.1001), +(581, 97, 0.1001), +(581, 584, 0.1001), +(581, 585, 0.1001), +(581, 586, 0.1001), +(581, 587, 0.1001), +(581, 669, 0.1001), +(581, 670, 0.1001), +(581, 671, 0.1001), +(581, 672, 0.1001), +(581, 673, 0.1001), +(581, 674, 0.1001), +(581, 675, 0.1001), +(581, 760, 0.1001), +(581, 839, 0.1001), +(581, 840, 0.1001), +(581, 841, 0.1001), +(581, 842, 0.1001), +(581, 924, 0.1001), +(581, 925, 0.1001), +(581, 926, 0.1001), +(581, 927, 0.1001), +(581, 1009, 0.1001), +(581, 1010, 0.1001), +(581, 1011, 0.1001), +(581, 1012, 0.1001), +(581, 1094, 0.1001), +(581, 1095, 0.1001), +(581, 1096, 0.1001), +(581, 1097, 0.1001), +(581, 1179, 0.1001), +(581, 1180, 0.1001), +(581, 1181, 0.1001), +(581, 1182, 0.1001), +(581, 1547, 0.1001), +(581, 1548, 0.1001), +(581, 1549, 0.1001), +(581, 1550, 0.1001), +(581, 2029, 0.1001), +(581, 2030, 0.1001), +(995, 212, 0.1001), +(995, 214, 0.1001), +(995, 216, 0.1001), +(995, 218, 0.1001), +(995, 267, 0.1001), +(995, 287, 0.1001), +(995, 383, 0.1001), +(995, 409, 0.1001), +(995, 608, 0.1001), +(995, 609, 0.1001), +(995, 610, 0.1001), +(995, 611, 0.1001), +(995, 694, 0.1001), +(995, 778, 0.1001), +(995, 779, 0.1001), +(995, 780, 0.1001), +(995, 781, 0.1001), +(995, 863, 0.1001), +(995, 864, 0.1001), +(995, 865, 0.1001), +(995, 866, 0.1001), +(995, 1033, 0.1001), +(995, 1034, 0.1001), +(995, 1035, 0.1001), +(995, 1036, 0.1001), +(995, 1203, 0.1001), +(995, 1204, 0.1001), +(995, 1205, 0.1001), +(995, 1206, 0.1001), +(995, 1320, 0.1001), +(995, 1321, 0.1001), +(995, 1366, 0.1001), +(995, 1367, 0.1001), +(995, 1412, 0.1001), +(995, 1413, 0.1001), +(995, 1458, 0.1001), +(995, 1459, 0.1001), +(995, 1504, 0.1001), +(995, 1505, 0.1001), +(995, 1613, 0.1001), +(995, 1614, 0.1001), +(995, 1812, 0.1001), +(995, 1813, 0.1001), +(995, 2002, 0.1001), +(995, 2003, 0.1001), +(995, 2040, 0.1001), +(995, 2041, 0.1001), +(2010, 1647, 0.66), +(2191, 65, 100.0), +(3310, 445, 0.1001), +(3310, 526, 0.1001), +(3310, 868, 0.1001), +(3310, 1037, 0.1001), +(3310, 1122, 0.1001), +(3310, 1206, 0.1001), +(3310, 1327, 0.1001), +(3310, 1328, 0.1001), +(3310, 1373, 0.1001), +(3310, 1374, 0.1001), +(3310, 1419, 0.1001), +(3310, 1420, 0.1001), +(3310, 1421, 0.1001), +(3310, 1465, 0.1001), +(3310, 1466, 0.1001), +(3310, 1511, 0.1001), +(3310, 1512, 0.1001), +(3310, 1513, 0.1001), +(3310, 1720, 0.1001), +(3310, 1814, 0.1001), +(3310, 1966, 0.1001), +(3474, 927, 1.6), +(3474, 928, 1.6), +(3474, 929, 1.6), +(3474, 930, 1.6), +(3474, 757, 1.6), +(3474, 758, 1.6), +(3474, 759, 1.6), +(3474, 760, 1.6), +(3474, 95, 1.6), +(3474, 113, 1.6), +(3474, 232, 1.6), +(3474, 233, 1.6), +(3474, 234, 1.6), +(3474, 238, 1.6), +(3474, 502, 1.6), +(3474, 503, 1.6), +(3474, 504, 1.6), +(3474, 505, 1.6), +(3474, 1748, 0.8), +(3474, 587, 1.6), +(3474, 588, 1.6), +(3474, 589, 1.6), +(3474, 590, 1.6), +(3474, 1449, 1.6), +(3474, 1450, 1.6), +(3474, 842, 1.6), +(3474, 843, 1.6), +(3474, 844, 1.6), +(3474, 845, 1.6), +(3474, 672, 1.6), +(3474, 673, 1.6), +(3474, 674, 1.6), +(3474, 675, 1.6), +(3474, 1403, 1.6), +(3474, 1404, 1.6), +(3474, 1311, 1.6), +(3474, 1312, 1.6), +(3474, 1097, 1.6), +(3474, 1098, 1.6), +(3474, 1099, 1.6), +(3474, 1100, 1.6), +(3474, 1357, 1.6), +(3474, 1358, 1.6), +(3474, 2070, 1.6), +(3474, 96, 1.6), +(3474, 114, 1.6), +(3474, 1182, 1.6), +(3474, 1183, 1.6), +(3474, 1184, 1.6), +(3474, 1185, 1.6), +(3474, 1012, 1.6), +(3474, 1013, 1.6), +(3474, 1014, 1.6), +(3474, 1015, 1.6), +(3474, 97, 1.6), +(3474, 115, 1.6), +(3474, 1495, 1.6), +(3474, 1496, 1.6), +(3474, 2105, 1.6), +(3474, 93, 1.6), +(3474, 111, 1.6), +(3474, 94, 1.6), +(3474, 112, 1.6), +(3475, 65, 100.0), +(3479, 65, 100.0), +(3480, 65, 100.0), +(3507, 65, 100.0), +(3511, 65, 100.0), +(5176, 22, 2.2022), +(5176, 26, 2.2022), +(5176, 28, 2.2022), +(5176, 94, 2.2022), +(5176, 95, 2.2022), +(5176, 96, 2.2022), +(5176, 228, 2.2022), +(5176, 256, 2.2022), +(5176, 501, 2.2022), +(5176, 502, 2.2022), +(5176, 584, 2.2022), +(5176, 585, 2.2022), +(5176, 586, 2.2022), +(5176, 587, 2.2022), +(5176, 673, 2.2022), +(5176, 675, 2.2022), +(5176, 754, 2.2022), +(5176, 755, 2.2022), +(5176, 756, 2.2022), +(5176, 757, 2.2022), +(5176, 839, 2.2022), +(5176, 840, 2.2022), +(5176, 841, 2.2022), +(5176, 842, 2.2022), +(5176, 928, 2.2022), +(5176, 1009, 2.2022), +(5176, 1010, 2.2022), +(5176, 1011, 2.2022), +(5176, 1012, 2.2022), +(5176, 1013, 2.2022), +(5176, 1014, 2.2022), +(5176, 1015, 2.2022), +(5176, 1094, 2.2022), +(5176, 1095, 2.2022), +(5176, 1096, 2.2022), +(5176, 1097, 2.2022), +(5176, 1179, 2.2022), +(5176, 1180, 2.2022), +(5176, 1181, 2.2022), +(5176, 1182, 2.2022), +(5176, 1399, 2.2022), +(5176, 1447, 2.2022), +(5176, 1549, 2.2022), +(5176, 1550, 2.2022), +(5176, 1800, 2.2022), +(5176, 1801, 2.2022), +(5176, 1802, 2.2022), +(5176, 1838, 2.2022), +(5176, 1839, 2.2022), +(5176, 1840, 2.2022), +(5176, 1876, 2.2022), +(5176, 1877, 2.2022), +(5176, 1878, 2.2022), +(5176, 1952, 2.2022), +(5176, 1953, 2.2022), +(5176, 1954, 2.2022), +(5176, 1991, 2.2022), +(5176, 1992, 2.2022), +(5176, 1993, 2.2022), +(5176, 2028, 2.2022), +(5176, 2029, 2.2022), +(5176, 2030, 2.2022), +(5176, 2070, 2.2022), +(5176, 2071, 2.2022), +(5176, 2072, 2.2022), +(5176, 2105, 2.2022), +(5176, 2106, 2.2022), +(5176, 2107, 2.2022), +(5176, 2108, 2.2022), +(5176, 2109, 2.2022), +(5216, 29, 0.1001), +(5216, 91, 0.1001), +(5216, 93, 0.1001), +(5216, 96, 0.1001), +(5216, 97, 0.1001), +(5216, 111, 0.1001), +(5216, 112, 0.1001), +(5216, 114, 0.1001), +(5216, 115, 0.1001), +(5216, 207, 0.1001), +(5216, 587, 0.1001), +(5216, 588, 0.1001), +(5216, 589, 0.1001), +(5216, 590, 0.1001), +(5216, 672, 0.1001), +(5216, 673, 0.1001), +(5216, 674, 0.1001), +(5216, 675, 0.1001), +(5216, 930, 0.1001), +(5216, 1015, 0.1001), +(5216, 1182, 0.1001), +(5216, 1183, 0.1001), +(5216, 1184, 0.1001), +(5216, 1185, 0.1001), +(5216, 1403, 0.1001), +(5216, 1449, 0.1001), +(5216, 1495, 0.1001), +(5216, 1550, 0.1001), +(5216, 1551, 0.1001), +(5216, 1552, 0.1001), +(5216, 1708, 0.1001), +(5216, 1802, 0.1001), +(5216, 1803, 0.1001), +(5216, 1840, 0.1001), +(5216, 1841, 0.1001), +(5216, 1842, 0.1001), +(5216, 1878, 0.1001), +(5216, 1879, 0.1001), +(5216, 1880, 0.1001), +(5216, 1954, 0.1001), +(5216, 1955, 0.1001), +(5216, 1956, 0.1001), +(5216, 1992, 0.1001), +(5216, 1993, 0.1001), +(5216, 1994, 0.1001), +(5216, 2030, 0.1001), +(5216, 2031, 0.1001), +(5216, 2032, 0.1001), +(5216, 2070, 0.1001), +(5216, 2071, 0.1001), +(5216, 2072, 0.1001), +(5216, 2110, 0.1001), +(5216, 2111, 0.1001), +(5216, 2112, 0.1001), +(5216, 2113, 0.1001), +(5253, 2029, 2.46), +(5253, 2028, 2.46), +(5253, 1952, 1.7), +(5253, 1951, 1.7), +(5253, 1876, 1.8), +(5253, 1875, 1.8), +(5253, 1838, 0.65), +(5253, 1837, 0.65), +(5253, 1800, 1.9), +(5253, 1799, 1.9), +(5262, 2029, 2.1), +(5262, 2028, 2.1), +(5262, 1953, 1.75), +(5262, 1952, 1.75), +(5262, 1877, 1.95), +(5262, 1876, 1.95), +(5262, 1839, 0.6), +(5262, 1838, 0.6), +(5262, 1801, 2.05), +(5262, 1800, 2.05), +(5269, 184, 0.1001), +(5269, 185, 0.1001), +(5269, 189, 0.1001), +(5269, 247, 0.1001), +(5269, 250, 0.1001), +(5269, 251, 0.1001), +(5269, 252, 0.1001), +(5269, 596, 0.1001), +(5269, 597, 0.1001), +(5269, 598, 0.1001), +(5269, 599, 0.1001), +(5269, 681, 0.1001), +(5269, 682, 0.1001), +(5269, 683, 0.1001), +(5269, 684, 0.1001), +(5269, 767, 0.1001), +(5269, 853, 0.1001), +(5269, 937, 0.1001), +(5269, 1021, 0.1001), +(5269, 1022, 0.1001), +(5269, 1023, 0.1001), +(5269, 1024, 0.1001), +(5269, 1108, 0.1001), +(5269, 1191, 0.1001), +(5269, 1192, 0.1001), +(5269, 1193, 0.1001), +(5269, 1194, 0.1001), +(5269, 1361, 0.1001), +(5269, 1453, 0.1001), +(5269, 1554, 0.1001), +(5269, 1555, 0.1001), +(5269, 1556, 0.1001), +(5269, 1557, 0.1001), +(5269, 1806, 0.1001), +(5269, 1807, 0.1001), +(5269, 1808, 0.1001), +(5269, 1809, 0.1001), +(5269, 1844, 0.1001), +(5269, 1845, 0.1001), +(5269, 1846, 0.1001), +(5269, 1847, 0.1001), +(5269, 1996, 0.1001), +(5269, 1997, 0.1001), +(5269, 1998, 0.1001), +(5269, 1999, 0.1001), +(5269, 2034, 0.1001), +(5269, 2035, 0.1001), +(5269, 2036, 0.1001), +(5269, 2037, 0.1001), +(5280, 1841, 0.735), +(5280, 1878, 1.89), +(5280, 1879, 1.89), +(5280, 1802, 1.89), +(5280, 1803, 1.89), +(5280, 1840, 0.735), +(5280, 2031, 2.31), +(5280, 2030, 2.31), +(5280, 1955, 1.4), +(5280, 1954, 1.4), +(5289, 2031, 2.345), +(5289, 2032, 2.345), +(5289, 1879, 1.855), +(5289, 1880, 1.855), +(5289, 1955, 1.54), +(5289, 1956, 1.54), +(5289, 1842, 0.75), +(5289, 1841, 0.75), +(5289, 1804, 1.855), +(5289, 1803, 1.855), +(5298, 2033, 2.96), +(5298, 2032, 2.96), +(5298, 1957, 1.44), +(5298, 1956, 1.44), +(5298, 1881, 2.16), +(5298, 1880, 2.16), +(5298, 1843, 1.0), +(5298, 1842, 1.0), +(5298, 1805, 1.72), +(5298, 1804, 1.72), +(5307, 2034, 3.44), +(5307, 2033, 3.44), +(5307, 1958, 1.76), +(5307, 1957, 1.76), +(5307, 1882, 2.16), +(5307, 1881, 2.16), +(5307, 1844, 1.0), +(5307, 1843, 1.0), +(5307, 1806, 1.64), +(5307, 1805, 1.64), +(5859, 168, 0.1001), +(5859, 180, 0.1001), +(5859, 185, 0.1001), +(5859, 247, 0.1001), +(5859, 250, 0.1001), +(5859, 251, 0.1001), +(5859, 252, 0.1001), +(5859, 511, 0.1001), +(5859, 512, 0.1001), +(5859, 513, 0.1001), +(5859, 514, 0.1001), +(5859, 596, 0.1001), +(5859, 597, 0.1001), +(5859, 598, 0.1001), +(5859, 599, 0.1001), +(5859, 681, 0.1001), +(5859, 682, 0.1001), +(5859, 683, 0.1001), +(5859, 684, 0.1001), +(5859, 766, 0.1001), +(5859, 767, 0.1001), +(5859, 768, 0.1001), +(5859, 769, 0.1001), +(5859, 851, 0.1001), +(5859, 852, 0.1001), +(5859, 853, 0.1001), +(5859, 854, 0.1001), +(5859, 1021, 0.1001), +(5859, 1022, 0.1001), +(5859, 1023, 0.1001), +(5859, 1024, 0.1001), +(5859, 1712, 0.1001), +(7441, 65, 100.0), +(8652, 1515, 1.0), +(8652, 1514, 1.0), +(8652, 1469, 1.0), +(8652, 1468, 1.0), +(8652, 1423, 1.0), +(8652, 1422, 1.0), +(8652, 1377, 1.0), +(8652, 1376, 1.0), +(8652, 1331, 1.0), +(8652, 1330, 1.0), +(8652, 2051, 1.0), +(8652, 2050, 1.0), +(8652, 1823, 1.0), +(8652, 1822, 1.0), +(8652, 1975, 1.0), +(8652, 1974, 1.0), +(8652, 1899, 1.0), +(8652, 1898, 1.0), +(8652, 2013, 1.0), +(8652, 2012, 1.0), +(8652, 1861, 1.0), +(8652, 1860, 1.0), +(8652, 2090, 1.0), +(8652, 2126, 1.0);