Example #1
0
 /// <summary>
 ///     Clear the list of items we should restock
 /// </summary>
 private void bClearRestockItems_Click(object sender, EventArgs e)
 {
     if (EngineManager.CurrentEngineType != Engines.Engines.ProfileCreation)
     {
         return;
     }
     EngineManager.EngineAs <ProfileCreator>().ClearRestockItems();
 }
Example #2
0
 private void bAddGhostHotspot_Click(object sender, EventArgs e)
 {
     if (EngineManager.CurrentEngineType != Engines.Engines.ProfileCreation)
     {
         return;
     }
     EngineManager.EngineAs <ProfileCreator>().AddGWP();
 }
Example #3
0
 private void bClearGhostHotspots_Click(object sender, EventArgs e)
 {
     if (EngineManager.CurrentEngineType != Engines.Engines.ProfileCreation)
     {
         return;
     }
     EngineManager.EngineAs <ProfileCreator>().ClearGhostWaypoints();
 }
Example #4
0
 private void btn_AddVendorWaypoint_Click(object sender, EventArgs e)
 {
     if (EngineManager.CurrentEngineType != Engines.Engines.ProfileCreation)
     {
         return;
     }
     EngineManager.EngineAs <ProfileCreator>().AddVendorWaypoint();
 }
Example #5
0
        private void BgWorker_Recording_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            var player = ObjectManager.Player;

            Helpers.XYZ lastRecordedWaypoint = null;
            while (_shouldRecord && !bgWorker_Recording.CancellationPending)
            {
                if (lastRecordedWaypoint == null)
                {
                    lastRecordedWaypoint = player.Position;
                }

                Helpers.XYZ currentLocation = player.Position;
                if (Helpers.Calc.Distance3D(lastRecordedWaypoint, currentLocation) > 30)
                {
                    if (EngineManager.CurrentEngineType != Engines.Engines.ProfileCreation)
                    {
                        return;
                    }

                    lastRecordedWaypoint = currentLocation;

                    if (_recordingGrind)
                    {
                        EngineManager.EngineAs <ProfileCreator>().AddWaypoint();
                        Helpers.Logger.Append("Added grind waypoint " + currentLocation.X + " :: " + currentLocation.Y + " :: " + currentLocation.Z);
                    }
                    if (_recordingGhost)
                    {
                        EngineManager.EngineAs <ProfileCreator>().AddGhostWaypoint();
                        Helpers.Logger.Append("Added ghost waypoint " + currentLocation.X + " :: " + currentLocation.Y + " :: " + currentLocation.Z);
                    }

                    if (_recordingVendor)
                    {
                        EngineManager.EngineAs <ProfileCreator>().AddVendorWaypoint();
                        Helpers.Logger.Append("Added vendor waypoint " + currentLocation.X + " :: " + currentLocation.Y + " :: " + currentLocation.Z);
                    }
                }
            }
        }