Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:World of Warcraft API
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Cursor === :{{id|API|AutoEquipCursorItem}}() - Causes the equipment on the cursor to be equipped. :{{id|API|ClearCursor}}() - Clears whatever item the cursor is dragging from the cursor. (added 1.12) :{{id|API|CursorCanGoInSlot}}([[inventorySlotId|invSlot]]) - Return true if the item currently held by the cursor can go into the given inventory (equipment) slot. :{{id|API|CursorHasItem}}() - Returns true if the cursor currently holds an item. :{{id|API|CursorHasMoney}}() - true/false :{{id|API|CursorHasSpell}}() - true/false :{{id|API|DeleteCursorItem}}() - Destroys the item on the cursor. :{{id|API|DropCursorMoney}}() - Drops the amount of money held by the cursor. :{{id|API|DropItemOnUnit}}("[[unitId|unit]]") - Drops an item from the cursor onto a unit. :{{id|API|EquipCursorItem}}([[inventorySlotId|invSlot]]) :{{id|API|GetCursorInfo}}() - Returns information about what the cursor is holding. :{{id|API|GetCursorMoney}}() - Returns the amount of money held by the cursor. :{{id|API|GetCursorPosition}}() - Returns the cursor's position on the screen. :{{id|API|HideRepairCursor}}() :{{id|API|InRepairMode}}() - Returns true if your cursor is in repair mode :NOCOMBAT {{id|API|PickupAction}}(slot) - Drags an action out of the specified quickbar slot and holds it on the cursor. :{{id|API|PickupBagFromSlot}}(slot) - Picks up the bag from the specified slot, placing it in the cursor. If an item is already picked up, this places the item into the specified slot, swapping the items if needed. :{{id|API|PickupContainerItem}}([[bagId|bagID]],slot) :{{id|API|PickupInventoryItem}}([[inventorySlotId|invSlot]]) - "Picks up" an item from the player's worn inventory. :NOCOMBAT {{id|API|PickupItem}}(itemId or "[[itemString]]" or "itemName" or "[[itemLink]]") :{{id|API|PickupMacro}}("macroName" or index) - Adds the specified macro to the Cursor. :{{id|API|PickupMerchantItem}}(index) - Places the item on the cursor. If the cursor already has an item, the item in the cursor will be sold. :NOCOMBAT {{id|API|PickupPetAction}}(slot) - Drags an action from the specified pet action bar slot into the cursor. :{{id|API|PickupPlayerMoney}} - Picks up an amount of money from the player. :NOCOMBAT {{id|API|PickupSpell}}("spellName" | spellID, "bookType") - Adds the specified spell to the Cursor. :{{id|API|PickupStablePet}}(index) :{{id|API|PickupTradeMoney}}(amount) :{{id|API|PlaceAction}}(slot) - Drops an action from the cursor into the specified quickbar slot. :{{id|API|PutItemInBackpack}}() - attempts to place item in backpack (bag slot 0). :{{id|API|PutItemInBag}}(inventoryId) - attempts to place item in a specific bag. :{{id|API|ResetCursor}}() :{{id|API|SetCursor}}("cursor" or nil) :{{id|API|ShowContainerSellCursor}}(index,slot) :{{id|API|ShowInspectCursor}}() - Change the cursor to the magnifying glass inventory inspection cursor :{{id|API|ShowInventorySellCursor}}() :{{id|API|ShowMerchantSellCursor}}(index) - Changes the cursor to the merchant sell cursor. :{{id|API|ShowRepairCursor}}() :{{id|API|SplitContainerItem}}(bagID,slot,amount) - Picks up part of a stack.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)