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

[Plugin] Non-Stop Farm/Gathering for multiple toons/farms and with restart support

Guys can somebody help me fix this plugin so it can work on cotton.
I have found what is wrong but i dont know how to fix it
To get cotton you use gathering and it use 2 labor for that.....so i try change
CollectItemsAtFarm(item, "Gathering: Spend 2 Labor to gather materials.", farm); but it is still not working .
I mean everything is working except gathering.
Can somebody fix this for me pls ......i have try some other seed's and it is working fine except cotton

Had the same problem. Rewrite to Spend up to 2 labor to gather materials, and the problem was for me I wrote at "Item" garlic. But it had to be "Mature Garlic"

Awesome script! Works flawlessly! Deserves more credit :)
 
can i use this with a 16x16 house ?
Yeah, garden, farms, houses, tatched, etc...

Had the same problem. Rewrite to Spend up to 2 labor to gather materials, and the problem was for me I wrote at "Item" garlic. But it had to be "Mature Garlic"

Awesome script! Works flawlessly! Deserves more credit :)

Thanks man, and yeah, when the item is planted in non-native climates, the name of the item changes a little.
 
is it only Gathering the stuff or also Planting it ? because when i start it he is just flying to my house and after that he just stands there for hours

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) {
                
                if (gameState == GameState.Ingame){
                
                    //get Labor points 
                    int labor = me.laborPoints;
                    
                    string item = "Iris"; // PUT WHAT YOU WANT TO GATHER/FARM HERE
                    string seed = "Iris Seed"; // PUT THE ITEM SEED NAME HERE


                    //if Labor > 200
                    if (labor > 200) {
                        
                        //get starting count of seed
                        var itemStart1 = itemCount(seed);
                        var itemStart2 = itemCount(item);
                        
                        Log("------------------------");
                        Log("Character: " + me.name);
                        Log("Total "+ item +": " + itemStart2);
                        Log("Total "+ seed +": " + itemStart1);
                        
                        // PUT CHARACTER 1 NAME HERE
                        if (me.name == "MyName"){
                        
                        // PUT FARM IDs HERE, Use scarecrow plugin to get the farm IDs, use the numbers without ", in this case, I'm using 2 16x16, that when they r finished, 
                        // it takes a 5m break and it's already ready for harvest, in case of onions and barleys.
                        uint[] farms = {11683};
                            
                            foreach (uint farm in farms){
                                
                                Log("Farm: "+farm);
                                CollectItemsAtFarm(item, "Gathering: Spend 1 Labor to gather materials.", 11683);
                                CollectItemsAtFarm(item, "Farming: Spend 1 Labor to harvest crops.", 11683);
                                PlantItemsAtFarm(seed, farm);
                            }
                            
                        
                            } else if (me.name == "Charactername") { 

                        // PUT FARM IDs HERE, in this case using 1 16x16 and 5 8x8                        
                            uint[] farms = {6252, 18973, 22692, 7270, 6279, 16197};
                            
                            foreach (uint farm in farms){
                                
                                Log("Farm: "+farm);
                                CollectItemsAtFarm(item, "Gathering: Spend 1 Labor to gather materials.", farm);
                                CollectItemsAtFarm(item, "Farming: Spend 1 Labor to harvest crops.", farm);
                                PlantItemsAtFarm(seed, farm);
                            }
                            
                         } else if (me.name == "Charactername") { 
                        
                        // PUT FARM IDs HERE
                         uint[] farms = {18803, 18431};
                            
                            foreach (uint farm in farms){
                                
                                Log("Farm: "+farm);
                                CollectItemsAtFarm(item, "Gathering: Spend 1 Labor to gather materials.", farm);
                                CollectItemsAtFarm(item, "Farming: Spend 1 Labor to harvest crops.", farm);
                                PlantItemsAtFarm(seed, farm);
                            }
                            
                        } 
                        
                        // end else if
                        //else Thread.Abort();
                        
                        //get ending count of seed
                        var itemEnd1 = itemCount(seed);
                        var itemEnd2 = itemCount(item);
                        //get seed used and show in log
                        var used1 = itemStart1 - itemEnd1;
                        var used2 = itemEnd2 - itemStart2;
                        Log("------------------------");
                        Log("Character: " + me.name);
                        Log(item+" Gathered: " + used2);
                        Log(seed+" Used: " + used1);


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


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


                    //Generate random time between 4-5 minutes       
                    Random random = new Random();
                    var mseconds  = random.Next(4200, 4300) * 1000;
                    var seconds   = mseconds / 1000;
                    Log("Waiting for " + seconds.ToString() + " seconds");


                    //sleep for random time
                    Thread.Sleep(mseconds);
                }
                else Thread.Sleep(30000);
            }
        }
    }
}
 
