What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Plugin] FarmMonkey: Continuous Multi Farm Harvest & Planting Plugin

Can this work with chickens?
ACK I missed this.

It can, but honestly it's not developed for animals as they have multiple stages to interact with and this plugin is not equipped to handle that.
 
So far I have yet to see any plugins that don't work as this code on our end doesn't need to change as we are using the API from Archebuddy. So yeah should not have any issues.
 
Doesen't work with Lily Seed, bug? or something wrong?

_seed = "Lily Seed"
_plant = "Lily"
_gather = "Gathering: Spend 2 Labor to gather materials."

Thanks!
 
couple questions,

# do you have your farm ID's
# what zone is it ( temporate, arid, etc... )
# does it go to a farm corner ?
# does it plant ?


Also it should be Spend up to 2 labor ( double check the exact text on the plant for harvesting )
 
Last edited:
two questions,

# do you have your farm ID's
# what zone is it ( temporate, arid, etc... )

uint[] _farms = {XXXX, XXXXX ,XXXX ....};
Temperate.

Plant seed but don't take Lily ^^

Thanks to check it!

P.S: Default Scarecrow do it perfectly.

EDIT:
My gathering string was wrong... need to put "Gathering: Spend up to 2 Labor to gather materials." if waste more than 1 labor.

Thanks to your private messages @Defectuous.
 
Last edited:
Please add the option to have bot log off between harvests.
Now with no afk labor, characters always standing next to their farm is very suspicious.
 
how i can make it plant and gather grapevines? it needs to gather also the diying ones. ty in advance
 
CAN ANY1 HELP ME PLEASE!!! what im i suppost to do with this CODES!???? i try to make a new plugin and paste it.. i save it but it doesnt show up in my plugin managment screen! PLEASE HELP idk anything about this if some 1 could explain me what to do with the codes from 0 to 10 please!!!!!!
i own x3 16x16 farm also 1 tached farm house and 1 gazebo ALL LINKED!!!! and the seed merchant is like 5 steps away from my farms HELP!!!!!!! i woul dlike something to leave overnight farming
 
CAN ANY1 HELP ME PLEASE!!! what im i suppost to do with this CODES!???? i try to make a new plugin and paste it.. i save it but it doesnt show up in my plugin managment screen! PLEASE HELP idk anything about this if some 1 could explain me what to do with the codes from 0 to 10 please!!!!!!
i own x3 16x16 farm also 1 tached farm house and 1 gazebo ALL LINKED!!!! and the seed merchant is like 5 steps away from my farms HELP!!!!!!! i woul dlike something to leave overnight farming

1) Calm
2) Copy and paste the code into the plugin editor, change it to adapt to your needs then click save, create a folder in /plugins and save there
3) Then click compile
4) Go to plugin manager and your plugin will be there

Have patience, maybe this bot is not very noob-friendly at the start but you'll learn :)
 
I've been away for a few days so i'm going for an all in one responce.

Please add the option to have bot log off between harvests.
Now with no afk labor, characters always standing next to their farm is very suspicious.

This has been considered, there is actually a newer version on git that handles this better but is not considered stable release. I also have gotten in trouble for providing the link to people. All I will say here is Google is your friend. Also there is no solid support for it.

how i can make it plant and gather grapevines? it needs to gather also the diying ones. ty in advance

It's possible but this plugin is not developed to handle vines and fruit tree's. Same thing goes for animals, the potential of mutiple stages can cause issues. It honestly wouldn't take much to make it that, but at this time I do not have the proepr time to sit down and add this.


CAN ANY1 HELP ME PLEASE!!! what im i suppost to do with this CODES!???? i try to make a new plugin and paste it.. i save it but it doesnt show up in my plugin managment screen! PLEASE HELP idk anything about this if some 1 could explain me what to do with the codes from 0 to 10 please!!!!!!
i own x3 16x16 farm also 1 tached farm house and 1 gazebo ALL LINKED!!!! and the seed merchant is like 5 steps away from my farms HELP!!!!!!! i woul dlike something to leave overnight farming

Honestly Mitryy answered this best, the only thing i have to add is the steps to configure the plugin are on the first post.

1) Calm
2) Copy and paste the code into the plugin editor, change it to adapt to your needs then click save, create a folder in /plugins and save there
3) Then click compile
4) Go to plugin manager and your plugin will be there

Have patience, maybe this bot is not very noob-friendly at the start but you'll learn :)
 
Defectuous, fucking AWESOME job on this script so far. My question to you is...

I have two characters I'm trying to work 2 different farms each working on the same computer. Do you think you could help me with that compilation? It'd be greatly appreciated. Here's my script that I'm using. Please feel free to change what needs to be changed as I've done some stuff to the script to make it a little faster.

using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;

//
// Special Thanks to Voyager92 for a really Epic Non-Stop Farm/Gathering Base from which I am building this on.
// Thread: [Plugin] Non-Stop Farm/Gathering for multiple toons/farms and with restart support
//

