DB/Quests: Init ProvidedItemCount for quests using StartItem

(cherry picked from commit 0c809efd86)
This commit is contained in:
Meji
2024-05-22 20:58:37 +02:00
committed by Ovahlord
parent c99fb5df4d
commit f9b82b2222

View File

@@ -0,0 +1,4 @@
INSERT INTO `quest_template_addon` (`ID`, `ProvidedItemCount`)
(SELECT qt.`ID`, 1 FROM `quest_template` qt
LEFT JOIN `quest_template_addon` qta ON qta.`ID` = qt.`ID`
WHERE qt.`StartItem`!=0 AND qta.`ProvidedItemCount` IS NULL);