PDA

Просмотр полной версии : Add reference support for grouped loot tables.


newsbot
05.01.2024, 18:16
Автор: cyberium

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 ***39;groupId***39; in the ***39;*_loot_template***39; 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, ***39;Stoneform Shoulders***39;),(35040, 13983, 0, 1, 1 , 1, 0, ***39;Gravestone War Axe***39;),(35040, 14024, 0, 1, 1 , 1, 0, ***39;Frightalon***39;),(35040, 16734, 0, 1, 1 , 1, 0, ***39;Boots of Valor***39;),(35040, 60294, 0, 1, -60294, 1, 0, ***39;NPC LOOT (Green World Drop) - (Item Levels: 59-63) - (NPC Levels: 60) - VANILLA NPC ONLY***39;);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.

Подробнее... (https://github.com/cmangos/mangos-wotlk/commit/b337f6f5998100090e151fa1db43a7330edf44b3)