is it only Gathering the stuff or also Planting it ? because when i start it he is just flying to my house and after that he just stands there for hours
It's also for gathering, make sure these two lines are correct
CollectItemsAtFarm(item, "Gathering: Spend 1 Labor to gather materials.", 11683);
CollectItemsAtFarm(item, "Farming: Spend 1 Labor to harvest crops.", 11683);

And I see you haven't filled in your char name..
But the script shouldn't make you fly.. I experienced it opening its glider while jumping for afk. You should try to turn the double tap to open glider option in Aa
 
i edited "MyName" ^^ so actually my name is standing there.. and it only requires 1 Labor to gather it.. but i just read "Gathering" and "Farming" isnt that the same?

Gathering = When seeds are ready to to gather
Farming = ??? whats that supposed to mean ?xD

edit: also i just tried to copy and paste the script at first page and changed it to my name and my farm but he is doing the same like he did with Iris. Just staying around my house and doing nothing..

Maybe its because my game is in German?
 
Last edited:
tried other spot and with carrots... same result.. he will not plant/gather around my 16x16 house.. :/
 
I'm wondering if this works with diffrent characters on diffrent accounts? Or only on diffrent characters on same account?
 
I'm wondering if this works with diffrent characters on diffrent accounts? Or only on diffrent characters on same account?


Works on different chars from as many accounts as your pc/ab support, try the following, delete everything and copy and paste, buy Barleys, just change your char name and put your farm/house id where it says, then if it works, you try with other things.
 
so i tested it now on a 16x16 farm and its working without problems.. seems like it doesnt work with houses o.o
 
Just got a ban after using this for 10 hours straight :)

Is there any possibility to make the bot log out, or go to character select screen after it's done planting the seeds, and come back when theyre done?
 
Just got a ban after using this for 10 hours straight :)

Is there any possibility to make the bot log out, or go to character select screen after it's done planting the seeds, and come back when theyre done?

Sorry to hear about that... I only got banned for using multiple accounts in the same ip, like 6+ accounts, and I have some douché neighboors who always report me :/

F2P or Patron account?

PS: Yeah, I supposed it could be coded, but at the time, I'm using for low duration plants, so when it's finished planting, it's already done for harvest, and atm I don't really have the time to do it, because of work, however you could tinker with the code and try putting a Thread.Sleep() and using the GameState enum.
 
Sorry to hear about that... I only got banned for using multiple accounts in the same ip, like 6+ accounts, and I have some douché neighboors who always report me :/

F2P or Patron account?

PS: Yeah, I supposed it could be coded, but at the time, I'm using for low duration plants, so when it's finished planting, it's already done for harvest, and atm I don't really have the time to do it, because of work, however you could tinker with the code and try putting a Thread.Sleep() and using the GameState enum.

No need to be sorry. :) My plants had some longer duration +- 50 minutes of 'afking'.
I've send you a personal message, hope to hear from you :)
 
so i tested it now on a 16x16 farm and its working without problems.. seems like it doesnt work with houses o.o

Unfortunately not much I can do there, since I'm using a method that is native from AB API.
 
This is just an idea, but is there a way to have the farm cart summoned and just click owners mark once a minute?
 
I am new to programming in general and am very interested in how this gathers when I do not see how " CollectItemsAtFarm " works properly.

I can get it to plant, but not collect.
 
Last edited:
I am new to programming in general and am very interested in how this gathers when I do not see how " CollectItemsAtFarm " works properly.

I can get it to plant, but not collect.
Make sure the button collection (text.) exactly copied and pasted in the code.
 
Make sure the button collection (text.) exactly copied and pasted in the code.

I restarted from scratch, just to make sure i did it right

here is what I did wrong

Barley should of been Mature Barley
Code:
string item = "Mature Barley"; // PUT WHAT YOU WANT TO GATHER/FARM HERE

took me a bit to sort it out, but i think i have it working right now.

EDIT:

I am thinking of making a GUI for this with either a text field or drop down with seeds and then have another based on the seeds fill the gathering.
 
Last edited:
I did it! To Work! The case was a substitute is not blank. Oh, this Russian version ...
Attention. The Russian community who need a working script, can provide.
Thank you for the help.
He who seeks will always find.
Hi, if you please - write an example for Russian server, how to make that work, and then the plant, but does not collect



CollectItemsAtFarm(item, "Собрать урожай (1 оч. работы).", farm);
 
Last edited:
Back
Top