Yo guys!Im trying to get all stuff with level requirement based on numer of attributes.The code to do that on equip is this:
Im looking to start at Basearmor.cs without results.
Anyone can advice me any example to call number of attributes?Thank you!
C#:
public override bool OnEquip(Mobile from)
{
XMLPlayerLevelAtt weap1 = (XMLPlayerLevelAtt)XmlAttach.FindAttachment(from, typeof(XMLPlayerLevelAtt));
if (weap1 != null && weap1.Levell >= 100 && from is PlayerMobile)
{
return true;
}
else
{
if (from is PlayerMobile)
{
from.SendMessage( "You do not meet the level requirement for this Armor." );
return false;
}
}
return true;
}
Im looking to start at Basearmor.cs without results.
Anyone can advice me any example to call number of attributes?Thank you!