Fandom

WoWWiki

API CursorHasItem

104,631pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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).

Also on Fandom

Random Wiki