TrinityCore/TrinityCore — Issue #3801: [Item] Loot in box/chest/bag
Author: Loginisalreadytaken
Created: 2011-11-02 17:09:37+00:00
State: open

Many/most/all containers seem to contain items randomly from all item groups in the database rather than one from each item type. This may even apply to fishing in general (or it's just that I always get the quest item WITH a fish on the same hook).

For example:
- A container can hold items A, B, C or D all having a drop rate of 25%.
- The way it is: There's a 25% chance that each item will be in the chest (resulting in a chest containing 1, 2, 3, 4 or none of the items).
- How it should be: 100% chance that one, and only one, of those items is in the chest.

The Large Solid Chest should therefore contain 1 potion type item and 1 food & drink type item and 1 metal & stone and so on.. it should never be empty. Of course, the potion should always be there since the percentage sum of all potions is 100 - if all percentages of a certain item type only add up to 50, it's 50% chance to get one of those items.

A few containers that malfunction:
http://old.wowhead.com/object=74448
http://old.wowhead.com/item=21133
http://old.wowhead.com/item=20393
http://old.wowhead.com/item=21228

Version: 3.3.5a (12340)
Core revision: Trinity Core e5c0be0a29e1+
Database revision: TDB 335.11.43