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

Farm/Gather

Just wait for one to mature and update the code or try and track down a farm where there are some waiting to be picked!
 
Hello,

may i ask you some help to get something like this work outside of scarecrows for illegal farms? my problem is to plant items without having the "scarecrow borders"

I don't know if you ended up figuring it out, but i just quickly made mine for Cotton and Azalea using Zone's

EG:
Code:
               RoundZone z = new RoundZone(me.X,me.Y,10);      
                    PlantItemsInZone("Azalea Seed",z);  
                    PlantItemsInZone("Cotton Seed",z);
                    CollectItemsInZone("Cotton","Gathering: Spend up to 2 Labor to gather materials.",z); 
                    CollectItemsInZone("Azalea","Gathering: Spend 1 Labor to gather materials.",z);
 
StarWiper, can you add that to the script so we can see where to place it? Thanks a bunch!
 
I don't know if you ended up figuring it out, but i just quickly made mine for Cotton and Azalea using Zone's

EG:
Code:
               RoundZone z = new RoundZone(me.X,me.Y,10);      
                    PlantItemsInZone("Azalea Seed",z);  
                    PlantItemsInZone("Cotton Seed",z);
                    CollectItemsInZone("Cotton","Gathering: Spend up to 2 Labor to gather materials.",z); 
                    CollectItemsInZone("Azalea","Gathering: Spend 1 Labor to gather materials.",z);

Yeah i did figured this out but i was trying to use RectangleZone and not RoundZone (roundzone works perfectly) but.. RectangleZone i can't manage to make it work :/
 
Great plugin but does anyone have a solution for planting around a thatched farmhouse (legit looking and not inside walls)
 
Hy guys! Im new buddy user, and beginner with the coding.
i have tons of Q. I allready read this topic before i ask these Q.
How install this? Open it with editor? like notepad or I should open with the plugin editor?
The file extension is .CS? After i edited and saved, make a new folder in the buddy/plugins and just put the file and start it with the buddy plugin manager? :) I think its not so easy or am i wrong?

I read this thread, so the underline Q is not important anymore https://www.thebuddyforum.com/arche...uides/181609-create-run-plugins-pictures.html
To use it: go to my farm place,
and change this right?
var barleystart = itemCount("Barley Seed"); <---any kind of seed i want, just the case sensitive name, dont need id etc?
//Plant farm 1
PlantItemsAtFarm("Barley Seed", INSERTFARMIDHERE); <-- insert farm id (with the cracrow plugin ) OR just type ur farm name
CollectItemsAtFarm("Barley", "Farming: Spend 1 Labor to harvest crops.", INSERTFARMOWNERIDHERE); <-- insert farm id ( with the cracrow plugin ) OR just type ur farm name

that's it?

If i like to use it on "illegal farms"
i just go there( i mean the spot), change seeds and start it? Need to use cordinates? can i set up size of the "farm place" area? (? x ? ) or its use a common 8x8 or 16x16 place?
RoundZone z = new RoundZone(me.X,me.Y,10);
PlantItemsInZone("Azalea Seed",z);
PlantItemsInZone("Cotton Seed",z);
CollectItemsInZone("Cotton","Gathering: Spend up to 2 Labor to gather materials.",z);
CollectItemsInZone("Azalea","Gathering: Spend 1 Labor to gather materials.",z);

and where should i put this lines of code?

If anybody willing to help or guide me, appreciate it.
Peace all and have a nice day.
 
Last edited:
Is there a reason I can't get fig to pick off my trees? I'm using this code and it won't get the figs.

CollectItemsAtFarm("Fig", "Gathering: Spend up to 5 Labor to gather fruit.", "Blah");
 
Try with:

CollectItemsAtFarm("Fruited Fig Tree","Gathering: Spend up to 5 Labor to gather fruit.", "Blah");
 
Try with:

CollectItemsAtFarm("Fruited Fig Tree","Gathering: Spend up to 5 Labor to gather fruit.", "Blah");

Thank you that worked great. I thought I tried that last night but I think I was compiling the script into another folder. I found the issue today. One of the other scripts I was writing was getting written over I forgot to change the plugin folder my stupidity.
 
The thing works great, it's something of a beauty, been using it for farming and gathering, a small suggestion is to gather 1st and the plant seed later, otherwise if the farm is incomplete, got dc for example in the middle of planting/gathering, it will always seed half, then gather half and then proceed to the next farm.
 
Last edited:
It doesn't want to crop...
Does anybody see a why?
When I hover over a finished Narcissus it ust say Narcissus... nothing like Mature Narcissus... so I think this should be not the problem.

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) {
//get Labor points
int labor = me.laborPoints;


//if Labor > 1000
if (labor > 1000) {
//get starting count of seed
var barleystart = itemCount("Narcissus Seed");
//Plant farm 1
PlantItemsAtFarm("Narcissus Seed", 11111);
CollectItemsAtFarm("Narcissus", "Farming: Spend 1 Labor to harvest crops.", 11111);
//Plant farm 2
//PlantItemsAtFarm("Narcissus Seed", 11111);
//CollectItemsAtFarm("Narcissus", "Farming: Spend 1 Labor to harvest crops.", 11111);
//get ending count of seed
var barleyend = itemCount("Narcissus Seed");
//get seed used and show in log
var used = barleystart - barleyend;
Log(used + " Narcissus used");


//if Labor < 1000 wait
} else {
Log("Labor under 1000, waiting to regen");
}


//Jump once
Jump(true);
Log("JUMP! JUMP!");
Thread.Sleep(500);
Jump(false);


//Generate random time between 9-10 minutes
Random random = new Random();
var mseconds = random.Next(540, 600) * 1000;
var seconds = mseconds / 1000;
Log("Waiting for " + seconds.ToString() + " seconds");


//sleep for random time
Thread.Sleep(mseconds);
}
}
}
}
 
Last edited:
ok found the problem....

it is not:
"Farming: Spend 1 Labor to harvest crops."

it has to be:
"Gathering: Spend 1 Labor to gather materials."
 
How can you make this code farm and gather at a house? It works perfect at my large farm but it won't do anything at all at my house?
 
posting your farm id is like posting your account info for trion to look up your account.
 
Can you change speed of planting stuff ? like Used: [Corn Seed] can you make it place a bit faster in any way ?
 
Back
Top