Returns information about the contents of the cursor
See also Cursor functions.
Signature:
type,
data,
subType,
subData
=
GetCursorInfo()
Returns:
type
- Type of data attached to the cursor (string
)battlepet
companion
equipmentset
flyout
guildbankmoney
item
macro
merchant
money
petaction
spell
data
- Identifier for the data on the cursor; varies by type: (value
)battlepet
- Hexadecimal flag representation - unknown use.companion
- Index of the companion in the non-combat pet or mount list (number
)equipmentset
- Name of the equipment set (string
)guildbankmoney
- Amount of the money from the guild bank (in copper) (number
)item
- Numeric identifier for the item (number
,itemID
)macro
- Index of the macro in the macro listing (number
,macroID
)merchant
- Index of the item in the vendor's listings (number
)money
- Amount of the player's money (in copper) (number
)petaction
- is nilspell
- Index of the spell in the player's spellbook (number
,spellbookID
)
subType
- Secondary identifier for the data on the cursor; used only for certain types: (string
)companion
-"CRITTER"
or"MOUNT"
, indicating whether the returneddata
is an index in the non-combat pet or mount listitem
- A completehyperlink
for the itemspell
-"spell"
or"pet"
, indicating whether the returneddata
is an index in the player's or pet's spellbook
subData
- Secondary data based on subType: (value
)spell
- Spell ID.