Ok, so obviously there is no good mining scripts out there, besides "simple miner"
That is the script, just wondering if i could get some help to develop a "loop" so it will follow the GPS path, that has been created. So it mines up and down that path, cause at the moment. it will mine around "Mine" point in the gps and then run the rest of the path and skip the nodes
Code:
using System;
using System.Drawing;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
using System.Windows.Forms;
using System.Threading.Tasks;
using System.Net;
using System.IO;
using System.Text;
using System.ComponentModel;
namespace DefaultNameSpace{
public class DefaultClass : Core
{
public static string GetPluginAuthor()
{
return "Galio";
}
public static string GetPluginVersion()
{
return "1.0.0.0";
}
public static string GetPluginDescription()
{
return "Simple Miner";
}
private Gps gps;
//Call on plugin start
public void PluginRun()
{
int yes = 1;
int Continue = 1;
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + "\\Plugins\\Mining\\mine.db3");
gps.GpsMove("Mine");
RoundZone z = new RoundZone(me.X,me.Y,90);
CollectItemsInZone("Fortuna Vein","Mining: Spend up to 20 Labor to extract ore.",z);
CollectItemsInZone("Iron Vein","Mining: Spend up to 10 Labor to extract ore.",z);
while(Continue ==1)
{
while(yes < 100)
{
if(getAggroMobs().Count > 0)
{
Log("NOOOO");
gps.GpsMove("Safe");
PluginRun();
}
if(hpp() < 80)
{
Log("NOO");
gps.GpsMove("Safe");
PluginRun();
}
CollectItemsInZone("Fortuna Vein","Mining: Spend up to 20 Labor to extract ore.",z);
CollectItemsInZone("Iron Vein","Mining: Spend up to 10 Labor to extract ore.",z);
yes++;
if(yes >= 20)
{
gps.GpsMove("Safe");
yes = 1;
}
}
}
}
//Call on plugin stop
public void PluginStop()
{
}
}
}
That is the script, just wondering if i could get some help to develop a "loop" so it will follow the GPS path, that has been created. So it mines up and down that path, cause at the moment. it will mine around "Mine" point in the gps and then run the rest of the path and skip the nodes