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

[PLUGIN] World Farmer - An Open world farm plugin

mine doesent do anything when i tick farm and im stood next to them
 
Last edited:
mine doesent do anything when i tick farm and im stood next to them

If you walk up to a flower and mouse over the Gather icon in game what exactly does it say?
If you have changed anything in the code please post it here.
 
using System;
using System.Windows.Forms;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
namespace YourNamespace
{
public class YourClass : Core
{
public static string GetPluginAuthor()
{
return "Biocide";
}
public static string GetPluginVersion()
{
return "0.2";
}
public static string GetPluginDescription()
{
return "World Farmer";
}

//Try to find Doodad in farm zone.
public DoodadObject GetBestNearestdood(Zone zone)
{
DoodadObject dood = null;
double dist = 999999;
foreach (var Obj in getDoodads())
{
//If there is any Doodads that we looking for in this zone
if (Obj.name == "Carrot") <--- changed
{
dood = Obj;
dist = me.dist(Obj);
}
}
return dood;
}


public void PluginRun()
{
RoundZone Gzone = new RoundZone(me.X, me.Y, 20); //Make new gather zone.
RoundZone Pzone = new RoundZone(me.X, me.Y, 7); //Make new plant zone.
SetGroupStatus("Farm", false); //Add checkbox to our character widget
SetGroupStatus("Plant", false); //Add checkbox to our character widget
while (true)
{
//If Farm checkbox is enabled
if (GetGroupStatus("Farm"))
{
DoodadObject bestdood = null;
bestdood = GetBestNearestdood(Gzone);
if (bestdood != null)
{
try
{
//while there is any desired Doodads in zone and checkbox in widget enabled
while (bestdood != null && GetGroupStatus("Farm"))
{
// Log("Distance: " +me.dist(bestdood)+ "m"); // Just for debuging
//CollectItemsInZone("Azalea", "Gathering: Spend 1 Labor to gather materials.", Gzone); <--- added the //
CollectItemsInZone("Carrot", "Farming: Spend 1 Labor to harvest crops.", Gzone); <----changed
}
}
catch {}
}
else
{
if (GetGroupStatus("Plant"))
{
PlantItemsInZone("Carrot Seed", Pzone); <---changed this
}

}
}
// Processor delay
Thread.Sleep(10);
}
}
}
}


first time its worked then nothing. I have around 500 labor and 150 seed. I would use the same spot as before, and the char is just stand there and nothing.
 
is there a way to use this to plant a giant pine tree farm? of say 400 trees?
 
i change the plant you had in already for Nonnative Fruited Grapevine because thats what it says
 
Worked great with plant and gather, but failed to start planting again. I waited about 5 minutes and then just manually started again. Is there suppose to be a wait before restarting? If so, how long?
 
first time its worked then nothing. I have around 500 labor and 150 seed. I would use the same spot as before, and the char is just stand there and nothing.
I noticed that I check a large are and when it finds a plant that match it waiting to get in range to gather. That might be your problem there.
Im working on this.

i change the plant you had in already for Nonnative Fruited Grapevine because thats what it says
Did you change the description to? If you did you probably have the same issue as yetihunter

is there a way to use this to plant a giant pine tree farm? of say 400 trees?
Yes its possible but pine trees takes a long time before chopping them down
Worked great with plant and gather, but failed to start planting again. I waited about 5 minutes and then just manually started again. Is there suppose to be a wait before restarting? If so, how long?
Im looking in to this!
 
for me it does nothing :) copy/paste and checking farm/plant , nothing happens :)
 
worked once, planted 100 and gathered, now does nothing. and still have 4k+ labor and 900+ azalea seed
 
Last edited:
Is it possible to modify the code to place Cherry Saplings? I have tried replacing the seed name with the Cherry Sapling, but it doesn't seem to work.
 
Is it possible to modify the code to place Cherry Saplings? I have tried replacing the seed name with the Cherry Sapling, but it doesn't seem to work.

You need to change the ready name and the description of the skill you want to use.
 
mate, the script works perfect at first use, after that if you stop it and run it again + check farm and plant, won't work everytime :(
 
Back
Top