[CommandProperty(AccessLevel.GameMaster)]
public string FactionDef { get { return "Minax"; } } // don't forget add this value to serialize/deserialize methods if will need add "set" value too.
Faction faction = Faction.Find(m);
if (faction == null || (faction != null && !faction.Definition.FriendlyName.Equals(FactionDef) )
m.SendMessage($"You should be in {FactionDef} faction to use this moongate");
else if ( m.Kills >= 5 )
{
m.SendLocalizedMessage( 1019004 );
}
.... etc
We use essential cookies to make this site work, and optional cookies to enhance your experience.