using System;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using ArcheBuddy.Bot.Classes;
namespace YourNamespace
{
public class YourClass : Core
{
public void PluginRun()
{
while (true)
{
PlantItemsAtFarm("Potato Eyes","YourCharacterName");
CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.","YourCharacterName");
Thread.Sleep(5);
}
}
}
}
I'm using this and it works fine
Code:using System; using System.Windows.Forms; using System.Threading; using System.Collections.Generic; using ArcheBuddy.Bot.Classes; namespace YourNamespace { public class YourClass : Core { public void PluginRun() { while (true) { PlantItemsAtFarm("Potato Eyes","YourCharacterName"); CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.","YourCharacterName"); Thread.Sleep(5); } } } }
using System;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using ArcheBuddy.Bot.Classes;
namespace YourNamespace{
public class YourClass : Core {
public void PluginRun() {
SetPlantAlgoritm(PlantAlgoritm.MaxPerfomance);
SetPlantMotionType(PlantMotionType.Standart);
// Enter all your farm ID here.
uint[] Farms = new uint[] {
111,
222,
333
};
// Enter the item you want to gather/plant here.
// Ideally you always want the big space taking item like trees to go first.
string[,] Items = new string[,] {
{
"Random Tree",
"Random Sapling",
"Logging: Spend up to 10 Labor to chop down a tree."
},
{
"RandomItem",
"Random Seed",
"Gathering: Spend 1 Labor to gather materials."
}
};
// Set how much time to wait after each cycle.
int WaitTime = 7200000;
// Don't touch below this.
int fID;
bool done = false;
while (!done) {
int f = -1;
while (f++ < Farms.Length) {
fID = f;
Log("f:" + f);
Log("Farm:" + Farms[fID]);
int i = -1;
while (i++ < Items.Length) {
Log("at Farm " + Farms[fID] + " collect " + Items[i, 0] + " with action " + Items[i,2]);
CollectItemsAtFarm(Items[i, 0], Items[i, 2], Farms[fID]);
Log("at Farm " + Farms[fID] + " plant " + Items[i, 1]);
PlantItemsAtFarm(Items[i, 1], Farms[fID]);
}
}
Thread.Sleep(5000);
}
}
}
}
Nothing wrong with the code but you do realize that the void Thread.Sleep(x) is in ms and not in s or m? A break of 5 ms is basically nothing and will overload your script. You could easily change it to Thread.Sleep(3600) or even Thread.Sleep(54000).
No help?I have 8x8 +16x16 and this code plant ONLY in my 8x8.. can help me pls?
Start plugin editor, new file, copy paste the script, change the seed into whatever you want, your name = your char name. same at collect items at farm (the name of the full grown seed/spore/whatever). Dont forget that you need the full text from the gathering part for labor ("Gathering: Spend 1 Labor to gather materials.")How do I turn that script into a plugin so I can run it?
Thank you!Start plugin editor, new file, copy paste the script, change the seed into whatever you want, your name = your char name. same at collect items at farm (the name of the full grown seed/spore/whatever). Dont forget that you need the full text from the gathering part for labor ("Gathering: Spend 1 Labor to gather materials.")
finish by pressiiing compile after youve selected a pluginfolder to put it in
using System;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using ArcheBuddy.Bot.Classes;
namespace YourNamespace
{
public class YourClass : Core
{
public void PluginRun()
{
while (true)
{
PlantItemsAtFarm("Potato Eyes","YourCharacterName");
CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.","YourCharacterName");
Thread.Sleep(5);
PlantItemsAtFarm("Potato Eyes","FamilyCharacterName");
CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.","FamilyCharacterName");
Thread.Sleep(5);
}
}
}
}
}