[Plugin] NotPanda's Mining
Hey guys, another quick script I use that you all might want.
Farms iron veins and fortuna veins.
Hey guys, another quick script I use that you all might want.
Farms iron veins and fortuna veins.
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 NotPandaMiner{
public class Farmer : Core
{
public static string GetPluginAuthor()
{
return "NotPanda";
}
public static string GetPluginVersion()
{
return "1.0.0.0";
}
public static string GetPluginDescription()
{
return "NotPanda's Miner";
}
//Call on plugin start
public void PluginRun()
{
ClearLogs();
Log("[INFO] Starting Miner");
while(me.laborPoints > 200){
DoodadObject _doodad = getNearestMiningNode();
if(_doodad != null){
List<Skill> _skill = _doodad.getUseSkills();
try{
Log("[INFO] Harvesting " + _doodad.name + " : " + _doodad.id);
UseDoodadSkill(_skill[0].id,_doodad, true, 1);
} catch{
}
Thread.Sleep(500 + (int)me.castEndTime);
}
}
}
public DoodadObject getNearestMiningNode(){
DoodadObject nearestDoodad = null;
foreach(var _doodad in getDoodads().Where(x => x.name.Contains("Iron Vein") || x.name.Contains("Fortuna")).ToList()){
if(nearestDoodad == null){
nearestDoodad = _doodad;
} else if(me.dist(_doodad) < me.dist(nearestDoodad)){
nearestDoodad = _doodad;
}
}
return nearestDoodad;
}
//Call on plugin stop
public void PluginStop()
{
}
}
}
Last edited:






