Goal: User defines A and B with a path. Archebuddy performs all movement
Outline:
public bool LoadDataBase(string dbPath) Loads the pre-defined path
public GpsPoint GetNearestPoint(string pointName) Finds closest Point
If GetNearestPoint == A; Start at the A location
Then Gps.Move(B);
Set as Singlepoint Link Makes it so it only runs A-B and not B-A
Once Gps Location == B;
useskilland wait("recall");
Where I am stuck:
Does(Gps point) need to be defined as the point we want to go?
Outline:
public bool LoadDataBase(string dbPath) Loads the pre-defined path
public GpsPoint GetNearestPoint(string pointName) Finds closest Point
If GetNearestPoint == A; Start at the A location
Then Gps.Move(B);
Set as Singlepoint Link Makes it so it only runs A-B and not B-A
Once Gps Location == B;
useskilland wait("recall");
Code:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
namespace DefaultNameSpace{
public class DefaultClass : Core
{
public static string GetPluginAuthor()
{
return "GPS Move";
}
public static string GetPluginVersion()
{
return "1.0.0.0";
}
public static string GetPluginDescription()
{
return "GPS moves A--->B";
}
//Call on plugin start
public void PluginRun()
{
gps = new Gps(this); //this - your main class, Core inheritor
gps.LoadDataBase(Application.StartupPath + "\\plugins\\someplugin\\path.db3"); //Enter the Path Location of your Path
gps.onGpsPreMove += gpsPreMove;
}
public void gpsPreMove(GpsPoint point)
{
//We can do some checks here, for example check if any mobs want to kill us.
}
//Call on plugin stop
public void PluginStop()
{
}
}
}
Where I am stuck:
Code:
public void gpsPreMove(GpsPoint point)
{
//We can do some checks here, for example check if any mobs want to kill us.
}
Does(Gps point) need to be defined as the point we want to go?