I am trying to script it so the True Britannians faction will not let you stay in it if you are a murderer.
In Faction.cs I started this by testing this code and it works fine (also plan on adding it to OnDeath ect). What I can not seem to figure out is how to make it refer to a specific faction. Any help would be great!!
would like to add it into
if ( mob.kills >=5 && ?? )
In Faction.cs I started this by testing this code and it works fine (also plan on adding it to OnDeath ect). What I can not seem to figure out is how to make it refer to a specific faction. Any help would be great!!
Code:
private static void EventSink_Login(LoginEventArgs e)
{
Mobile mob = e.Mobile;
// Remove murderers
PlayerState pl = PlayerState.Find((Mobile)mob);
if ( mob.Kills >= 5)
pl.Faction.RemoveMember(mob);
// Remove murderers
CheckLeaveTimer(mob);
}
would like to add it into
if ( mob.kills >=5 && ?? )