public static bool Load()
 {
     try
     {
         if (File.Exists(AdviserFilePathAndName("WholesomeTBCPaladin",
                                                ObjectManager.Me.Name + "." + Usefuls.RealmName)))
         {
             CurrentSetting = Load <ZEPaladinSettings>(
                 AdviserFilePathAndName("WholesomeTBCPaladin",
                                        ObjectManager.Me.Name + "." + Usefuls.RealmName));
             return(true);
         }
         CurrentSetting = new ZEPaladinSettings();
     }
     catch (Exception e)
     {
         Logging.WriteError("WholesomeTBCPaladin > Load(): " + e);
     }
     return(false);
 }
Beispiel #2
0
    public static void Initialize()
    {
        Main.Log("Initialized");
        ZEPaladinSettings.Load();
        _settings = ZEPaladinSettings.CurrentSetting;
        Talents.InitTalents(_settings.AssignTalents, _settings.UseDefaultTalents, _settings.TalentCodes);

        _manaSavePercent = _settings.ManaSaveLimitPercent;
        if (_manaSavePercent < 20)
        {
            _manaSavePercent = 20;
        }

        // Fight end
        FightEvents.OnFightEnd += (ulong guid) =>
        {
            _purifyTimer.Reset();
            _cleanseTimer.Reset();
        };

        Rotation();
    }
Beispiel #3
0
 public static void ShowConfiguration()
 {
     ZEPaladinSettings.Load();
     ZEPaladinSettings.CurrentSetting.ToForm();
     ZEPaladinSettings.CurrentSetting.Save();
 }