WoW:API RollOnLoot: Difference between revisions

m
Move page script moved page API RollOnLoot to WoW:API RollOnLoot without leaving a redirect
m (Remove singatures made using ~ in main namespace)
m (Move page script moved page API RollOnLoot to WoW:API RollOnLoot without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
<center>'''RollOnLoot'''</center>


  RollOnLoot(RollID{,roll});
  RollOnLoot(RollID{,roll});
Line 15: Line 14:
:(Optional)
:(Optional)
:;roll : Number/nil - Is the roll a pass on the item or a real roll? send <tt>nil</tt> to pass on the item, send <tt>1</tt> to roll.
:;roll : Number/nil - Is the roll a pass on the item or a real roll? send <tt>nil</tt> to pass on the item, send <tt>1</tt> to roll.
:Note: Blizzard uses 0 to pass, 1 to Need an item and 2 to Greed an item.
:Note: Blizzard uses 0 to pass, 1 to Need an item, 2 to Greed an item, and 3 to Disenchant an item.


----
----
Line 36: Line 35:
     DEFAULT_CHAT_FRAME:AddMessage("You passed on the item with id: " .. Rollid );
     DEFAULT_CHAT_FRAME:AddMessage("You passed on the item with id: " .. Rollid );
   end
   end
   Pre_WoW_Rollonloot(id, roll);
   Pre_WoW_Rollonloot(Rollid, roll);
  end
  end


Line 42: Line 41:


: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.
: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.
----
-Documentation by
Anonymous user