Very simple miner that will go for Iron Veins and Furtuna Veins.
Known Issues-
Takes 2 Seconds to start mining
With GPS Map Support
Known Issues-
Takes 2 Seconds to start mining
With GPS Map Support
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");
List<Creature> mobs = getAggroMobs();
RoundZone z = new RoundZone(me.X,me.Y,40);
while(Continue ==1)
{
while(yes < 100)
{
if(getAggroMobs().Count > 0)
{
Log("NOOOO");
gps.GpsMove("Safe");
Thread.Sleep(800);
PluginRun();
}
if(hpp() < 80)
{
Log("NOO");
gps.GpsMove("Safe");
Thread.Sleep(800);
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 >= 100)
{
gps.GpsMove("Safe");
Thread.Sleep(700);
yes = 1;
}
}
}
}
//Call on plugin stop
public void PluginStop()
{
}
}
}
Last edited: