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 )
Arguments
number itemId
The ID of the item to add.
Valid numbers: integers from 0 to 4,294,967,295.
number minCount
Minimum count of the item.
Valid numbers: integers from 0 to 255.
number maxCount
Maximum count of the item.
Valid numbers: integers from 0 to 255.
number chance
Chance for the item to drop (0-100).
Valid numbers: all decimal numbers.
number lootMode
Loot 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.
Returns
Nothing.