LazyScriptActions»Lazy Script Actions

Lazy Script Actions

List of known Spells/Actions

A specific spell rank can be directed at a particular unit using the syntax:
action(rankXX)@<UnitId>

The <UnitId> can be any valid UnitId sequence as described in http://www.wowwiki.com/UnitId. For example, @player, @pet, @target, @targettarget. Note that the rank of the spell must always appear before the '@' symbol.

Actions in green do not trigger the global cooldown. LazyScript is able to perform multiple of these actions on a single line provided that the line has at most one action that triggers the global cooldown.

Class Specific Actions

DruidHunterMage
PaladinPriestRogue
ShamanWarlockWarrior

General Actions

Full NameShort Name
AggressivepetAggressive
Berserkingberserking
Blood FurybloodFury
Cannibalizecannibalize
DefensivepetDefensive
Escape ArtistescapeArtist
Find HerbsfindHerbs
Find MineralsfindMinerals
Find TreasurefindTreasure
FollowpetFollow
PassivepetPassive
Perceptionperception
Shadowmeldshadowmeld
Shoot Bowbow
Shoot Crossbowcrossbow
Shoot Gungun
StaypetStay
StoneformstoneForm
Throwthrow
War StompwarStomp
Will of the Forsakenforsaken

Special Actions

Full NameShort Name
Assist PetassistPet
Assistassist
Auto ShotautoShot
Auto Target/AttackautoAttack
Clear HistoryclearHistory
Clear TargetclearTarget
Dismountdismount
Pet AttackpetAttack
Pet StoppetStop
Pingping
Stop AllstopAll
Stop Auto ShotstopShot
Stop Auto-AttackstopAttack
Stop CastingstopCasting
Stop WandstopWand
Stopstop
Target LasttargetLast
Target Nearest FriendtargetNearestFriend
Target NearesttargetNearest
Wandwand

Actions that take parameters

Use an action:
action=<action/macro name>

Use an action that does not trigger the global cooldown:
freeAction=<action/macro name>

Use a pet action:
petAction=<action>

Use an item in your equipment or inventory:
use=<itemid/item name>

Use an item only if it is equipped:
useEquipped=<itemid/item name>

Use an item in your equipment or inventory that does not trigger the global cooldown:
useFreeItem=<itemid/item name>

Use an item that does not trigger the global cooldown only if it is equipped:
useFreeEquippedItem=<itemid/item name>

Apply an item weapon buff:
apply{MainHand,OffHand}Buff=<itemid/item name>

Equip a weapon in your main hand:
equipMainHand=<itemid/item name>

Equip a weapon in your off hand:
equipOffHand=<itemid/item name>

Echo the message to your chat:
echo=<message>

Say the message in the specified channel:
sayIn{Emote, Guild, Minion, Party, Raid, RAID_WARNING, Say, Yell}=<message>

Whisper the message to the specified player or unitId:
whisperTo{playerName, <UnitId>}=<message>

Cancel the specified buff:
cancelBuff=<buff>

Cancel the specified buff by title:
cancelBuffTitle=<buffTitle>

Set the specified form as the default:
setForm=<form name>

Target a specific unit:
targetUnit=<UnitId>

Cast a spell on a specific unit:
spellTargetUnit=<UnitId>

Target a player/creature by their exact name:
targetByName=<exact name>

Perform emote (See http://www.wowwiki.com/API_TYPE_Emotes_Token):
doEmote=<emoteToken>

Play sound (See http://www.wowwiki.com/API_PlaySound):
playSound=<soundName>

Meta-Actions

Include the contents of the specified form:
includeForm=<form name>

Note: This does not accept criteria. It must appear on a line by itself. You cannot include a form in itself, nor should you include a form which includes another form which includes the first (e.g. form A includes form B includes form A == BAD).

Call the specified form:
callForm=<form name>

This will try to find a usable action in the specified form, if the criteria on the callForm action are satisfied.