From 4cf3a792f73446696e738e9f5aecd3e1edfc6364 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Mon, 16 Mar 2020 21:30:34 +0100 Subject: [PATCH] fix(DB/Gameobject): Secret Safe loot (#2738) - Fix wrong groupid and loot chances - refactor: Use more logical ID Co-authored-by: Barbz --- .../pending_db_world/rev_1583690478008671900.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1583690478008671900.sql diff --git a/data/sql/updates/pending_db_world/rev_1583690478008671900.sql b/data/sql/updates/pending_db_world/rev_1583690478008671900.sql new file mode 100644 index 000000000..f86c6fc40 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1583690478008671900.sql @@ -0,0 +1,13 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1583690478008671900'); + +-- Set logic ID number +UPDATE `gameobject_template` SET `Data1` = '161495' WHERE `entry` = '161495'; + +-- Delete old entry and add new one with correct ID +DELETE FROM `gameobject_loot_template` WHERE `entry` IN (11104,161495); -- Secret Safe +INSERT INTO `gameobject_loot_template` (`entry`, `item`, `chance`, `questrequired`, `groupid`, `mincount`, `maxcount`) VALUES +(161495, 22205, 0, 0, 1, 1, 1), +(161495, 22255, 0, 0, 1, 1, 1), +(161495, 22256, 0, 0, 1, 1, 1), +(161495, 22254, 0, 0, 1, 1, 1), +(161495, 11309, 100, 1, 0, 1, 1);