Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 private void bAddGhostHotspot_Click(object sender, EventArgs e)
 {
     if (EngineManager.CurrentEngineType != Engines.Engines.ProfileCreation)
     {
         return;
     }
     EngineManager.EngineAs <ProfileCreator>().AddGWP();
 }
Ejemplo n.º 3
0
 private void bClearGhostHotspots_Click(object sender, EventArgs e)
 {
     if (EngineManager.CurrentEngineType != Engines.Engines.ProfileCreation)
     {
         return;
     }
     EngineManager.EngineAs <ProfileCreator>().ClearGhostWaypoints();
 }
Ejemplo n.º 4
0
 private void btn_AddVendorWaypoint_Click(object sender, EventArgs e)
 {
     if (EngineManager.CurrentEngineType != Engines.Engines.ProfileCreation)
     {
         return;
     }
     EngineManager.EngineAs <ProfileCreator>().AddVendorWaypoint();
 }
Ejemplo n.º 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);
                    }
                }
            }
        }