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

Farming Plugin Any In Development?

SoulWeaver

New Member
Joined
Sep 12, 2011
Messages
225
Reaction score
0
I was wondering if there are any farming plugin in available something that will harvest your farms when their done growing and or planting more if necessary
 
There are plenty around just looking the the plugin section lol

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()
        {
            PlantItemsAtFarm("Plantname Seed/Sapling","Your Name");
            CollectItemsAtFarm("PlantNameWhenDone","Logging/Gathering/Farming: Spend up to changeme Labor to chop down a tree.","Your Name");

            //Same but in random zone
            RoundZone z = new RoundZone(me.X,me.Y,25);  
            PlantItemsInZone("sapling", z);
            CollectItemsInZone("Tree","Logging: Spend up to 10 Labor to chop down a tree.",z);
        }
    }
}
This part you can edit for farms
Code:
            PlantItemsAtFarm("Plantname Seed/Sapling","Your Name");
            CollectItemsAtFarm("PlantNameWhenDone","Logging/Gathering/Farming: Spend up to changeme Labor to chop down a tree.","Your Name");
This part you can edit for unprotected zones
Code:
            //Same but in random zone
            RoundZone z = new RoundZone(me.X,me.Y,25);  
            PlantItemsInZone("sapling", z);
            CollectItemsInZone("Tree","Logging: Spend up to 10 Labor to chop down a tree.",z);
        }
 
What if you want to collect all guild farms?
using the script above can accomplish this if you edit who planted them into the script. you might just want to use the scarecrow plugin for this might be easier
 
using the script above can accomplish this if you edit who planted them into the script. you might just want to use the scarecrow plugin for this might be easier

That's what I am using now but it shows everyones farm, and I always have to go through a list of like 90+ people to select my 20. I would love to just click "Guild" and thats it . :P
 
That's what I am using now but it shows everyones farm, and I always have to go through a list of like 90+ people to select my 20. I would love to just click "Guild" and thats it . :P

Open PlantSelection.cs in the scarecrow source and change loop at line 43 to include a check for guild or specific owner name.
 
Open PlantSelection.cs in the scarecrow source and change loop at line 43 to include a check for guild or specific owner name.

Ty! But how do I do that?

This is what I see inside the loop:
for (int ii = 0; ii < len; ii ++)
{
if (isCharacterInFamilyDelegateHandler(((Housing)doodas[ii]).ownerName))
{
var comboItem = new ComboItem
{
Name =
string.Format(
"(C) {0}",
FormatName((Housing)doodas[ii])),
Object = (Housing)doodas[ii],
};

checkedListBoxFarms.Items.Add(comboItem);
doodas.RemoveAt(ii);
ii --;
len --;
}
 
Ty! But how do I do that?

This is what I see inside the loop:
for (int ii = 0; ii < len; ii ++)
{
if (isCharacterInFamilyDelegateHandler(((Housing)doodas[ii]).ownerName))
{
var comboItem = new ComboItem
{
Name =
string.Format(
"(C) {0}",
FormatName((Housing)doodas[ii])),
Object = (Housing)doodas[ii],
};

checkedListBoxFarms.Items.Add(comboItem);
doodas.RemoveAt(ii);
ii --;
len --;
}

If you just want a rough-and-ready version probably best just checking the name against your characters.

Code:
List<string> chars = new List<string>()
	{
	    "Char1",
	    "Char2",
	    "Char3"
	};

Then swap the family check with a check against this list

Code:
if (isCharacterInFamilyDelegateHandler(((Housing)doodas[ii]).ownerName))

to

Code:
if (chars.Contains(((Housing)doodas[ii]).ownerName))

Then finally delete the loop on line 63 to stop it from adding all other farms.
 
If you just want a rough-and-ready version probably best just checking the name against your characters.

Code:
List<string> chars = new List<string>()
	{
	    "Char1",
	    "Char2",
	    "Char3"
	};

Then swap the family check with a check against this list

Code:
if (isCharacterInFamilyDelegateHandler(((Housing)doodas[ii]).ownerName))

to

Code:
if (chars.Contains(((Housing)doodas[ii]).ownerName))

Then finally delete the loop on line 63 to stop it from adding all other farms.

You are amazing, that worked ty!
 
How could I make a script plant a bazillion potatos in the wild, anywhere where i've put my character down ?
 
How could I make a script plant a bazillion potatos in the wild, anywhere where i've put my character down ?

Create a new RoundZone around you and plant the shit out of it. Something like

Code:
RoundZone z = new RoundZone(me.x, me.y, 32)
PlantItemsInZone("Potato Seed", z, 0);

The 32 is the size of the zone. Higher = bigger circle.
 
32 is absolutely huge btw. I dropped mine all the way down to like 8 and it was still using a crap ton of seeds (and labor) just to plant.
 
I'm sorry if im uber retarded when it comes to programming/scripting, but will someone educate me how to make the scarecrow loop; for some reason i just cant figure it out :(

Sorry!

edit: i should mention that i've tried the scripts in the 2nd post renaming it but when i try to run it after compiling it, it does nothing :(
 
Last edited:
Back
Top