Пример #1
0
    public static void Initialize()
    {
        Main.Log("Initialized");
        ZEWarriorSettings.Load();
        _settings = ZEWarriorSettings.CurrentSetting;
        Talents.InitTalents(_settings.AssignTalents, _settings.UseDefaultTalents, _settings.TalentCodes);

        FightEvents.OnFightEnd += (ulong guid) =>
        {
            _fightingACaster = false;
            _meleeTimer.Reset();
            _pullMeleeTimer.Reset();
            _pullFromAfar = false;
            Main.SetRange(Main.DefaultMeleeRange);
        };

        Rotation();
    }
 public static bool Load()
 {
     try
     {
         if (File.Exists(AdviserFilePathAndName("WholesomeTBCWarrior",
                                                ObjectManager.Me.Name + "." + Usefuls.RealmName)))
         {
             CurrentSetting = Load <ZEWarriorSettings>(
                 AdviserFilePathAndName("WholesomeTBCWarrior",
                                        ObjectManager.Me.Name + "." + Usefuls.RealmName));
             return(true);
         }
         CurrentSetting = new ZEWarriorSettings();
     }
     catch (Exception e)
     {
         Logging.WriteError("WholesomeTBCWarrior > Load(): " + e);
     }
     return(false);
 }
Пример #3
0
 public static void ShowConfiguration()
 {
     ZEWarriorSettings.Load();
     ZEWarriorSettings.CurrentSetting.ToForm();
     ZEWarriorSettings.CurrentSetting.Save();
 }