Method Loot:AddItem [-] [+]
Adds an item to the Loot with the specified parameters.
If an item with the same ID already exists and its count is less than 255, the count will be increased instead of adding a new entry.
Synopsis
Loot:AddItem( itemId, minCount, maxCount, chance, lootMode )
Loot:AddItem( itemId, minCount, maxCount, chance, lootMode, needsQuest )
Loot:AddItem( itemId, minCount, maxCount, chance, lootMode, needsQuest, allowStacking )
Arguments
number itemIdThe ID of the item to add.
Valid numbers: integers from 0 to 4,294,967,295.
number minCountMinimum count of the item.
Valid numbers: integers from 0 to 255.
number maxCountMaximum count of the item.
Valid numbers: integers from 0 to 255.
number chanceChance for the item to drop (0-100).
Valid numbers: all decimal numbers.
number lootModeLoot mode for the item.
Valid numbers: integers from 0 to 65,535.
boolean needsQuest (false)If
true, the item requires a quest to be looted.
boolean allowStacking (true)If
true, allow items to stack in the loot window.
Returns
Nothing.