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

Yes, fixed. The problem remains.

80502614x8g2L7S3.png
 
Unless the API is broken, which is unlikely, that is probably a naming issue, double check plz, hovering on the Iris, considering it is case sensitive, also, are you planting Iris in temperate climate? I ask, because otherwise the item name will be something like "Mature Iris", you can also check hovering with the mouse on the iris when ready for harvest.
 
Last edited:
The bad news. Well I will try to as manipulated, something happens.
Есть русские товарищи которые настроили данный плагин?
 
I have a big request. Give a screenshot of its English version, what you wrote when the cause on the icon collection.

W0b0N6349845M929.png
 
I have a big request. Give a screenshot of its English version, what you wrote when the cause on the icon collection.

W0b0N6349845M929.png

Not at home atm, will do when I get back home.

But when I hover the mouse in F it appears: "Farming: Spend 1 Labor to harvest crops.", in a single line, write instead,

Code:
CollectItemsAtFarm(item, "[Exactly as it appears in that screenshot]", farm);
 
Not at home atm, will do when I get back home.

But when I hover the mouse in F it appears: "Farming: Spend 1 Labor to harvest crops.", in a single line, write instead,

Code:
CollectItemsAtFarm(item, "[Exactly as it appears in that screenshot]", farm);

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.
 
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.

Awesome man, glad I could help, didn't quite understand the part "The case was a substitute is not blank", anyway, in case you want to provide the code to help other russian users, feel free to use this space.
 
So I have this... it's just making me jump for some reason... Can you tell me why? I just want to farm barley on my 3 8x8's.

Does this also work for 24/24? Just wondering.

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 = "Barley"; // PUT WHAT YOU WANT TO GATHER/FARM HERE
string seed = "Barley 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 == "mycharname"){

// 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 = {9050, 4622, 2859};

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, 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(240, 300) * 1000;
var seconds = mseconds / 1000;
Log("Waiting for " + seconds.ToString() + " seconds");


//sleep for random time
Thread.Sleep(mseconds);
}
else Thread.Sleep(30000);
}
}
}
}
 
So I have this... it's just making me jump for some reason... Can you tell me why? I just want to farm barley on my 3 8x8's.

Does this also work for 24/24? Just wondering.

It works as well as any plugin would work on a 24x24 in AB, the only thing I read, is that sometimes AB doesn't work so well on Tatched in a custom angle.
 
Would it be difficult to add code to use a labor potion if its off cooldown and you're under a set amount of labor? Also I am curious how to code archebuddy to automatically go buy seeds if you are under a certain amount and not in the middle of planting/gathering etc.
 
Would it be difficult to add code to use a labor potion if its off cooldown and you're under a set amount of labor? Also I am curious how to code archebuddy to automatically go buy seeds if you are under a certain amount and not in the middle of planting/gathering etc.

All you need to do to use a labor potion is to add the line inside the if in case of labor > 200, about the buy seeds is a bit more complicated, specially considering the path from farm to vendor is not always clear, housing areas look more and more like slums, too easy to get stucked.


Code:
UseItem("Worker's Compensation");
 
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
 
Last edited:
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

You wrote wrong, it's "Spend up to 2 Labor", not "Spend 2 Labor".
 
You wrote wrong, it's "Spend up to 2 Labor", not "Spend 2 Labor".



i did not wrote it wrong, i copy it from code that was there ...........and it is working fine for all other seed except cotton
I have just change number 1 to number 2
 
i did not wrote it wrong, i copy it from code that was there ...........and it is working fine for all other seed except cotton
I have just change number 1 to number 2

Again, you wrote wrong, hover your mouse on the F button when trying to Gather cottons, and you will see it's not just change 1 to 2, the "phrase" is slightly different.
 
Back
Top