Lore archive · Warcraft Wiki, 2023 dump
API RollOnLoot
Last wiki revision 2022-07-22
Rolls or passes on loot. RollOnLoot(rollID[, rollType])
- rollID: - The number increases with every roll you have in a party. Maximum value is unknown.
- rollType: - 0 or nil to pass, 1 to roll Need, 2 to roll Greed, or 3 to roll Disenchant.
The code snippet below will display a message when you roll or pass on a roll. This could easily be changed to record how many times you roll on loot. hooksecurefunc("RollOnLoot", function(rollID, rollType) if (rollType and rollType > 0) then DEFAULT_CHAT_FRAME:AddMessage("You rolled on the item with id: " .. rollID ); else DEFAULT_CHAT_FRAME:AddMessage("You passed on the item with id: " .. rollID ); end end)
Source
https://warcraft.wiki.gg/wiki/API_RollOnLoot · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.