WoWInterface SVN ItemRack

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 53 to Rev 54
    Reverse comparison

Rev 53 → Rev 54

trunk/ItemRack/ItemRack.lua
3,7 → 3,7
local disable_delayed_swaps = nil -- temporary. change nil to 1 to stop attempting to delay set swaps while casting
local _
 
ItemRack.Version = "3.07"
ItemRack.Version = "3.08"
 
ItemRackUser = {
Sets = {}, -- user's sets
91,9 → 91,9
[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 },
[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 },
[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 },
[19] = { name="TabardSlot", real="Tabard", INVTYPE_TABARD=1 },
}
 
trunk/ItemRack/ItemRackEvents.lua
94,7 → 94,7
["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 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.]]",
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.]]",
},
 
["After Cast"] = {
396,7 → 396,7
if events[eventName].Anymount then
buff = IsMounted() and not UnitOnTaxi("player")
else
buff = UnitAura("player",events[eventName].Buff)
buff = AuraUtil.FindAuraByName(events[eventName].Buff,"player")
end
setname = ItemRackUser.Events.Set[eventName]
isSetEquipped = ItemRack.IsSetEquipped(setname)
trunk/ItemRack/ItemRackQueue.lua
26,7 → 26,7
 
local buff = GetItemSpell(baseID)
if buff then
if UnitAura("player",buff) or (start>0 and (duration-timeLeft)>30 and timeLeft<1) then
if AuraUtil.FindAuraByName(buff,"player") or (start>0 and (duration-timeLeft)>30 and timeLeft<1) then
icon:SetDesaturated(1)
return
end
trunk/ItemRack/change log.txt
1,3 → 1,8
__ 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