}
if(_armorSets.containsKey(chest))
{
_log.warning("Duplicate set for chest: " + chest);
}
_armorSets.put(chest, new L2ArmorSet(chest, legs, head, gloves, feet, skill, shield, shield_skill, enchant6skill));
int[] analog = ItemTable.getInstance().getArmorEx()[chest];
if(analog != null)
{
if(analog[ItemTable.AEX_SEALED_RARE_1] > 0)
{
_armorSets.put(analog[ItemTable.AEX_SEALED_RARE_1], new L2ArmorSet(analog[ItemTable.AEX_SEALED_RARE_1], legs, head, gloves, feet, skill, shield, shield_skill, enchant6skill));
}
}
else
{
for(int[] arr : ItemTable.getInstance().getArmorEx())
{
if(arr != null && arr[ItemTable.AEX_UNSEALED_1] == chest)
{
if(arr[ItemTable.AEX_UNSEALED_RARE_1] > 0)
{
_armorSets.put(arr[ItemTable.AEX_UNSEALED_RARE_1], new L2ArmorSet(arr[ItemTable.AEX_UNSEALED_RARE_1], legs, head, gloves, feet, skill, shield, shield_skill, enchant6skill));
}
break;
}
}
}