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

[Plugin]Chicken Farmer

galio

Member
Joined
Sep 27, 2014
Messages
111
Reaction score
1
Simple Chicken Farmer script.
Uses GPS so make sure to edit the Route. (only needed if you farm is in PVP zone).

This does NOT have Anti-Afk.

Features:
Walks to Farm,
Will Continue Feeding and Retrieving Eggs until all are done.
When Done it will move to SafeZone(Given in GPS Map) and stay there for aprox 43Minutes (chicken Cooldown).
Done.

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

namespace YourNamespace{
    public class YourClass : Core
    {                       
         private Gps gps;       
        public void PluginRun()
        {
           int yes = 0;    
           Log("start");
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + "\\Plugins\\ChickenFarm\\chicken.db3"); 
           while(yes == 0)
           {                     
               gps.GpsMove("Farm"); 
               CollectItemsAtFarm("Hen","Husbandry: Spend 1 Labor and 1 Ground Grain to feed livestock.","YourName");
               CollectItemsAtFarm("Thriving Hen","Husbandry: Spend up to 5 Labor to gather eggs.","YourName");         
               
               RoundZone z = new RoundZone(me.X,me.Y,25);  
               CollectItemsInZone("Hen","Husbandry: Spend 1 Labor and 1 Ground Grain to feed livestock.",z);
               CollectItemsInZone("Thriving Hen","Husbandry: Spend up to 5 Labor to gather eggs.",z);
               Log("Going to rest");
               gps.GpsMove("Safe");
               Thread.Sleep(2580000);
               
            }                   
    }     
}   
}
 
Can you do this for Mushrooms? Ill be happy to donate a bit for your work. Harvest mushroom, plant mushroom go to safe zone wait for 2 hours and return rinse repeat.
 
Can you do this for Mushrooms? Ill be happy to donate a bit for your work. Harvest mushroom, plant mushroom go to safe zone wait for 2 hours and return rinse repeat.
Never worked with "planting" but I'll see what I can do.
EDIT: Yeah I think I can do that as long you are thinking planting them in your farm. Around your house will not work (at least duno how :P)
 
Last edited:
Never worked with "planting" but I'll see what I can do.
EDIT: Yeah I think I can do that as long you are thinking planting them in your farm. Around your house will not work (at least duno how :P)


It will be 8, 8x8 farms and a 1 16x16, Can you write a small snippit to get my farm ID's Out explained it in this thread. I personally am just terrible at the coding stuff.

https://www.thebuddyforum.com/archebuddy-forum/archebuddy-plugins/179458-scarecrow-loop.html

Pretty sure he said Log(me.target.uniqId); but idk how to compile that etc. If you can help me I'd appreciate it.
 
It will be 8, 8x8 farms and a 1 16x16, Can you write a small snippit to get my farm ID's Out explained it in this thread. I personally am just terrible at the coding stuff.

https://www.thebuddyforum.com/archebuddy-forum/archebuddy-plugins/179458-scarecrow-loop.html

Pretty sure he said Log(me.target.uniqId); but idk how to compile that etc. If you can help me I'd appreciate it.
Yeah I will use the ID if this way doesn't work ^^. Currently not at home but I will let u know when I have it done.

Have a few Questions though (to make it work better):
Are the farms kind of nearby of each other?. Is there any guild member nearby? that has his farm available for guild mates? Or any Family Farms?.
If there is then the option I was going to do will not work (well, it will but you will plant/pick from ur Guild Mates XD).
 
Last edited:
SO I have 8, 8x8 farms, 1 16x16 all very close together.... most of them side by side each other.

The Harvester/Planter has access to every single farm in the area through family/guild relation.

So according to Out, he said if you can compile that to get the id of each farm you need to reset the ids each time the server goes down. So i'll need a plugin to get those Farm Ids, to refresh each time.

I also may get a house right near the farm to which would be ideal if I can just some how set it to go in my house after planting wait out the timer. Come back outside the house harvest-replant rinse repeat. But for now I do not have the house working on it.
 
Last edited:
Never worked with "planting" but I'll see what I can do.
EDIT: Yeah I think I can do that as long you are thinking planting them in your farm. Around your house will not work (at least duno how :P)

small house the bot doesnt know how to plant around. But bigger houses like thatched farmhouses it does know how to plant ( it even plants inside the side of the house for more space somehow xD )
 
small house the bot doesnt know how to plant around. But bigger houses like thatched farmhouses it does know how to plant ( it even plants inside the side of the house for more space somehow xD )


That seems like cause for concern
 
like this

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

namespace YourNamespace{
public class YourClass : Core
{
public void PluginRun()
{
int yes = 0;
Log("start");
while(yes == 0)
{
CollectItemsAtFarm("Hen","Husbandry: Spend 1 Labor and 1 Ground Grain to feed livestock.","YourName");
CollectItemsAtFarm("Thriving Hen","Husbandry: Spend up to 5 Labor to gather eggs.","YourName");

RoundZone z = new RoundZone(me.X,me.Y,25);
CollectItemsInZone("Hen","Husbandry: Spend 1 Labor and 1 Ground Grain to feed livestock.",z);
CollectItemsInZone("Thriving Hen","Husbandry: Spend up to 5 Labor to gather eggs.",z);
Log("Going to rest");
Thread.Sleep(2580000);

}
}
}
}
 
Yep, if there's any error in compiling let me know.
no errors but it keeps taking me to someone elses farm to feed them. While mine is on cooldown.
how can i stop this. And can you put in anti afk so i can leave my comp on 24/7
 
If you only use it in your farm then remove these lines

RoundZone z = new RoundZone(me.X,me.Y,25);
CollectItemsInZone("Hen","Husbandry: Spend 1 Labor and 1 Ground Grain to feed livestock.",z);
CollectItemsInZone("Thriving Hen","Husbandry: Spend up to 5 Labor to gather eggs.",z);
(I used these to force to check chickens around the house but if u have nearby farms with chicks ur fucked).

Will be added Anti-AFK tomorrow I guess. 7AM here and still ahven't slept.
 
is it working at public farm?

Edit:

well, it works. just had to change this to

RoundZone z = new RoundZone(me.X,me.Y,25);

RoundZone z = new RoundZone(me.X,me.Y,5);
 
Last edited:
Can I used this code to farm something else
like ? Barley Seed
Illegal farm

plz can u do it
 
Can I used this code to farm something else
like ? Barley Seed
Illegal farm

plz can u do it
Change the name of the code to the item you want and the respective action and you are good to go.
 
Thank you very much for this!
I used this to learn how to create my own plugin's for gathering, Currently using it to gather Cotton for a big illegal farm
 
Thanks a lot :3

Thank you very much for this!
I used this to learn how to create my own plugin's for gathering, Currently using it to gather Cotton for a big illegal farm

I did the same thing. This code helped me alot to create my own plugin \o\

IZjSHcV.png
 
Last edited:
Back
Top