WoW:API GetNumLootItems: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetNumLootItems to API GetNumLootItems without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''GetNumLootItems''' ''-Documentation by Sn3b-''</center>
{{wowapi}}


Returns the number of items held by a dead mob (the item window must be opened).
Returns the slot number of the last item in the loot window (the item window must be opened).
 
Would return the number of items right when the window is opened. If, for instance, the first item is looted, the function would still return the same number as before. Looting the last item would make the function return one less than the original amount.


  GetNumLootItems();
  GetNumLootItems();
Line 23: Line 25:
;''Description''
;''Description''


: Returns the number of items held by a dead mob (the item window must be opened).
: Returns the slot number of the last item in the loot window (the item window must be opened). So it may be superior to the number of items remaining, if one or more items have already been taken.
 
----
{{Template:WoW API}}

Latest revision as of 04:46, 15 August 2023

WoW API < GetNumLootItems

Returns the slot number of the last item in the loot window (the item window must be opened).

Would return the number of items right when the window is opened. If, for instance, the first item is looted, the function would still return the same number as before. Looting the last item would make the function return one less than the original amount.

GetNumLootItems();

Arguments
none

Example
numLootItems = GetNumLootItems();

Returns
number

Description
Returns the slot number of the last item in the loot window (the item window must be opened). So it may be superior to the number of items remaining, if one or more items have already been taken.