/
["Buffs Gained"] = { |
Type = "Script", |
Trigger = "UNIT_AURA", |
Script = "if arg1==\"player\" then\n IRScriptBuffs = IRScriptBuffs or {}\n local buffs = IRScriptBuffs\n for i in pairs(buffs) do\n if not AuraUtil.FindAuraByName(i,\"player\") then\n buffs[i] = nil\n end\n end\n local i,b = 1,1\n while b do\n b = AuraUtil.FindAuraByName(i,\"player\")\n if b and not buffs[b] then\n ItemRack.Print(\"Gained buff: \"..b)\n buffs[b] = 1\n end\n i = i+1\n end\nend\n--[[For script demonstration purposes. Doesn't equip anything just informs when a buff is gained.]]", |
Script = "if arg1==\"player\" then\n IRScriptBuffs = IRScriptBuffs or {}\n local buffs = IRScriptBuffs\n for i in pairs(buffs) do\n if not UnitAura(\"player\",i) then\n buffs[i] = nil\n end\n end\n local i,b = 1,1\n while b do\n b = UnitBuff(\"player\",i)\n if b and not buffs[b] then\n ItemRack.Print(\"Gained buff: \"..b)\n buffs[b] = 1\n end\n i = i+1\n end\nend\n--[[For script demonstration purposes. Doesn't equip anything just informs when a buff is gained.]]", |
}, |
["After Cast"] = { |
if events[eventName].Anymount then |
buff = IsMounted() and not UnitOnTaxi("player") |
else |
buff = AuraUtil.FindAuraByName(events[eventName].Buff,"player") |
buff = UnitAura("player",events[eventName].Buff) |
end |
setname = ItemRackUser.Events.Set[eventName] |
isSetEquipped = ItemRack.IsSetEquipped(setname) |
local buff = GetItemSpell(baseID) |
if buff then |
if AuraUtil.FindAuraByName(buff,"player") or (start>0 and (duration-timeLeft)>30 and timeLeft<1) then |
if UnitAura("player",buff) or (start>0 and (duration-timeLeft)>30 and timeLeft<1) then |
icon:SetDesaturated(1) |
return |
end |
__ New in 3.08 - By Kharthus __ |
* Bug fixes for event and queue errors |
* Fixed error due to UIPanelButtonTemplate2 |
__ New in 3.07 - By Kharthus __ |
* TOC update for 8.2 patch |
local disable_delayed_swaps = nil -- temporary. change nil to 1 to stop attempting to delay set swaps while casting |
local _ |
ItemRack.Version = "3.08" |
ItemRack.Version = "3.07" |
ItemRackUser = { |
Sets = {}, -- user's sets |
[13] = { name="Trinket0Slot", real="Top Trinket", INVTYPE_TRINKET=1, other=14 }, |
[14] = { name="Trinket1Slot", real="Bottom Trinket", INVTYPE_TRINKET=1, other=13 }, |
[15] = { name="BackSlot", real="Cloak", INVTYPE_CLOAK=1 }, |
[16] = { name="MainHandSlot", real="Main hand", INVTYPE_WEAPONMAINHAND=1, INVTYPE_2HWEAPON=1, INVTYPE_WEAPON=1, INVTYPE_RANGED=1, INVTYPE_RANGEDRIGHT=1, other=17, swappable=true }, |
[17] = { name="SecondaryHandSlot", real="Off hand", INVTYPE_WEAPON=1, INVTYPE_WEAPONOFFHAND=1, INVTYPE_SHIELD=1, INVTYPE_HOLDABLE=1, other=16, swappable=true }, |
[18] = { name="RangedSlot", real="Ranged", INVTYPE_THROWN=1, INVTYPE_RELIC=1, swappable=true }, |
[16] = { name="MainHandSlot", real="Main hand", INVTYPE_WEAPONMAINHAND=1, INVTYPE_2HWEAPON=1, INVTYPE_WEAPON=1, INVTYPE_RANGED=1, INVTYPE_RANGEDRIGHT=1, other=17 }, |
[17] = { name="SecondaryHandSlot", real="Off hand", INVTYPE_WEAPON=1, INVTYPE_WEAPONOFFHAND=1, INVTYPE_SHIELD=1, INVTYPE_HOLDABLE=1, other=16 }, |
[18] = { name="RangedSlot", real="Ranged", INVTYPE_THROWN=1, INVTYPE_RELIC=1 }, |
[19] = { name="TabardSlot", real="Tabard", INVTYPE_TABARD=1 }, |
} |