namespace ArcheAgeFarm1
{
public class FarmMonkey : Core
{
public static string GetPluginAuthor()
{ return "Defectuous"; }
public static string GetPluginVersion()
{ return "1.1.9.4"; }
public static string GetPluginDescription()
{ return "FarmMonkey: Continuous Multi Farm Harvest & Planting Plugin"; }

// START Universal Config

uint[] _farms = { xxxx }; // Gather Farm ID's wtih scarecrow { 12345, 54321 }
int _minlabor = 20; // Minimum Labor for harvesting.
string _seed = "Potato Eyes";
string _plant = "Potato"; // Make sure plant ends up Mature or not.

// Note: You may need to update the Amount of labor needed for Gathering & Harvesting.
string _gather = "Gathering: Spend 1 Labor to gather materials.";
string _harvest = "Farming: Spend 1 Labor to harvest crops.";

// This gps file needs 2 points " Safe " & " Farm "
string _gpsfile = "\\plugins\\FarmMonkey\\Path\\file.db3";

// Set to true if you have a gps file for moveing to and from the safe.
private bool _enablegps = false;
// Set to true if your gps file has paths from the Nui ( generally not necessary in safe zone farming )
private bool _deathcheck = false;

// END Universal Config
// ( Do Not Edit anything past this line unless you are confident you know what your doing )

// Universal Application Information
private Gps gps;
Random random = new Random();

//Call on plugin start
public void PluginRun()
{
ClearLogs();
Log(Time() + "FarmMonkey: Plugin Started");

while (true) {
if (gameState == GameState.Ingame){
Log(Time() + "Time to Farm");

// Death Check ( Am i really dead ? )
if ( _enablegps == true && _deathcheck == true && !me.isAlive()){
Log("We have died, there must be a reason for this check into that would you");

// Res timer is Buggy due to continued deaths raises the time
Log("Waiting 18 Seconds to resurection");
Thread.Sleep(18000);

ResToRespoint();
Log("Time to Ressurect");
while (!me.isAlive()){
Log("Waiting 8 seconds to try again");
Thread.Sleep(8000);
ResToRespoint();
}
DeathRun();

}

// Lets get back to the Farms
if ( _enablegps == true && me.isAlive()){ MoveToFarm(); }

// Time to Harvest plants
Harvesting();
// Lets fill that field with seeds
Planting();

// Time to head back to the safe spot
if ( _enablegps == true){ MoveToSafe(); }


// Temporary Sleep to prevent to many checks
var mseconds = random.Next(60, 120) * 1000;
var seconds = mseconds / 1000;
Log(Time() + "Waiting " + seconds.ToString() + " seconds to check seeds");
Thread.Sleep(mseconds);

}
}
}

// Moving Routines
public void MoveToFarm()
{
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + _gpsfile);
gps.GpsMove("Farm");
}

public void MoveToSafe()
{
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + _gpsfile);
gps.GpsMove("Safe");
}

public void DeathRun()
{
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + _gpsfile);
Log("Lets Get Moving");
gps.GpsMove("Safe");
}

// Farming Routines
public void Harvesting()
{
var _labor = me.laborPoints;
if (_labor > _minlabor){
Log("Current Labor:" + _labor);
foreach (uint farm in _farms){
Log(Time() + "Harvesting " + _plant + "(s) on FarmID: " + farm);
CollectItemsAtFarm(_plant, _gather, farm);
CollectItemsAtFarm(_plant, _harvest, farm);
}
}
}

public void Planting()
{
var seedcount = itemCount(_seed);
if ( seedcount == 0){
Log(Time() + "Seed Count:" + seedcount + _seed);
Log(Time() + "You have no seeds!");
} else{
foreach (uint farm in _farms)
{
Log(Time() + "Seed Count: " + seedcount + _seed);
Log(Time() + "Planting" + _seed + "(s) on FarmID: " + farm);
PlantItemsAtFarm(_seed, farm);
}
}
}

// Utility Stuff
public string Time()
{
string A = DateTime.Now.ToString("[hh:mm:ss] ");
return A;
}

//Call on plugin stop
public void PluginStop()
{

}
}
}
 
Defectuous, fucking AWESOME job on this script so far. My question to you is...

I have two characters I'm trying to work 2 different farms each working on the same computer. Do you think you could help me with that compilation? It'd be greatly appreciated. Here's my script that I'm using. Please feel free to change what needs to be changed as I've done some stuff to the script to make it a little faster.

I would suggest Voyager92's plugin. Mine is based off of his and his supports multiple characters mine does not. It's on my list of things to do but my world is a bit busy atm. The changes would require a bit more to my plugin than his.

you could make a copy of the farm monkey folder and change the name to make it work for you.
 
Good job !!

But have anyway to rotate livestock such as Dairy Calf, Sheep, Goat, Buffalo into same direction before planting ?

because it seem function PlantItemsAtFarm() have algorithm inside for Auto Calculate Area , and Random Rotate (this make it not look like human behavior)

I try to find function on API but still not found :s
 
Good job !!

But have anyway to rotate livestock such as Dairy Calf, Sheep, Goat, Buffalo into same direction before planting ?
because it seem function PlantItemsAtFarm() have algorithm inside for Auto Calculate Area , and Random Rotate (this make it not look like human behavior)
I try to find function on API but still not found :s

hummmn.
hummmmmmmmnnnnnnn.
* insert pause for dramatic effect *
hummmmmmmmmmmmmmmmmmnnnnnn.
...
Nope

I do not this it's possible at this time

these is no option for any sort of rotation within this in the API
PlantItemsAtFarm(_seed, farm);

You would have to create a custom planting function that handles the rotation of animals.
 
Yeah it's no method to send parameter Rotation Angle on current Planting function.

seem too hard for me I don't know how to create handle function like that, if this work would be great.

Thx for answer anyway.
 
Back
Top