fix(DB/Gameobject): Secret Safe loot (#2738)

- Fix wrong groupid and loot chances
- refactor: Use more logical ID

Co-authored-by: Barbz <BarbzYHOOL@users.noreply.github.com>
This commit is contained in:
Kitzunu 2020-03-16 21:30:34 +01:00 committed by GitHub
parent f1e21f2ca5
commit 4cf3a792f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);