Thread: CastSpellByID
View Single Post
11-02-12, 12:48 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Also to note, Even though Spell IDs don't work, Item IDs do. There are also other ways to use items. You can refer to the inventory slot they're equipped in for equipped items and you can also refer to Bag & Slot IDs.

Examples:
Code:
#Use Hearthstone by ItemID 6948
/use 6948
Code:
#Activate Trinket 1 by InventoryID 13
/use 13
Code:
#Activate item in Bag 0, Slot 1
#Bag IDs range 0-4 increasing right-to-left (Bag 0 is Backpack)
#Slot IDs start at index 1, increasing left-to-right, then top-to-bottom (Slot 1 is upper left slot)
/use 0 1
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote