m
Merging cast and use since they are functionally identical.
m (Merging cast and use since they are functionally identical.) |
|||
| Line 4: | Line 4: | ||
Cast a random spell from the list | Cast a random spell from the list | ||
/cast options spellname; options spellname; ... | /cast options spellname; options spellname; ... | ||
/cast item | |||
/cast BagId slot | |||
/cast InvSlot | |||
== Aliases == | == Aliases == | ||
:cast | :cast | ||
:spell | :spell | ||
:use | |||
== Arguments == | == Arguments == | ||
:;options : List of options below, separated by commas, enclosed in [ ] | :;options : List of options below, separated by commas, enclosed in [ ] | ||
:;spellname : Name of the spell to cast | :;spellname : Name of the spell to cast | ||
:;item : The name of the item to be used. | |||
:;[[BagId]] : The bag the item is in (0 is backpack, etc...) | |||
:;slot : The slot number, starting at 1. | |||
:;[[InventorySlotId | InvSlot]] : The slot on your character in which to use an item. | |||
===Options=== | ===Options=== | ||
| Line 51: | Line 58: | ||
:player | :player | ||
:pet | :pet | ||
:none | :none - forces no target, even if auto-self casting is enabled. | ||
:focus | :focus | ||
:party# | :party# | ||
| Line 58: | Line 65: | ||
:raidpet# | :raidpet# | ||
:mouseover | :mouseover | ||
:npc - this means the target is an NPC | :npc - this means the target is an NPC. Note: "npc" is only valid if you are currently interacting with the NPC (e.g. the quest, flight path, merchant, gossip, or bank frame is open). | ||
;See also: [[UnitId]] | |||
== Examples == | == Examples == | ||
| Line 66: | Line 75: | ||
-- This will cast Flash Heal on you if you right click it, Flash Heal on the target if you left click it. | -- This will cast Flash Heal on you if you right click it, Flash Heal on the target if you left click it. | ||
/cast [button:2,target=player][help] Flash Heal; Flash Heal | /cast [button:2,target=player][help] Flash Heal; Flash Heal | ||