Frosttiger
Member
So I created accustom guard using isenemy to attack crinmal players well it works and all he will attack the crinmal player but he also turns grey for attacking me. how can I fix these??
public override bool IsEnemy( Mobile m )
{
if (m is BaseGuardian || m is BaseVendor || m is PlayerVendor || m is TownCrier)
{
return false;
}
if (m is PlayerMobile && !m.Criminal)
{
return false;
}
if (m is BaseCreature)
{
BaseCreature c = (BaseCreature)m;
if (c.Controlled || c.FightMode == FightMode.Aggressor || c.FightMode == FightMode.None)
{
return false;
}
}
return base.IsEnemy(m);
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.