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

Scarecrow loop

cheese321

New Member
Joined
Sep 21, 2014
Messages
14
Reaction score
0
I'm using the scarecrow plugin and it works great. I want to ask if it's possible to add a loop/repeat option so the bot is always planting and gathering the same seeds. I want to plant and harvest potatoes non stop, but after the plugin finish it ask me again what I want to plant/gather.
I tried this code but it didn't work:

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)        
{
            PlantItemsAtFarm("Potato Seed","YourCharacterName");
            CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.","YourCharacterName");
        }
    }
}

I would be grateful if someone can help me with that code or if you can add a loop option in the scarecrow plugin.
 
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)        
			{
				PlantItemsAtFarm("Potato Seed","YourCharacterName");
				CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.","YourCharacterName");
				Thread.Sleep(55555);
			}
        }
    }
}

And recheck plant\skill names\char name
 
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)        
			{
				PlantItemsAtFarm("Potato Seed","YourCharacterName");
				CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.","YourCharacterName");
				Thread.Sleep(55555);
			}
        }
    }
}

And recheck plant\skill names\char name

what should i do if i have multiple farms, 8 to be exact .
 
what should i do if i have multiple farms, 8 to be exact .
Use farm uniqId instead of OwnerName

for example write plugin, that will be:
Log(me.target.uniqId);

Select each farm and run this plugin, collect 8 ids. (IDs changed after each server restart)
After insert this ids.
Code:
while (true)        
			{
				PlantItemsAtFarm("Potato Seed",11111);
				CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.",11111);
				PlantItemsAtFarm("Potato Seed",22222);
				CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.",22222);
				Thread.Sleep(55555);
			}
 
Hey, can you give the file editing? for i use.?pls.
 
Am i right in thinking:

yournamespace = the farm i'm planting at?
Yourcharactername = my active character i'm using to plant/gather

should i be changing yourclass? if so, what to?

when i click the play button after compiling it just doesnt do anything?

It's working; i think!

all the names are for the farm you're on; silly me!
 
Last edited:
Out, can you add the requested feature on the default scarecrow please? Some of us have 2-4 farms close to each other and i would love to plant something and immediately harvest them. For example, potatoes are on 10 minutes and i would love to be able to plant 1 farm and by the time i plant the entire farm time will finish to be able to harvest it and then plant 1 farm > harvest and so on.

A button with Plant/Harvest x 5, 6, 10 times, feature would be amazing :)
 
Out, can you add the requested feature on the default scarecrow please? Some of us have 2-4 farms close to each other and i would love to plant something and immediately harvest them. For example, potatoes are on 10 minutes and i would love to be able to plant 1 farm and by the time i plant the entire farm time will finish to be able to harvest it and then plant 1 farm > harvest and so on.

A button with Plant/Harvest x 5, 6, 10 times, feature would be amazing
Yep, soon, already recorded :)
 
When can we test it ????:D

For your info: In 10 mins bot will plant around 12 Lines of Potatoes, so thats Half Big scarecrow garden and 2 more lines. So, for Potatoe 1 big garden Harvest/Plant on Autoloop would be awesome. FTW! :)
 
Last edited:
Yeah I would be so happy if this was added in... I have 8 8x8 farms and 1 16x16... all near each other this would be sexy.
 
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)        
			{
				PlantItemsAtFarm("Potato Seed","YourCharacterName");
				CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.","YourCharacterName");
				Thread.Sleep(55555);
			}
        }
    }
}

And recheck plant\skill names\char name

This worked perfectly last night after putting my character name in the right spots and filling in the right seed name for potatoes...but this morning it has gone back to giving me the dialogue asking me to pick the seed name and farm name..?
 
This worked perfectly last night after putting my character name in the right spots and filling in the right seed name for potatoes...but this morning it has gone back to giving me the dialogue asking me to pick the seed name and farm name..?

Your brain has died and you are running scarecrow not that plugin xD
 
Your brain has died and you are running scarecrow not that plugin xD


And will you please make something already so I can throw more money at you ?! Gosh!


2RA31Hl.png
 
Use farm uniqId instead of OwnerName

for example write plugin, that will be:
Log(me.target.uniqId);

Select each farm and run this plugin, collect 8 ids. (IDs changed after each server restart)
After insert this ids.
Code:
while (true)        
            {
                PlantItemsAtFarm("Potato Seed",11111);
                CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.",11111);
                PlantItemsAtFarm("Potato Seed",22222);
                CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.",22222);
                Thread.Sleep(55555);
            }

The line Log(me.target.uniqId); didn't work for me in a plugin. Instead I started scarecrow and took the number in the parantheses from that, assuming that is the farms id. I implemented that into my taters farming script so that it was this:
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)        
            {
                PlantItemsAtFarm("Potato Seed",15254);
                CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.",15254);
                Thread.Sleep(55555);
            }
        }
    }
}

No luck, bot just sits there afk like a bump on a log. (15254 being the number I took from scarecrow)
 
The line Log(me.target.uniqId); didn't work for me in a plugin. Instead I started scarecrow and took the number in the parantheses from that, assuming that is the farms id. I implemented that into my taters farming script so that it was this:
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)        
            {
                PlantItemsAtFarm("Potato Seed",15254);
                CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.",15254);
                Thread.Sleep(55555);
            }
        }
    }
}

No luck, bot just sits there afk like a bump on a log. (15254 being the number I took from scarecrow)

The potato seed name is actually Potato Eyes.
 
The code doesn't work here I think...

I used following code:

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

namespace Scarecrow
{
    public class Scarecrow : Core
    {
        public void PluginRun()
        {
            while (true)        
            {
                PlantItemsAtFarm("Garlic Seed","Character name");
                CollectItemsAtFarm("Garlic","Farming: Spend 2 Labor to harvest crops.","Character name");
                Thread.Sleep(55555);
            }
        }
    }
}

Character name stands for the actual name of my character though.
Is it right that this is the whole plugin now or should it be copied in the original one?
Do I have to adjust the sleep time?

When I start the plugin the PlantsSelection screen pops up, which is awkward because I shouldn't need to choose the seed and farm again, right?
Anyways, when choose the seed and farm and start planting, it does the planting, but after planting is done the screen pops up again and it wouldn't gather when the crops are ready.

Also, the anti-afk doesn't seem to work. I get logged out after 25 mins and the Away text comes up after 5 mins.

So Out, could you please upload a .dll which actually works? Thank you very much in advance.
 
Last edited:
Back
Top