From 3d3fd352673632c114536d2a339fcc467aacf545 Mon Sep 17 00:00:00 2001 From: acidmanifesto Date: Thu, 3 Feb 2022 14:28:17 -0500 Subject: [PATCH] fix (DB): Blacksmithing Plans Loot and Conditions (#10391) * fix (DB): Blacksmithing Plans Loot and Conditions Per discussed no valid udb or sniff exist for loot and item. Common sense approach to fill the item until further based on wowhead as research for both conditions and loot %. Conditional is items will only be available if player possess blacksmithing at a skill of 285 minimal. 4 loot items with % were provided by wowhead based on time stamps of comments. * Updated based on further feedback * Update rev_1643309943188748904.sql * Update rev_1643309943188748904.sql * Update rev_1643309943188748904.sql * corrections * Update rev_1643309943188748904.sql * Update rev_1643309943188748904.sql * make formate prettiester --- .../pending_db_world/rev_1643309943188748904.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1643309943188748904.sql diff --git a/data/sql/updates/pending_db_world/rev_1643309943188748904.sql b/data/sql/updates/pending_db_world/rev_1643309943188748904.sql new file mode 100644 index 000000000..c48063ba2 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1643309943188748904.sql @@ -0,0 +1,16 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1643309943188748904'); + +-- update current loot to 100% per wowhead +UPDATE `gameobject_loot_template` SET `Chance`=100 WHERE `Entry`=11524 AND `Item`=11614; +UPDATE `gameobject_loot_template` SET `Chance`=100 WHERE `Entry`=11525 AND `Item`=11615; +UPDATE `gameobject_loot_template` SET `Chance`=100 WHERE `Entry`=13721 AND `Item`=12827; +UPDATE `gameobject_loot_template` SET `Chance`=100 WHERE `Entry`=13722 AND `Item`=12830; + +-- delete and insert for rerun locking the loot to skill id requirement for loot +-- none currently exist in acdb +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=4 AND `SourceGroup`IN ( 11524, 11525, 13721, 13722); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(4, 13722, 12830, 0, 0, 7, 0, 164, 285, 0, 0, 0, 0, '', 'Blacksmithing Plans - Plans Coruption while having Black Smith skill 285'), +(4, 13721, 12827, 0, 0, 7, 0, 164, 285, 0, 0, 0, 0, '', 'Blacksmithing Plans - Plans Serenity while having Black Smith skill 285'), +(4, 11524, 11614, 0, 0, 7, 0, 164, 285, 0, 0, 0, 0, '', 'Blacksmithing Plans - Plans Dark Iron Mail while having Black Smith skill 285'), +(4, 11525, 11615, 0, 0, 7, 0, 164, 285, 0, 0, 0, 0, '', 'Blacksmithing Plans - Plans Dark Iron Shoulder while having Black Smith skill 285');