Trying to make it so reds get insta guard killed unless they are factions i know it has todo with this line

Code:
public virtual bool AllowReds{ get{ return Core.AOS; } }

I already added using Server.Factions; to the top just cannot firgure out a way to get the check into that line. any suggestion?

thanks in advance.
 
This is untested code so take it lightly. It's meant to point you in the right direction if it doesn't work but you can try adding something like this to the OnEnter method of GuardedRegion.cs to instant kill Reds that aren't in factions.

Code:
if (m is PlayerMobile && m.Kills >= 5)
{
    Factions.PlayerState mobileState = Factions.PlayerState.Find(m);

    if (mobileState == null)
    {
        this.MakeGuard(m);
    }
}


Edit: Forgive me if I'm wrong because I haven't done factions since it was first released on OSI many many years ago but aren't some of the faction stones in guarded areas like the the Brit one? How would a red sign up if he was instant killed for not being in a faction?
 
Last edited:
From what I can remember all but 1 sign up stone are in towns (guarded region) the one which is not I believe was far outside of yew around the crypts.
 
Back