Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reference support for grouped loot tables.
Now, grouped reference_loot_template entries can also reference other reference loot lists. This enhancement may simplifies certain redundant loot tables. Grouped loot refers to items where the 'groupId' in the '*_loot_template' is greater than 0. INSERT INTO `reference_loot_template`(`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`, `comments`) VALUES (35040, 13955, 0, 1, 1 , 1, 0, 'Stoneform Shoulders'), (35040, 13983, 0, 1, 1 , 1, 0, 'Gravestone War Axe'), (35040, 14024, 0, 1, 1 , 1, 0, 'Frightalon'), (35040, 16734, 0, 1, 1 , 1, 0, 'Boots of Valor'), (35040, 60294, 0, 1, -60294, 1, 0, 'NPC LOOT (Green World Drop) - (Item Levels: 59-63) - (NPC Levels: 60) - VANILLA NPC ONLY'); For example, the provided SQL INSERT INTO statement demonstrates a reference_loot_template entry (entry: 35040) with several items. This entry can be referenced in any loot table, and the outcome will be as follows: - Only one item from the list will be chosen. - The last line, which is a reference, will be treated with the same chance as any other item (considered an equally chanced group). - The rules for referenced items with entry 60294 can be customized, resulting in one or multiple items.
- Loading branch information