MACRO castrandom

From Wowpedia
(Redirected from MACRO userandom)
Jump to: navigation, search

Casts one random spell or uses one random item from the list. The character will attempt to perform the chosen action until it is successful.

/castrandom [options] Spell, Item, Spell

You can also use /userandom.

Usage

This command accepts secure command options. The value associated with the first satisfied condition will be interpreted as described below, and an action will be performed at the condition target (or your current target, or the implied target if the condition did not specify an explicit target). If no conditions are satisfied, no action will be performed.

Arguments

This command accepts a comma-separated list of actions to perform, as understood by /cast:

spell name 
Name of the spell to cast
item name 
The name of the item to be used.
BagId slot 
The bag the item is in (0 is backpack, etc...), and the slot number containing the item, starting at 1; e.g. "0 1" would use the first item in your backpack.
invSlotID 
The slot on your character in which to use an item.

An action will be chosen from the comma-separated list uniformly at random. Until the chosen action is successful, repeated invocations of /castrandom with the same arguments will attempt to perform the previously-chosen action again. Once it succeeds, the next invocation will choose a new action to perform uniformly at random.

Examples

/castrandom Polymorph,Polymorph(Turtle),Polymorph(Serpent),Polymorph(Black Cat)
/castrandom Hearthstone,Astral Recall,Scroll of Recall

Patch changes

  • Wrath of the Lich King Patch 3.2.0 (2009-08-04): (Source) castrandom can no longer be used to create "use first ready spell" macros.