ZFunctions

Includes many useful script commands that help in many different areas of the game.

ITEMS AND EQUIPMENT

ZEquip("item", [slot], ["item"], [slot], etc.)
Equips items found in your backpack. Broad names will equip all items that contain that text (Cryptstalker for all pieces of that armor). You can also specify which slot to equip the item (2nd Ring = 12, 2nd Trinket = 14, Off-Hand = 17).
/script ZEquip("Cryptstalker", "Nerub", "Ring of Qiraji Fury", 12, "Band of Reanimation")

ZMouseOverLinks()
Allows you to mouseover item links in the default Chat Frame to display their tooltips
/script ZMouseOverLinks() -- toggle the feature

BUFFS AND DEBUFFS

ZCancelBuff("buff1", "buff2", "buff3")
Cancels all buffs you specify.
/script ZCancelBuff("Aspect of the Cheetah", "Aspect of the Pack")

ZHasBuff("buff", ["unit"])
Determines if the unit has the specified buff. The default unit is "player".
/script if ZHasBuff("Frenzy", "target") then SendChatMessage("TRANQ THE BOSS!", "YELL") end

ZHasDebuff("spell", ["unit"])
Determines if the unit has the specified debuff. The default unit is "target".
/script if ZHasDebuff("Detonate", "player") then SendChatMessage("I'm going to blow!", "YELL") end

ZListBuffs()
Print out a list of all of the target's buffs.
/script ZListBuffs()

ZListDebuffs()
Print out a list of all of the target's debuffs.
/script ZListDebuffs()