Esempio n. 1
0
 internal static void SetTrain(bool enable)
 {
     if (enable)
     {
         TrainEnabled = true;
     }
     else
     {
         TrainEnabled = false;
         Trainer = null;
     }
 }
Esempio n. 2
0
 internal static void Pulse()
 {
     if (Vendor == null)
     {
         GrindingEngine.Navigator.Stop();
         Vendor = GrindingEngine.CurrentProfile.NpcController.GetNearestRepair();
         GrindingEngine.Navigation.SetNewSpot(Vendor.Location);
         Logging.Write("Going to vendor at: " + Vendor.Name);
     }
     if (GrindingEngine.Navigation.SpotToHit != Vendor.Location)
     {
         GrindingEngine.Navigation.SetNewSpot(Vendor.Location);
     }
 }
Esempio n. 3
0
 internal static void SetToTown(bool enable)
 {
     if (enable)
     {
         ToTownEnabled = true;
         ToTownDoRepair = true;
         ToTownDoVendor = true;
         ToTownDoMail = LazySettings.ShouldMail;
     }
     else
     {
         ToTownEnabled = false;
         Vendor = null;
     }
 }
Esempio n. 4
0
 internal static void Pulse()
 {
     if (Trainer == null)
     {
         GrindingEngine.Navigator.Stop();
         Trainer = GrindingEngine.CurrentProfile.NpcController.GetTrainer(ObjectManager.MyPlayer.UnitClass);
         GrindingEngine.Navigation.SetNewSpot(Trainer.Location);
         Logging.Write("Going to train at: " + Trainer.Name);
     }
     else if (Trainer.Location.DistanceToSelf2D < 5)
     {
         Logging.Write("Train done, going back");
         GrindingEngine.Navigator.Stop();
         GrindingEngine.Navigation = new GrindingNavigation(GrindingEngine.CurrentProfile);
         GrindingBlackList.Blacklist(Trainer.Name, 300, false);
         SetTrain(false);
     }
     if (GrindingEngine.Navigation.SpotToHit != Trainer.Location)
     {
         Logging.Write("Set spot");
         GrindingEngine.Navigation.SetNewSpot(Trainer.Location);
     }
     GrindingEngine.Navigation.Pulse();
 }
Esempio n. 5
0
 public void AddNpc(VendorsEx npc)
 {
     Npc.Add(npc);
 }