Wikia

WoWWiki

Changes: API CursorHasItem

Edit

Back to page

(Updated to match the API boilerplate.)
m
 
Line 7: Line 7:
   
 
== Arguments ==
 
== Arguments ==
:none
+
:nil
 
   
 
== Returns ==
 
== Returns ==
 
:; hasItem : [[Boolean]] - Whether the cursor is holding an item.
 
:; hasItem : [[Boolean]] - Whether the cursor is holding an item.
  +
  +
== Note ==
  +
This function returns nil if the item on the cursor is a merchant item (e.g. an item that was not picked up via [[API_PickupContainerItem|PickupContainerItem]]).

Latest revision as of 08:53, February 14, 2008

WoW API < CursorHasItem


Returns 1 if the cursor currently holds an item, nil otherwise.

hasItem = CursorHasItem()


Arguments Edit

nil

Returns Edit

hasItem 
Boolean - Whether the cursor is holding an item.

Note Edit

This function returns nil if the item on the cursor is a merchant item (e.g. an item that was not picked up via PickupContainerItem).

Around Wikia's network

Random Wiki