Daphinium
New Member
- Joined
- Mar 29, 2013
- Messages
- 45
- Reaction score
- 1
Gatherbuddy2 project for Archeage. Gather2Buddy.
CURRENTLY PLANTS AND HARVEST IN AN ELLIPSOIDS.
CURRENTLY PLANTS AND HARVEST IN AN ELLIPSOIDS.
Code:
using System;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using ArcheBuddy.Bot.Classes;
namespace G2B {
public class G2B: Core {
public static string GetPluginAuthor()
{ return "RowdyV G2B"; }
public static string GetPluginVersion()
{ return "RowdyV G2B V1.1"; }
public static string GetPluginDescription()
{ return "RowdyV G2B"; }
//----------Settings----------//
public string seedchoice = "Rose Seed"; //Seed Name
public string mature = "Rose"; //Name upon Maturity.
public string iname = "Rose"; // Item name
public int radius = 25; // How big will your public farm be (1 = 3 seeds Radi) X
public int radius2 = 25; // How big the gathering space will be (1 = 3 seeds Radi) Y
public string farm = "Planting/Harvesting"; //text when harvesting
public int lpoints = 100; // Labor Limit. Won't do anything if you only have "X" number left.
//---------------DO NOT EDIT BELOW------------------------//
public void PluginRun() {
while (true) {
int labor = me.laborPoints;
if (labor > lpoints) {
Log("----------");
Log("");
Log("Moving to location");
var seedcounts = itemCount(seedchoice);
RoundZone y = new RoundZone(me.X,me.Y, radius2);
CollectItemsInZone(mature, farm, y);
RoundZone z = new RoundZone(me.X,me.Y, radius);
PlantItemsInZone(seedchoice, z);
var seedcounte = itemCount(seedchoice);
var used = seedcounts - seedcounte;
Log(used + " " + seedchoice +" planted");
var icount = itemCount(iname);
Log("Total of "+icount+" "+iname+" in the inventory");
Log("");
} else {
Log("----------");
Log("");
Log("Labor under "+lpoints+", waiting to regen");
Log("");
}
}
}
}
}
Last edited: