What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

GPS move A--B Public Sourced

gamer4156

Member
Joined
Jan 14, 2014
Messages
51
Reaction score
1
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");


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?
 
0:05:35: c:\Users\Prime\Desktop\A\Plugins\aa.cs(30,9) : error CS0103: The name 'gps' does not exist in the current context
10:05:35: c:\Users\Prime\Desktop\A\Plugins\aa.cs(31,9) : error CS0103: The name 'gps' does not exist in the current context
10:05:35: c:\Users\Prime\Desktop\A\Plugins\aa.cs(32,9) : error CS0103: The name 'gps' does not exist in the current context
 
0:05:35: c:\Users\Prime\Desktop\A\Plugins\aa.cs(30,9) : error CS0103: The name 'gps' does not exist in the current context
10:05:35: c:\Users\Prime\Desktop\A\Plugins\aa.cs(31,9) : error CS0103: The name 'gps' does not exist in the current context
10:05:35: c:\Users\Prime\Desktop\A\Plugins\aa.cs(32,9) : error CS0103: The name 'gps' does not exist in the current context

You're joking right?
 
private Gps gps;
public void CanthisB()
{
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + "\\plugins\\TTR\\Path.db3");
gps.GpsMove("A");

Should run you to point A on your .db3
 
so gamer this right here pretty much

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)
{
private Gps gps;
public void CanthisB()
{
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + "\\plugins\\TTR\\Path.db3");
gps.GpsMove("A");
}
//Call on plugin stop
public void PluginStop()
{
}
}
}
 
so gamer this right here pretty much

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)
{
private Gps gps;
public void CanthisB()
{
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + "\\plugins\\TTR\\Path.db3");
gps.GpsMove("A");
}
//Call on plugin stop
public void PluginStop()
{
}
}
}


how do i generate DB3 file?
 
Since my traderun bot is now released you can actually take a look at the source
 
so gamer this right here pretty much

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)
{
private Gps gps;
public void CanthisB()
{
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + "\\plugins\\TTR\\Path.db3");
gps.GpsMove("A");
}
//Call on plugin stop
public void PluginStop()
{
}
}
}


Dont work for me... Can anyone help me? I want just a simple move to plugin!
 
Got it to compile, but doesn't do anything.
Also not sure if I am making the path correctly.
 
Doen't work for me either. Anyone able to help us get a Point a-b script to work?
 
Back
Top