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

Illegal Farm planter/gather

Yeeshak

New Member
Joined
Oct 2, 2014
Messages
12
Reaction score
0
Hello,

I have been using the Scarecrow plugin of ArcheBuddy to plant/gather inside my scarecrows (the house seems buggy, i can't plant or gather from it btw.) but i'm looking for some help to get it working in areas that are not scarecrows or houses, to make illegal farms.

The things i'm looking for are:

- Plant in a large/small area that is not a scarecrow/house. Like, i have 50 seeds, i want the plugin to plant them around me.
- Register the timer of the things I do plant to alert me or "idle" without being disconnected in some way to come gather them as the timer ends.
- Gather them as soon as possible.

Other things i'm looking for if it's possible:

- Check for illegal farms around, note them with timers somewhere for me to check them later on. Actually, the radars only show the already done trees/herbs to gather, not thoses who are under timer, so we can pass near one farm who is 1m to complete and don't see it.


If someone could help me to make something like it or have something like it, i think it will be a great plugin for the community to share.


Thanks !
 
Hi,

I have the same issue.
RoundZone does work, but RectangleZone doesn't want to plant anything.

Here is my code:
Code:
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
using ArcheBuddy.Bot.Classes;

namespace IllegalFarm{
   public class IllegalFarm : Core
   {
       public static string GetPluginAuthor()
       {
           return "Lyeos";
       }

       public static string GetPluginVersion()
       {
           return "1.0.0.0";
       }

       public static string GetPluginDescription()
       {
           return "...";
       }

       //Call on plugin start
       public void PluginRun()
       {                                                                                                                           
          try
            {
                Log(DateTime.Now.ToShortTimeString() + " >> ----- IllegalFarm started -----");
                
                var zone = new RectangleZone(20,20,me.X,me.Y);
                
                while (true)
                {
                    PlantItemsInZone("Cotton Seed", zone);
                    
                    Thread.Sleep(10);
                }
            }
            catch (Exception e)
            {
                if (e.GetType() != typeof(System.Threading.ThreadAbortException))
                {
                    Log(DateTime.Now.ToShortTimeString() +" ERROR " +GetLastError().ToString() +" " +e.GetType().ToString() +" " +e.StackTrace);
                    Log(e.Message);
                }
            }
       }
       //Call on plugin stop
       public void PluginStop()
       {                    
           Log(DateTime.Now.ToShortTimeString() + "  ----- IllegalFarm stopped ----- <<");
       }
   }
}
 
Man, changing that script to round zone does some weird shit lol. Looks like someone put seeds in a minigun and shot them in lines all over the place. I had a script that I wrote in AHK that would use the strafe keys and lay down a grid of plants pretty quickly.
 
Man, changing that script to round zone does some weird shit lol. Looks like someone put seeds in a minigun and shot them in lines all over the place. I had a script that I wrote in AHK that would use the strafe keys and lay down a grid of plants pretty quickly.

Can you share with us some piece of code ? we are trying to make it work but without any succes right now :s
 
Back
Top