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
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);
}
}
}
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);
}
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 easierWhat 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
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 .![]()
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 --;
}
List<string> chars = new List<string>()
{
"Char1",
"Char2",
"Char3"
};
if (isCharacterInFamilyDelegateHandler(((Housing)doodas[ii]).ownerName))
if (chars.Contains(((Housing)doodas[ii]).ownerName))
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.
How could I make a script plant a bazillion potatos in the wild, anywhere where i've put my character down ?
RoundZone z = new RoundZone(me.x, me.y, 32)
PlantItemsInZone("Potato Seed", z, 0);
is this the same sida from bol and sac?Open PlantSelection.cs in the scarecrow source and change loop at line 43 to include a check for guild or specific owner name.
is this the same sida from bol and sac?