
ItemRack_Users = {
	["Prog of Illidan"] = {
		["Visible"] = "OFF",
		["MainScale"] = 1,
		["XPos"] = 400,
		["Sets"] = {
		},
		["Ignore"] = {
		},
		["Inv"] = {
		},
		["Events"] = {
		},
		["MainOrient"] = "HORIZONTAL",
		["Locked"] = "OFF",
		["YPos"] = 350,
		["Spaces"] = {
		},
		["Bar"] = {
		},
	},
}
ItemRack_Settings = {
	["Notify"] = "OFF",
	["EnableEvents"] = "OFF",
	["Minimap"] = {
	},
	["BigCooldown"] = "OFF",
	["Soulbound"] = "OFF",
	["NotifyThirty"] = "ON",
	["RotateMenu"] = "OFF",
	["AutoToggle"] = "OFF",
	["ShowEmpty"] = "ON",
	["ShowAllEvents"] = "OFF",
	["SquareMinimap"] = "OFF",
	["LargeFont"] = "OFF",
	["TooltipFollow"] = "OFF",
	["AllowHidden"] = "OFF",
	["SetLabels"] = "ON",
	["ShowTooltips"] = "ON",
	["RightClick"] = "OFF",
	["DisableToggle"] = "ON",
	["FlipMenu"] = "OFF",
	["TinyTooltip"] = "OFF",
	["FlipBar"] = "OFF",
	["ShowIcon"] = "ON",
	["CompactList"] = "OFF",
	["CooldownNumbers"] = "OFF",
	["MenuShift"] = "OFF",
	["Bindings"] = "OFF",
}
ItemRack_Events = {
	["Druid:Caster Form"] = {
		["script"] = "if not ItemRack_GetForm() and IR_FORM then EquipSet() IR_FORM=nil end --[[Equip a set when not in an animal form.]]",
		["trigger"] = "SPELLS_CHANGED",
		["delay"] = 0,
	},
	["Druid:Aquatic Form"] = {
		["script"] = "local form = ItemRack_GetForm()\
if FORM~=\"Forme aquatique\" and form==\"Forme aquatique\" then\
  EquipSet()\
  FORM = form\
end --[[Equip a set when in aquatic form.]]",
		["trigger"] = "SPELLS_CHANGED",
		["delay"] = 0,
	},
	["Druid:Moonkin Form"] = {
		["script"] = "local form = ItemRack_GetForm()\
if FORM~=\"Fome de sélénien\" and form==\"Fome de sélénien\" then\
  EquipSet()\
  FORM = form\
end --[[Equip a set when in moonkin form.]]",
		["trigger"] = "SPELLS_CHANGED",
		["delay"] = 0,
	},
	["events_version"] = 1.95,
	["Plaguelands"] = {
		["script"] = "local zone,in_p = GetRealZoneText(),0\
if zone==\"Maleterres de l'ouest\" or zone==\"Maleterres de l'est\" or zone==\"Scholomance\" or zone==\"Stratholme\" then\
  in_p = 1\
end\
if PLANDED~=1 and in_p==1 then\
    SaveSet()\
    EquipSet()\
elseif PLANDED==1 and in_p==0 then\
    LoadSet()\
end\
PLANDED = in_p\
--[[Equips set to be worn while in plaguelands.]]",
		["trigger"] = "ZONE_CHANGED_NEW_AREA",
		["delay"] = 1,
	},
	["About Town"] = {
		["script"] = "if IsResting() and not IR_TOWN then EquipSet() IR_TOWN=1 elseif IR_TOWN then LoadSet() IR_TOWN=nil end\
--[[Equips a set while in a city or inn.]]",
		["trigger"] = "PLAYER_UPDATE_RESTING",
		["delay"] = 0,
	},
	["Druid:Cat Form"] = {
		["script"] = "local form = ItemRack_GetForm()\
if FORM~=\"Forme de félin\" and form==\"Forme de félin\" then\
  EquipSet()\
  FORM = form\
end --[[Equip a set when in cat form.]]",
		["trigger"] = "SPELLS_CHANGED",
		["delay"] = 0,
	},
	["Low Mana"] = {
		["script"] = "local mana = UnitMana(\"player\") / UnitManaMax(\"player\")\
if mana < .5 and not IR_OOM then\
  SaveSet()\
  EquipSet()\
  IR_OOM = 1\
elseif IR_OOM and mana > .75 then\
  LoadSet()\
  IR_OOM = nil\
end\
--[[Equips a set when mana is below 50% and re-equips previous gear at 75% mana. Remember: You can't swap non-weapons in combat.]]",
		["trigger"] = "UNIT_MANA",
		["delay"] = 0.5,
	},
	["Rogue:Stealth"] = {
		["script"] = "local _,_,isActive = GetShapeshiftFormInfo(1)\
if isActive and not IR_FORM then\
  EquipSet() IR_FORM=1\
elseif not isActive and IR_FORM then\
  LoadSet() IR_FORM=nil\
end\
--[[Equips set to be worn while stealthed.]]",
		["trigger"] = "PLAYER_AURAS_CHANGED",
		["delay"] = 0,
	},
	["Mage:Evocation"] = {
		["script"] = "local evoc,i=0\
for i=1,16 do\
if UnitBuff(\"player\",i) == \"Interface\\\\Icons\\\\Spell_Nature_Purge\" then\
evoc=1 i=25\
end\
end\
if IR_EVOC~=1 and evoc==1 then\
  EquipSet()\
elseif IR_EVOC==1 and evoc==0 then\
  LoadSet()\
end\
IR_EVOC = evoc\
--[[Equips a set to wear while channeling Evocation.]]",
		["trigger"] = "SPELLCAST_STOP",
		["delay"] = 0.25,
	},
	["Warrior:Berserker"] = {
		["script"] = "local _,_,isActive = GetShapeshiftFormInfo(3) if isActive and IR_FORM~=\"Berserker\" then EquipSet() IR_FORM=\"Berserker\" end --[[Equips set to be worn in Berserker stance.]]",
		["trigger"] = "SPELLS_CHANGED",
		["delay"] = 0,
	},
	["Druid:Bear Form"] = {
		["script"] = "local form = ItemRack_GetForm()\
if FORM~=\"bear\" and (form==\"Forme d'ours redoutable\" or form==\"Forme d'ours\") then\
  EquipSet()\
  FORM = \"bear\"\
end --[[Equip a set when in bear form.]]",
		["trigger"] = "SPELLS_CHANGED",
		["delay"] = 0,
	},
	["Warrior:Battle"] = {
		["script"] = "local _,_,isActive = GetShapeshiftFormInfo(1) if isActive and IR_FORM~=\"Battle\" then EquipSet() IR_FORM=\"Battle\" end --[[Equips set to be worn in battle stance.]]",
		["trigger"] = "SPELLS_CHANGED",
		["delay"] = 0,
	},
	["Skinning"] = {
		["script"] = "if UnitIsDead(\"mouseover\") and GameTooltipTextLeft3:GetText()==UNIT_SKINNABLE then\
  local r,g,b = GameTooltipTextLeft3:GetTextColor()\
  if r>.9 and g<.2 and b<.2 and not IR_SKIN then\
    EquipSet() IR_SKIN=1\
  end\
elseif IR_SKIN then\
  LoadSet() IR_SKIN=nil\
end\
--[[Equips a set when you mouseover something that can be skinned but you have insufficient skill.]]\
",
		["trigger"] = "UPDATE_MOUSEOVER_UNIT",
		["delay"] = 0,
	},
	["Warrior:Overpower End"] = {
		["script"] = "--[[Equip a set five seconds after opponent dodged: your normal weapons. ]]\
if IR_OVERPOWER==1 then\
EquipSet()\
IR_OVERPOWER=nil\
end",
		["trigger"] = "CHAT_MSG_COMBAT_SELF_MISSES",
		["delay"] = 5,
	},
	["Priest:Spirit Tap End"] = {
		["script"] = "local i,found\
if IR_SPIRIT and not UnitAffectingCombat(\"player\") then\
for i=1,24 do\
found = found or UnitBuff(\"player\",i)==\"Interface\\\\Icons\\\\Spell_Shadow_Requiem\"\
end\
if not found then\
IR_SPIRIT = nil\
LoadSet()\
end\
end\
--[[Returns to normal gear when Spirit Tap ends. Associate the same spirit set as Spirit Tap Begin.]]",
		["trigger"] = "PLAYER_AURAS_CHANGED",
		["delay"] = 0.5,
	},
	["Insignia Used"] = {
		["script"] = "if arg1==\"Insignia of the Alliance\" or arg1==\"Insignia of the Horde\" then EquipSet() end --[[Equips a set when the Insignia of the Alliance/Horde has been used.]]",
		["trigger"] = "ITEMRACK_ITEMUSED",
		["delay"] = 0.5,
	},
	["Swimming"] = {
		["script"] = "local i,found\
for i=1,3 do\
  if getglobal(\"MirrorTimer\"..i):IsVisible() and getglobal(\"MirrorTimer\"..i..\"Text\"):GetText() == BREATH_LABEL then\
    found = 1\
  end\
end\
if found then\
  EquipSet()\
end\
--[[Equips a set when the breath gauge appears. NOTE: This will not re-equip gear when you leave water.  There's no reliable way to know when you leave water. Also note: Won't work with eCastingBar.]]",
		["trigger"] = "MIRROR_TIMER_START",
		["delay"] = 0,
	},
	["Warrior:Defensive"] = {
		["script"] = "local _,_,isActive = GetShapeshiftFormInfo(2) if isActive and IR_FORM~=\"Defensive\" then EquipSet() IR_FORM=\"Defensive\" end --[[Equips set to be worn in Defensive stance.]]",
		["trigger"] = "SPELLS_CHANGED",
		["delay"] = 0,
	},
	["Druid:Travel Form"] = {
		["script"] = "local form = ItemRack_GetForm()\
if FORM~=\"Forme de voyage\" and form==\"Forme de voyage\" then\
  EquipSet()\
  FORM = form\
end --[[Equip a set when in travel form.]]",
		["trigger"] = "SPELLS_CHANGED",
		["delay"] = 0,
	},
	["Mount"] = {
		["script"] = "local mount\
if UnitIsMounted then mount = UnitIsMounted(\"player\") else mount = ItemRack_PlayerMounted() end\
if not IR_MOUNT and mount then\
  EquipSet()\
elseif IR_MOUNT and not mount then\
  LoadSet()\
end\
IR_MOUNT=mount\
--[[Equips set to be worn while mounted.]]",
		["trigger"] = "PLAYER_AURAS_CHANGED",
		["delay"] = 0,
	},
	["Eating-Drinking"] = {
		["script"] = "local i,found,buff\
for i=1,16 do\
buff = UnitBuff(\"player\",i)\
if buff then\
found = found or buff==\"Interface\\\\Icons\\\\INV_Misc_Fork&Knife\" or string.find(buff,\"^Interface\\\\Icons\\\\INV_Drink\")\
end\
end\
if not IR_DRINK and found then\
EquipSet()\
elseif IR_DRINK and not found then\
LoadSet()\
end\
IR_DRINK = found\
--[[Equips a set while eating or drinking.]]",
		["trigger"] = "PLAYER_AURAS_CHANGED",
		["delay"] = 0,
	},
	["Insignia"] = {
		["script"] = "if arg1==\"Insignia of the Alliance\" or arg1==\"Insignia of the Horde\" then EquipSet() end --[[Equips a set when the Insignia of the Alliance/Horde finishes cooldown.]]",
		["trigger"] = "ITEMRACK_NOTIFY",
		["delay"] = 0,
	},
	["Priest:Spirit Tap Begin"] = {
		["script"] = "local i,found\
for i=1,24 do\
found = found or UnitBuff(\"player\",i)==\"Interface\\\\Icons\\\\Spell_Shadow_Requiem\"\
end\
if not IR_SPIRIT and found then\
IR_SPIRIT = 1\
SaveSet()\
EquipSet()\
end\
--[[Equips a set when you leave combat with Spirit Tap. Associate a set of spirit gear to this event.]]",
		["trigger"] = "PLAYER_REGEN_ENABLED",
		["delay"] = 0,
	},
	["Priest:Shadowform"] = {
		["script"] = "local f; for i=1,24 do\
  f = (UnitBuff(\"player\",i) == \"Interface\\\\Icons\\\\Spell_Shadow_Shadowform\") or f\
  i = f and 25 or i\
end\
if not IR_Shadowform and f then\
  EquipSet()\
elseif IR_Shadowform and not f then\
  LoadSet()\
end\
IR_Shadowform = f\
--[[Equips a set while under Shadowform]]",
		["trigger"] = "PLAYER_AURAS_CHANGED",
		["delay"] = 0,
	},
	["Warrior:Overpower Begin"] = {
		["script"] = "--[[Equip a set when the opponent dodges.  Associate a heavy-hitting 2h set with this event. ]]\
local _,_,i = GetShapeshiftFormInfo(1)\
if string.find(arg1 or \"\",\"^You.+dodge[sd]\") and i then\
EquipSet()\
IR_OVERPOWER=1\
end",
		["trigger"] = "CHAT_MSG_COMBAT_SELF_MISSES",
		["delay"] = 0,
	},
}
Rack_User = {
	["Prog of Illidan"] = {
		["Sets"] = {
			["Rack-CombatQueue"] = {
				[1] = {
				},
				[2] = {
				},
				[3] = {
				},
				[4] = {
				},
				[5] = {
				},
				[6] = {
				},
				[7] = {
				},
				[8] = {
				},
				[9] = {
				},
				[10] = {
				},
				[11] = {
				},
				[12] = {
				},
				[13] = {
				},
				[14] = {
				},
				[15] = {
				},
				[16] = {
				},
				[17] = {
				},
				[18] = {
				},
				[19] = {
				},
				[0] = {
				},
			},
		},
	},
}
