Ejemplo n.º 1
0
 public void Initialize()
 {
     isRunning = true;
     WarriorHelperSettings.Load();
     WarriorHelperSettings.CurrentSetting.Save();
     if (WarriorHelperSettings.CurrentSetting.useSM)
     {
         wManager.Events.FightEvents.OnFightStart += FightEventsOnOnFightStart;
         wManager.Events.FightEvents.OnFightLoop  += FightEventsOnOnFightLoop;
     }
     Start();
 }
Ejemplo n.º 2
0
 public static bool Load()
 {
     try
     {
         if (File.Exists(AdviserFilePathAndName("WarriorHelperSettings", ObjectManager.Me.Name + "." + Usefuls.RealmName)))
         {
             CurrentSetting =
                 Load <WarriorHelperSettings>(AdviserFilePathAndName("WarriorHelperSettings",
                                                                     ObjectManager.Me.Name + "." + Usefuls.RealmName));
             return(true);
         }
         CurrentSetting = new WarriorHelperSettings()
         {
             twoHand      = "Vicious Gladiator's Decapitator",
             oneHand      = "Vicious Gladiator's Hacker",
             shield       = "Vicious Gladiator's Shield Wall",
             dualWield    = "First Weapon",
             dualWield2   = "Secondary Weapon",
             useWM        = true,
             useSM        = true,
             pullStance   = 1,
             usualStance  = 1,
             healthStance = new List <int>()
             {
                 35, 2
             },
             conditionalStance = new List <int>()
             {
                 2, 3
             }
         };
     }
     catch (Exception e)
     {
         Logging.WriteError("WarriorHelperSettings > Load(): " + e);
     }
     return(false);
 }
Ejemplo n.º 3
0
 public void Settings()
 {
     WarriorHelperSettings.Load();
     WarriorHelperSettings.CurrentSetting.ToForm();
     WarriorHelperSettings.CurrentSetting.Save();
 }