Please scroll down for the download button
and more file information.
File Description
Description : Crypt is a function library to ease the creation of macros for advanced functions. It doesnt have many features yet, still a work in progress.
Crypt.Cast(spellname) Example: Crypt.Cast("Demon Armor"); Will cast the highest rank of the spell you have always, no more updating your macros..
Crypt.PetCast(spellname) Example: Crypt.PetCast("Phase Shift"); Will cast pet spells.
Crypt.PetToggle(spellname) Example: Crypt.PetToggle("Phase Shift"); Will toggle your pets auto-cast features on/off.
Crypt.SelfCast() Example: Crypt.SelfCast(); Will cast the awaiting spell on yourself if you dont already have a target. (heal spells, bandages, etc..)
Crypt.UseItem(itemname) Example: Crypt.UseItem("Insignia of the Horde"); Will use items for your bag, and your what your character is wearing. (thanks braway)
Crypt.HasCooldown(name) Example: Crypt.HasCooldown("Insignia of the Horde"); This will return true if there is a cooldown for spells, bag items, inventory items, and pet spells. Will return false if no cooldown.
Crypt.InRange(spell) Example: Crypt.InRange("Polymorph"); This will return true if Polymorph is in range of the current target. A spell you are checking range for MUST be on your action bar somewhere.
Crypt.IsUsable(spell) Example: Crypt.IsUsable("Polymorph"); This will return true if Polymorph has enough mana, Also works for things like riposte. A spell you are checking isusable for MUST be on your action bar somewhere.
Crypt.CheckThenCast(spell) Example: Crypt.CheckThenCast("Polymorph"); This will check if you have enough mana, check to make sure there is no cooldown, and check if you are in ranage, then cast.
Still adding features, if anyone has any suggestions please feel free to post them. Changes : Version 1.7 -Update .toc to 1.8 patch
Version 1.6 -Updated toc to current patch -Removed onload onevet handlers
Version 1.5 -Fixed IsUsable (thanks Hairyogre and Dragonomega , and sorry about the stupid error).
Version 1.4 -Added Crypt.CheckThenCast (Thanks Delar) -Optimized Crypt.IsUsable -Optimized Crypt.InRange
Version 1.3 -Added Crypt.IsUsable
Version 1.2 -Added Crypt.InRange -Changed the names of most of the functions (old names will still work but will be phased out in a couple of versions, so UPDATE your macros etc..) -Changed Crypt.Self to Crypt.SelfCast -Changed Crypt.Toggle to Crypt.PetToggle -Changed Crypt.Item to Crypt.UseItem -Changed Crypt.IsCooldown to Crypt.HasCooldown
Version 1.1 -Added Crypt.Item (Thanks Braway) -Added Crypt.IsCooldown