Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API ConfirmLootRoll
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> Confirm your loot roll after one of the events [[Events/Loot|"CONFIRM_LOOT_ROLL"]] or [[Events/Loot|"CONFIRM_DISENCHANT_ROLL"]] has fired. <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> ConfirmLootRoll(RollID[ ,roll]) == Arguments == <!-- List each argument, together with its type --> ;RollID : Number - As passed by the event. (The number increases with every roll you have in a party) ;roll : Number - Type of roll: (also passed by the event) ::1 : Need roll ::2 : Greed roll ::3 : Disenchant roll == Example == <!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> local f = CreateFrame("Frame", "MyAddon") f:RegisterEvent("CONFIRM_LOOT_ROLL") f:SetScript("OnEvent",function(self,event,...) if event == "CONFIRM_LOOT_ROLL" then local RollID = select(1, ...) local roll = select(2, ...) ConfirmLootRoll( RollID, roll ) end end) <big>'''Result'''</big> <!-- If it helps, include example results here, though they are not required. You're allowed to cheat liberally since WoW isn't a command line language. --> Every Need or Greed roll will automatically get confirmed.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)