Wikia

WoWWiki

Changes: API LootSlot

Edit

Back to page

(egingell: Added "Details")
m (Updated after experimentation.)
 
Line 1: Line 1:
 
{{wowapi}}
 
{{wowapi}}
   
After a Bind on Pickup item has been looted via a LootButton, this function needs to be called to confirm that the player wants to loot the item.
+
This will attempt to loot the specified slot. If you must confirm that you want to loot the slot (BoP, loot rolls, etc), then a follow-up call to [[API ConfirmLootSlot|ConfirmLootSlot]] is needed.
   
 
LootSlot(slot)
 
LootSlot(slot)
Line 10: Line 10:
 
:(slot)
 
:(slot)
   
:;slot : number - the loot slot of a BoP loot item that is waiting for confirmation
+
:;slot : number - the loot slot.
   
 
=== Returns ===
 
=== Returns ===
Line 19: Line 19:
 
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
 
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
 
LootSlot(1)
 
LootSlot(1)
  +
if slot 1 contains an item that must be confirmed, then
  +
[[API ConfirmLootSlot|ConfirmLootSlot]](1)
  +
must be called after.
 
====Result====
 
====Result====
 
<!-- If it helps, include example results here, though they are not required-->
 
<!-- If it helps, include example results here, though they are not required-->
:If the player has already clicked on a LootButton object with loot index 1, and the item is "Bind on Pickup" and awaiting confirmation, then the item will be looted and placed in the player's bags.
+
:This function is called whenever a LootButton is clicked (or auto looted).
   
 
==Details==
 
==Details==
 
<!-- Details not appropriate for the main description can go here -->
 
<!-- Details not appropriate for the main description can go here -->
 
: This function does nothing, use [[API ConfirmLootSlot|ConfirmLootSlot]] instead. -- [[user:egingell|egingell]] 02:11 AM March 18 2007 (EST)
 
   
 
----
 
----

Latest revision as of 10:42, August 25, 2007

WoW API < LootSlot

This will attempt to loot the specified slot. If you must confirm that you want to loot the slot (BoP, loot rolls, etc), then a follow-up call to ConfirmLootSlot is needed.

LootSlot(slot)

Parameters Edit

Arguments Edit

(slot)
slot 
number - the loot slot.

Returns Edit

unknown

Example Edit

LootSlot(1)

if slot 1 contains an item that must be confirmed, then

ConfirmLootSlot(1)

must be called after.

ResultEdit

This function is called whenever a LootButton is clicked (or auto looted).

DetailsEdit


Around Wikia's network

Random Wiki