public override void OnEnter(Mobile m)
{
var virtue = Virtue.FirstOrDefault(x => x.Area.Contains(m.Location));
var list = JollyRogerData.GetList(m);
//if (list != null && list.Shrine != null)
//{
var s = list.Shrine.FirstOrDefault(x => x.Shrine == virtue.Shrine);
//if (s != null && s.MasterDeath >= 3)
//{
//if (!list.Cloak && list.Shrine.Count == 8 && !list.Shrine.Any(x => x.MasterDeath < 3))
//{
var item = new CloakOfTheVirtuous();
//if (m.Backpack == null || !m.Backpack.TryDropItem(m, item, false))
//{
// m.SendLocalizedMessage(1152337,item.ToString()); // A reward of ~1_ITEM~ will be delivered to you once you free up room in your backpack.
// item.Delete();
//}
//else
//{
m.PrivateOverheadMessage(MessageType.Regular, 0x47E,1159339, m.NetState); // Thous hast proven thou walks the path of Virtue!
JollyRogerData.SetCloak(m, true);
m.SendLocalizedMessage(1152339,item.ToString()); // A reward of ~1_ITEM~ has been placed in your backpack.
m.PlaySound(0x419);
//}
//}
//else
//{
// m.PrivateOverheadMessage(MessageType.Regular, 0x47E, false, string.Format("*Thou are truly {0}...*", virtue.Title), m.NetState);
// m.FixedParticles(0x376A, 1, 72, 0x13B5, EffectLayer.Waist);
// m.PlaySound(0x1F2);
//}
//}
//else
//{
// m.PrivateOverheadMessage(MessageType.Regular, 0x47E, false, string.Format("*Thou are not truly {0}...*", virtue.Title), m.NetState);
//}
//}
//else
//{
// m.PrivateOverheadMessage(MessageType.Regular, 0x47E, false, string.Format("*Thou are not truly {0}...*", virtue.Title), m.NetState);
//}
}