private bool GoAgro(GameRolePlayCharacterInformations infoCharacter) { if (!sadikCheckbox1.Checked) { return(false); } long num = Math.Abs((long)(infoCharacter.AlignmentInfos.CharacterPower - infoCharacter.ContextualId)); bool flag = ((sadikCheckbox1.Checked && (infoCharacter.Name != account.CharacterBaseInformations.Name)) && (num >= NUDLvlAgroMin.Value) && (num <= NUDLvlAgroMax.Value)); if (((LViewAgro.Items.Count > 0) && (infoCharacter.HumanoidInfo.Options[1] != null)) && flag) { HumanOptionAlliance alliance = infoCharacter.HumanoidInfo.Options[1] as HumanOptionAlliance; return(flag && ContainslistView(LViewAgro, alliance.AllianceInformations.AllianceName)); } return(flag); }
//public bool GoAnalyser(int id) //{ // return ((!this.SubAreaId.Contains<int>(id) && (this.account.Game.Map.Id != 0x24138)) && (this.account.Game.Map.Id != 0x23423)); //} private bool IsGoingToRun(GameRolePlayCharacterInformations infoCharacter) { if (!this.sadikCheckbox2.Checked) { return(false); } if (infoCharacter.humanoidInfo.options[1] == null) { return(false); } long num = Math.Abs((long)(infoCharacter.alignmentInfos.characterPower - infoCharacter.contextualId)); bool flag = ((this.sadikCheckbox2.Checked && (infoCharacter.name != this.account.CharacterBaseInformations.name)) && (num >= NUDLvlRunMin.Value) && (num <= NUDLvlRunMax.Value)); if (((this.LViewRun.Items.Count > 0) && (infoCharacter.humanoidInfo.options[1] != null)) && flag) { HumanOptionAlliance alliance = infoCharacter.humanoidInfo.options[1] as HumanOptionAlliance; return(flag && this.ContainslistView(this.LViewRun, alliance.allianceInformations.allianceName)); } return(flag); }