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

[Plugin] Another auto farming plugin, now with farmID auto assignment!

Can you add:

-Move every X plants like the plugin in the store which costs 1 euro?

Its not more than 2 lines, could be great

Thanks
 
Can you add:

-Move every X plants like the plugin in the store which costs 1 euro?

Its not more than 2 lines, could be great

Thanks
It's actually a whole new plugin, but I think it would upset the other guy if I made it public.
 
I get the error "8:41:02 PM: c:\Users\X\Desktop\NewOne.cs(281,15) : error CS1518: Expected class, delegate, enum, interface, or struct" when I try to compile your script?

look

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

namespace YourNamespace {
    public class YourClass: Core { 
        
       public static string GetPluginAuthor()
       {
           return "amazingnessn";
       }
       public static string GetPluginVersion()
       {
           return "1.1";
       }

       public static string GetPluginDescription()
       {
           return "Farming Bot - Auto gather/plant your crops with auto farm ID";
       }
       
       // ----------------------------------------------- if you have more/less # of farms, add/comment out what you need -------------------------------- 
       // ------------------------------------------------ Change Farm Names Here --------------------------------------------------------- 
       private string farm1name = "Orange";
       private string farm2name = "Orange";
       private string farm3name = "Orange";
       private string farm4name = "Orange";
       private string farm5name = "Orange";    
       private string farm6name = "Yellow";
       private string farm7name = "Yellow";
       private string farm8name = "Yellow";
       private string farm9name = "Yellow";
       private string farm10name = "Yellow";
              
       private uint farm1id;
       private uint farm2id;
       private uint farm3id;
       private uint farm4id;
       private uint farm5id; 
       private uint farm6id;
       private uint farm7id;
       private uint farm8id;
       private uint farm9id;
       private uint farm10id;
       
       // -------------------- Gps Functions, copy/paste if you have farms spread out and need gps to go between them --------------------//
       private Gps gps;
   //   string _gpsfile = "\\plugins\\Farms\\Farming.db3"; // COMMENT OUT IF NOT USING GPS       
       public void MoveToFarm()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms");                
         }
       public void MoveToVendor()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Seed Merchant");                
         }
       
       
       public void GetFarmIds()
        {   
            
            // Don't edit this if you don't know what it does :p
            int p       = 0;
            List<long> farmids = new List<long>();
            List<string> farmnames = new List<string>();
            List<Creature> farms = getCreatures().Where(x => x.type == BotTypes.Housing).ToList();
            List<Creature> farms1 = farms.Where(x => x.ownerUniqId == me.uniqId).ToList();
            List<Creature> farmsfam = farms.Where(x=> x.familiId == me.familiId).ToList();
            foreach(var y in farms)   { 
                if (farms1.Count > 0) {     
                   Housing plnt = farms1.First() as Housing;
                   farmids.Add(plnt.uniqHousingId);
                   farmnames.Add(plnt.name);
                   farms1.RemoveAt(0);
                }
                
                if (me.familiId != 0 && farmsfam.Count > 0) {
                   Housing plnt1 = farmsfam.First() as Housing;
                   farmids.Add(plnt1.uniqHousingId);
                   farmnames.Add(plnt1.name);
                   farmsfam.RemoveAt(0);
                }   
           }
            foreach(var i in farmnames){
                if (farmnames[p] == this.farm1name) { this.farm1id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm2name) { this.farm2id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm3name) { this.farm3id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm4name) { this.farm4id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm5name) { this.farm5id = (uint)farmids[p]; }     
                if (farmnames[p] == this.farm6name) { this.farm6id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm7name) { this.farm7id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm8name) { this.farm8id = (uint)farmids[p]; }  
                if (farmnames[p] == this.farm9name) { this.farm9id = (uint)farmids[p]; } 
                if (farmnames[p] == this.farm10name) { this.farm10id = (uint)farmids[p]; }  
                p++;              
            }        
         }
                   
        public void PluginRun() { 
            ClearLogs();
            Log("Starting Farm Bot...");            
            
            // --------------------------------------- stops if under this much labor, change if desired---------------------------------------------------
            int laborstop = 200;
            // ------------------------------------- put farmID, seed, plant, collect strings here --------------------------------------
            //FARM 1
            var farm1seed    = "Orange Plate Coral Polyp";
            var farm1plant   = "Orange Coral";
            var farm1collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 2
            var farm2seed    = "Orange Plate Coral Polyp";
            var farm2plant   = "Orange Coral";
            var farm2collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 3
            var farm3seed    = "Orange Plate Coral Polyp";
            var farm3plant   = "Orange Coral";
            var farm3collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 4
            var farm4seed    = "Orange Plate Coral Polyp";
            var farm4plant   = "Orange Coral";
            var farm4collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 5
            var farm5seed    = "Orange Plate Coral Polyp";
            var farm5plant   = "Orange Coral";
            var farm5collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";   
            //FARM 6
            var farm6seed    = "Yellow Plate Coral Polyp";
            var farm6plant   = "Yellow Coral";
            var farm6collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 7
            var farm7seed    = "Yellow Plate Coral Polyp";
            var farm7plant   = "Yellow Coral";
            var farm7collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 8
            var farm8seed    = "Yellow Plate Coral Polyp";
            var farm8plant   = "Yellow Coral";
            var farm8collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 9
            var farm9seed    = "Yellow Plate Coral Polyp";
            var farm9plant   = "Yellow Coral";
            var farm9collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 10
            var farm10seed    = "Yellow Plate Coral Polyp";
            var farm10plant   = "Yellow Coral";
            var farm10collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";

                COMENT OUT BUY SHIT       
            // ----------------------------------------- how many seeds to buy when you get low -----------------------------------------
            var farm1seedbuy = 1000;    
            var farm2seedbuy = 1000;
            var farm3seedbuy = 1000;
            //var farm4seedbuy = 1000;
            //var farm5seedbuy = 1000;
            while (true) {                         
                var farm1seedcount = itemCount(farm1seed);
                var farm2seedcount = itemCount(farm2seed);
                var farm3seedcount = itemCount(farm3seed);
                //var farm4seedcount = itemCount(farm4seed);
                //var farm5seedcount = itemCount(farm5seed);
                //Gather infos
                if (gameState == GameState.Ingame){
                GetFarmIds();
                Log(farm1id.ToString());
                Log(farm2id.ToString());
                Log(farm3id.ToString());
                //get Labor points 
                int labor = me.laborPoints;               
                //Start Doin Stuff
                //if Labor > 200
                if (labor > laborstop) {
                    
                    //     if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                        if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                        if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                        if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                        if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }                    // COMMENT OUT BUY SHIT                     
                    
                    //add/remove farms here
                    //Plant farm 1  
                    SetPlantMotionType(PlantMotionType.SnakeFromBorder);        // change motion type if needed
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);                    
                    PlantItemsAtFarm(farm1seed, farm1id);
              
                    //Plant farm 2
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    
                    //Plant farm 3
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    PlantItemsAtFarm(farm3seed, farm3id); 

                    //Plant farm 4
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    PlantItemsAtFarm(farm4seed, farm4id); 
                    
                    //Plant farm 5
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    PlantItemsAtFarm(farm5seed, farm5id);      
                    //Plant farm 6  
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);                    
                    PlantItemsAtFarm(farm6seed, farm6id);
              
                    //Plant farm 7
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    
                    //Plant farm 8
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    PlantItemsAtFarm(farm8seed, farm8id); 

                    //Plant farm 9
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    PlantItemsAtFarm(farm9seed, farm9id); 
                    
                    //Plant farm 10
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    PlantItemsAtFarm(farm10seed, farm10id); 
                                     
                    //if Labor < 200 wait 
                } else { 
                    PlantItemsAtFarm(farm1seed, farm1id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    PlantItemsAtFarm(farm3seed, farm3id);
                    PlantItemsAtFarm(farm4seed, farm4id);
                    PlantItemsAtFarm(farm5seed, farm5id);   
                    PlantItemsAtFarm(farm6seed, farm6id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    PlantItemsAtFarm(farm8seed, farm8id);
                    PlantItemsAtFarm(farm9seed, farm9id);
                    PlantItemsAtFarm(farm10seed, farm10id);
                    Log("Labor under 200, waiting to regen");
                }

                   //Generate random time between 3-5 minutes       
                Random random    = new Random();                                   
                decimal mseconds = random.Next(180, 300) * 1000;
                decimal seconds  = mseconds / 1000;
                decimal minutes  = seconds / 60;
                Log("Waiting for " + minutes.ToString() + " minutes");

                //sleep for random time
                Thread.Sleep((int)mseconds);   
            }
            }
        }
         //Call on plugin stop
       public void PluginStop()   
       { 
            Log("Plugin Stopped...");
       }   
   }
 
I get the error "8:41:02 PM: c:\Users\X\Desktop\NewOne.cs(281,15) : error CS1518: Expected class, delegate, enum, interface, or struct" when I try to compile your script?
Somehow you misplaced brackets. Right before "public void PluginStop()" remove one bracket and place one at the VERY end of code.
After that I had other errors that had to do with you customization of the script, but I think you just got stuck before you could get to those. If you need more help post back in the thread.

Also I might mention that your farm names all need to be different, as the plugin will just assign the Id of the last farm name it finds with the name "Orange" to all farms with the name Orange.
 
Last edited:
Going to need more context. Any errors? Edit strings correctly?

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

namespace YourNamespace {
    public class YourClass: Core { 
        
       public static string GetPluginAuthor()
       {
           return "amazingnessn";
       }
       public static string GetPluginVersion()
       {
           return "1.1";
       }

       public static string GetPluginDescription()
       {
           return "Farming Bot - Auto gather/plant your crops with auto farm ID";
       }
       
       // ----------------------------------------------- if you have more/less # of farms, add/comment out what you need -------------------------------- 
       // ------------------------------------------------ Change Farm Names Here --------------------------------------------------------- 
       private string farm1name = "Gazebo Farm";
       private string farm2name = "Thatched Farmhouse";
       private string farm3name = "Scarecrow Farm";
       //private string farm4name = "FARM NAME HERE";
       //private string farm5name = "FARM NAME HERE";
              
       private uint farm1id;
       private uint farm2id;
       private uint farm3id;
       //private uint farm4id;
       //private uint farm5id;
       
       // -------------------- Gps Functions, copy/paste if you have farms spread out and need gps to go between them --------------------//
       private Gps gps;
       string _gpsfile = "\\plugins\\Farmer\\Farming.db3"; // COMMENT OUT IF NOT USING GPS       
       public void MoveToFarm()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms");                
         }
       public void MoveToVendor()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Seed Merchant");                
         }
       
       
       public void GetFarmIds()
        {   
            
            // Don't edit this if you don't know what it does :p
            int p       = 0;
            List<long> farmids = new List<long>();
            List<string> farmnames = new List<string>();
            List<Creature> farms = getCreatures().Where(x => x.type == BotTypes.Housing).ToList();
            List<Creature> farms1 = farms.Where(x => x.ownerUniqId == me.uniqId).ToList();
            List<Creature> farmsfam = farms.Where(x=> x.familiId == me.familiId).ToList();
            foreach(var y in farms)   { 
                if (farms1.Count > 0) {     
                   Housing plnt = farms1.First() as Housing;
                   farmids.Add(plnt.uniqHousingId);
                   farmnames.Add(plnt.name);
                   farms1.RemoveAt(0);
                }
                
                if (me.familiId != 0 && farmsfam.Count > 0) {
                   Housing plnt1 = farmsfam.First() as Housing;
                   farmids.Add(plnt1.uniqHousingId);
                   farmnames.Add(plnt1.name);
                   farmsfam.RemoveAt(0);
                }   
           }
            foreach(var i in farmnames){
                if (farmnames[p] == this.farm1name) { this.farm1id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm2name) { this.farm2id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm3name) { this.farm3id = (uint)farmids[p]; }
                //if (farmnames[p] == this.farm4name) { this.farm4id = (uint)farmids[p]; }
                //if (farmnames[p] == this.farm5name) { this.farm5id = (uint)farmids[p]; }    
                p++;              
            }        
         }
                   
        public void PluginRun() { 
            ClearLogs();
            Log("Starting Farm Bot...");            
            
            // --------------------------------------- stops if under this much labor, change if desired---------------------------------------------------
            int laborstop = 200;
            // ------------------------------------- put farmID, seed, plant, collect strings here --------------------------------------
            //FARM 1
            var farm1seed    = "Azalea Seed";
            var farm1plant   = "Azalea Seedling";
            var farm1collect = "Azalea";
            //FARM 2
            var farm2seed    = "SEED NAME HERE";
            var farm2plant   = "PLANT NAME HERE";
            var farm2collect = "TOOLTIP STRING HERE";
            //FARM 3
            var farm3seed    = "SEED NAME HERE";
            var farm3plant   = "PLANT NAME HERE";
            var farm3collect = "TOOLTIP STRING HERE"; 
            /*//FARM 4
            var farm4seed    = "SEED NAME HERE";
            var farm4plant   = "PLANT NAME HERE";
            var farm4collect = "TOOLTIP STRING HERE"; 
            //FARM 5
            var farm5seed    = "SEED NAME HERE";
            var farm5plant   = "PLANT NAME HERE";
            var farm5collect = "TOOLTIP STRING HERE"; */

                
            // ----------------------------------------- how many seeds to buy when you get low -----------------------------------------
            var farm1seedbuy = 1000;    
            var farm2seedbuy = 1000;
            var farm3seedbuy = 1000;
            //var farm4seedbuy = 1000;
            //var farm5seedbuy = 1000;
            while (true) {                         
                var farm1seedcount = itemCount(farm1seed);
                var farm2seedcount = itemCount(farm2seed);
                var farm3seedcount = itemCount(farm3seed);
                //var farm4seedcount = itemCount(farm4seed);
                //var farm5seedcount = itemCount(farm5seed);
                //Gather infos
                if (gameState == GameState.Ingame){
                GetFarmIds();
                Log(farm1id.ToString());
                Log(farm2id.ToString());
                Log(farm3id.ToString());
                //get Labor points 
                int labor = me.laborPoints;               
                //Start Doin Stuff
                //if Labor > 200
                if (labor > laborstop) {
                    
                    if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                        if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                        if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                        if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                        //if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }                                       
                    
                    //add/remove farms here
                    //Plant farm 1  
                    SetPlantMotionType(PlantMotionType.Standart);        // change motion type if needed
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);                    
                    PlantItemsAtFarm(farm1seed, farm1id);
              
                    //Plant farm 2
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    
                    //Plant farm 3
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    PlantItemsAtFarm(farm3seed, farm3id); 

                    /*//Plant farm 4
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    PlantItemsAtFarm(farm4seed, farm4id); 
                    
                    //Plant farm 5
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    PlantItemsAtFarm(farm5seed, farm5id); */
                                     
                    //if Labor < 200 wait 
                } else { 
                    PlantItemsAtFarm(farm1seed, farm1id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    PlantItemsAtFarm(farm3seed, farm3id);
                    //PlantItemsAtFarm(farm4seed, farm4id);
                    //PlantItemsAtFarm(farm5seed, farm5id);
                    Log("Labor under 200, waiting to regen");
                }

                //Generate random time between 3-5 minutes       
                Random random    = new Random();                                   
                decimal mseconds = random.Next(180, 300) * 1000;
                decimal seconds  = mseconds / 1000;
                decimal minutes  = seconds / 60;
                Log("Waiting for " + minutes.ToString() + " minutes");

                //sleep for random time
                Thread.Sleep((int)mseconds);
            }
            }
        }
       //Call on plugin stop
       public void PluginStop()
       { 
           Log("Plugin Stopped...");
       } 
    }
}
 
Code:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;

namespace YourNamespace {
    public class YourClass: Core { 
        
       public static string GetPluginAuthor()
       {
           return "amazingnessn";
       }
       public static string GetPluginVersion()
       {
           return "1.1";
       }

       public static string GetPluginDescription()
       {
           return "Farming Bot - Auto gather/plant your crops with auto farm ID";
       }
       
       // ----------------------------------------------- if you have more/less # of farms, add/comment out what you need -------------------------------- 
       // ------------------------------------------------ Change Farm Names Here --------------------------------------------------------- 
       private string farm1name = "Gazebo Farm";
       private string farm2name = "Thatched Farmhouse";
       private string farm3name = "Scarecrow Farm";
       //private string farm4name = "FARM NAME HERE";
       //private string farm5name = "FARM NAME HERE";
              
       private uint farm1id;
       private uint farm2id;
       private uint farm3id;
       //private uint farm4id;
       //private uint farm5id;
       
       // -------------------- Gps Functions, copy/paste if you have farms spread out and need gps to go between them --------------------//
       private Gps gps;
       string _gpsfile = "\\plugins\\Farmer\\Farming.db3"; // COMMENT OUT IF NOT USING GPS       
       public void MoveToFarm()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms");                
         }
       public void MoveToVendor()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Seed Merchant");                
         }
       
       
       public void GetFarmIds()
        {   
            
            // Don't edit this if you don't know what it does :p
            int p       = 0;
            List<long> farmids = new List<long>();
            List<string> farmnames = new List<string>();
            List<Creature> farms = getCreatures().Where(x => x.type == BotTypes.Housing).ToList();
            List<Creature> farms1 = farms.Where(x => x.ownerUniqId == me.uniqId).ToList();
            List<Creature> farmsfam = farms.Where(x=> x.familiId == me.familiId).ToList();
            foreach(var y in farms)   { 
                if (farms1.Count > 0) {     
                   Housing plnt = farms1.First() as Housing;
                   farmids.Add(plnt.uniqHousingId);
                   farmnames.Add(plnt.name);
                   farms1.RemoveAt(0);
                }
                
                if (me.familiId != 0 && farmsfam.Count > 0) {
                   Housing plnt1 = farmsfam.First() as Housing;
                   farmids.Add(plnt1.uniqHousingId);
                   farmnames.Add(plnt1.name);
                   farmsfam.RemoveAt(0);
                }   
           }
            foreach(var i in farmnames){
                if (farmnames[p] == this.farm1name) { this.farm1id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm2name) { this.farm2id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm3name) { this.farm3id = (uint)farmids[p]; }
                //if (farmnames[p] == this.farm4name) { this.farm4id = (uint)farmids[p]; }
                //if (farmnames[p] == this.farm5name) { this.farm5id = (uint)farmids[p]; }    
                p++;              
            }        
         }
                   
        public void PluginRun() { 
            ClearLogs();
            Log("Starting Farm Bot...");            
            
            // --------------------------------------- stops if under this much labor, change if desired---------------------------------------------------
            int laborstop = 200;
            // ------------------------------------- put farmID, seed, plant, collect strings here --------------------------------------
            //FARM 1
            var farm1seed    = "Azalea Seed";
            var farm1plant   = "Azalea Seedling";
            var farm1collect = "Azalea";
            //FARM 2
            var farm2seed    = "SEED NAME HERE";
            var farm2plant   = "PLANT NAME HERE";
            var farm2collect = "TOOLTIP STRING HERE";
            //FARM 3
            var farm3seed    = "SEED NAME HERE";
            var farm3plant   = "PLANT NAME HERE";
            var farm3collect = "TOOLTIP STRING HERE"; 
            /*//FARM 4
            var farm4seed    = "SEED NAME HERE";
            var farm4plant   = "PLANT NAME HERE";
            var farm4collect = "TOOLTIP STRING HERE"; 
            //FARM 5
            var farm5seed    = "SEED NAME HERE";
            var farm5plant   = "PLANT NAME HERE";
            var farm5collect = "TOOLTIP STRING HERE"; */

                
            // ----------------------------------------- how many seeds to buy when you get low -----------------------------------------
            var farm1seedbuy = 1000;    
            var farm2seedbuy = 1000;
            var farm3seedbuy = 1000;
            //var farm4seedbuy = 1000;
            //var farm5seedbuy = 1000;
            while (true) {                         
                var farm1seedcount = itemCount(farm1seed);
                var farm2seedcount = itemCount(farm2seed);
                var farm3seedcount = itemCount(farm3seed);
                //var farm4seedcount = itemCount(farm4seed);
                //var farm5seedcount = itemCount(farm5seed);
                //Gather infos
                if (gameState == GameState.Ingame){
                GetFarmIds();
                Log(farm1id.ToString());
                Log(farm2id.ToString());
                Log(farm3id.ToString());
                //get Labor points 
                int labor = me.laborPoints;               
                //Start Doin Stuff
                //if Labor > 200
                if (labor > laborstop) {
                    
                    if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                        if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                        if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                        if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                        //if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }                                       
                    
                    //add/remove farms here
                    //Plant farm 1  
                    SetPlantMotionType(PlantMotionType.Standart);        // change motion type if needed
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);                    
                    PlantItemsAtFarm(farm1seed, farm1id);
              
                    //Plant farm 2
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    
                    //Plant farm 3
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    PlantItemsAtFarm(farm3seed, farm3id); 

                    /*//Plant farm 4
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    PlantItemsAtFarm(farm4seed, farm4id); 
                    
                    //Plant farm 5
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    PlantItemsAtFarm(farm5seed, farm5id); */
                                     
                    //if Labor < 200 wait 
                } else { 
                    PlantItemsAtFarm(farm1seed, farm1id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    PlantItemsAtFarm(farm3seed, farm3id);
                    //PlantItemsAtFarm(farm4seed, farm4id);
                    //PlantItemsAtFarm(farm5seed, farm5id);
                    Log("Labor under 200, waiting to regen");
                }

                //Generate random time between 3-5 minutes       
                Random random    = new Random();                                   
                decimal mseconds = random.Next(180, 300) * 1000;
                decimal seconds  = mseconds / 1000;
                decimal minutes  = seconds / 60;
                Log("Waiting for " + minutes.ToString() + " minutes");

                //sleep for random time
                Thread.Sleep((int)mseconds);
            }
            }
        }
       //Call on plugin stop
       public void PluginStop()
       { 
           Log("Plugin Stopped...");
       } 
    }
}
You didn't edit the farm name.
 
You didn't edit the farm name.

I did, but not in that code. Got it working but now every 3 minutes my char is moving to vendor without buying, is that normal? I dont want to do that

Thanks for helping :)

Edit: Not gathering... just planting
 
Last edited:
I removed the } where you told me and added one at the end but now I have this

2:02:55 PM: c:\Users\Mx\Desktop\NewOne.cs(268,14) : error CS1513: } expected

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

namespace YourNamespace {
    public class YourClass: Core { 

        
       public static string GetPluginAuthor()
       {
           return "amazingnessn";
       }
       public static string GetPluginVersion()
       {
           return "1.1";
       }

       public static string GetPluginDescription()
       {
           return "Farming Bot - Auto gather/plant your crops with auto farm ID";
       }
        
       
       // ----------------------------------------------- if you have more/less # of farms, add/comment out what you need -------------------------------- 
       // ------------------------------------------------ Change Farm Names Here --------------------------------------------------------- 
       private string farm1name = "one";
       private string farm2name = "two";
       private string farm3name = "three";
       private string farm4name = "four";
       private string farm5name = "five";    
       private string farm6name = "yellowone";
       private string farm7name = "yellowtwo";
       private string farm8name = "yellowthree";
       private string farm9name = "yellowfour";
       private string farm10name = "yellowfive";
              
       private uint farm1id;
       private uint farm2id;
       private uint farm3id;
       private uint farm4id;
       private uint farm5id; 
       private uint farm6id;
       private uint farm7id;
       private uint farm8id;
       private uint farm9id;
       private uint farm10id;
       
       // -------------------- Gps Functions, copy/paste if you have farms spread out and need gps to go between them --------------------//
        
   
       private Gps gps;
       //   string _gpsfile = "\\plugins\\Farms\\Farming.db3"; // COMMENT OUT IF NOT USING GPS       
       public void MoveToFarm()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms");                
         }
            public void MoveToVendor()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Seed Merchant");                
         }      
       
       
       
       public void GetFarmIds()
        {   
            
            // Don't edit this if you don't know what it does :p
            int p       = 0;
            List<long> farmids = new List<long>();
            List<string> farmnames = new List<string>();
            List<Creature> farms = getCreatures().Where(x => x.type == BotTypes.Housing).ToList();
            List<Creature> farms1 = farms.Where(x => x.ownerUniqId == me.uniqId).ToList();
            List<Creature> farmsfam = farms.Where(x=> x.familiId == me.familiId).ToList();
            foreach(var y in farms)   { 
                if (farms1.Count > 0) {     
                   Housing plnt = farms1.First() as Housing;
                   farmids.Add(plnt.uniqHousingId);
                   farmnames.Add(plnt.name);
                   farms1.RemoveAt(0);
                }
                
                if (me.familiId != 0 && farmsfam.Count > 0) {
                   Housing plnt1 = farmsfam.First() as Housing;
                   farmids.Add(plnt1.uniqHousingId);
                   farmnames.Add(plnt1.name);
                   farmsfam.RemoveAt(0);
                }   
           }
            foreach(var i in farmnames){
                if (farmnames[p] == this.farm1name) { this.farm1id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm2name) { this.farm2id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm3name) { this.farm3id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm4name) { this.farm4id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm5name) { this.farm5id = (uint)farmids[p]; }     
                if (farmnames[p] == this.farm6name) { this.farm6id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm7name) { this.farm7id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm8name) { this.farm8id = (uint)farmids[p]; }  
                if (farmnames[p] == this.farm9name) { this.farm9id = (uint)farmids[p]; } 
                if (farmnames[p] == this.farm10name) { this.farm10id = (uint)farmids[p]; }  
                p++;              
            }        
         }
                   
        public void PluginRun() { 
            ClearLogs();
            Log("Starting Farm Bot...");            
            
            // --------------------------------------- stops if under this much labor, change if desired---------------------------------------------------
            int laborstop = 200;
            // ------------------------------------- put farmID, seed, plant, collect strings here --------------------------------------
            //FARM 1
            var farm1seed    = "Orange Plate Coral Polyp";
            var farm1plant   = "Orange Coral";
            var farm1collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 2
            var farm2seed    = "Orange Plate Coral Polyp";
            var farm2plant   = "Orange Coral";
            var farm2collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 3
            var farm3seed    = "Orange Plate Coral Polyp";
            var farm3plant   = "Orange Coral";
            var farm3collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 4
            var farm4seed    = "Orange Plate Coral Polyp";
            var farm4plant   = "Orange Coral";
            var farm4collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 5
            var farm5seed    = "Orange Plate Coral Polyp";
            var farm5plant   = "Orange Coral";
            var farm5collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";   
            //FARM 6
            var farm6seed    = "Yellow Plate Coral Polyp";
            var farm6plant   = "Yellow Coral";
            var farm6collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 7
            var farm7seed    = "Yellow Plate Coral Polyp";
            var farm7plant   = "Yellow Coral";
            var farm7collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 8
            var farm8seed    = "Yellow Plate Coral Polyp";
            var farm8plant   = "Yellow Coral";
            var farm8collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 9
            var farm9seed    = "Yellow Plate Coral Polyp";
            var farm9plant   = "Yellow Coral";
            var farm9collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 10
            var farm10seed    = "Yellow Plate Coral Polyp";
            var farm10plant   = "Yellow Coral";
            var farm10collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";

                     
                 // ----------------------------------------- how many seeds to buy when you get low -----------------------------------------
            var farm1seedbuy = 1000;    
            var farm2seedbuy = 1000;
            var farm3seedbuy = 1000;
            //var farm4seedbuy = 1000;
            //var farm5seedbuy = 1000;
            while (true) {                         
                var farm1seedcount = itemCount(farm1seed);
                var farm2seedcount = itemCount(farm2seed);
                var farm3seedcount = itemCount(farm3seed);
                //var farm4seedcount = itemCount(farm4seed);
                //var farm5seedcount = itemCount(farm5seed);
                //Gather infos
                if (gameState == GameState.Ingame){
                GetFarmIds();
                Log(farm1id.ToString());
                Log(farm2id.ToString());
                Log(farm3id.ToString());
                //get Labor points 
                int labor = me.laborPoints;               
                //Start Doin Stuff
                //if Labor > 200
                if (labor > laborstop) {
                    
                    //     if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                              if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                              if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                              if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                         //   if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //    if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }     
                  
                    
                    //add/remove farms here
                    //Plant farm 1  
                    SetPlantMotionType(PlantMotionType.SnakeFromBorder);        // change motion type if needed
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);                    
                    PlantItemsAtFarm(farm1seed, farm1id);
              
                    //Plant farm 2
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    
                    //Plant farm 3
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    PlantItemsAtFarm(farm3seed, farm3id); 

                    //Plant farm 4
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    PlantItemsAtFarm(farm4seed, farm4id); 
                    
                    //Plant farm 5
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    PlantItemsAtFarm(farm5seed, farm5id);      
                    //Plant farm 6  
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);                    
                    PlantItemsAtFarm(farm6seed, farm6id);
              
                    //Plant farm 7
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    
                    //Plant farm 8
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    PlantItemsAtFarm(farm8seed, farm8id); 

                    //Plant farm 9
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    PlantItemsAtFarm(farm9seed, farm9id); 
                    
                    //Plant farm 10
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    PlantItemsAtFarm(farm10seed, farm10id); 
                                     
                    //if Labor < 200 wait 
                    } else { 
                    PlantItemsAtFarm(farm1seed, farm1id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    PlantItemsAtFarm(farm3seed, farm3id);
                    PlantItemsAtFarm(farm4seed, farm4id);
                    PlantItemsAtFarm(farm5seed, farm5id);   
                    PlantItemsAtFarm(farm6seed, farm6id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    PlantItemsAtFarm(farm8seed, farm8id);
                    PlantItemsAtFarm(farm9seed, farm9id);
                    PlantItemsAtFarm(farm10seed, farm10id);
                    Log("Labor under 200, waiting to regen");
                }

                   //Generate random time between 3-5 minutes       
                Random random    = new Random();                                   
                decimal mseconds = random.Next(180, 300) * 1000;
                decimal seconds  = mseconds / 1000;
                decimal minutes  = seconds / 60;
                Log("Waiting for " + minutes.ToString() + " minutes");

                //sleep for random time
                Thread.Sleep((int)mseconds);   
            }
        
    
         //Call on plugin stop
       public void PluginStop()   
       { 
            Log("Plugin Stopped...");
    } 
    }    
}
 
Last edited:
I did, but not in that code. Got it working but now every 3 minutes my char is moving to vendor without buying, is that normal? I dont want to do that

Thanks for helping :)

Edit: Not gathering... just planting
The plugin only buys if the amount of seeds in your inventory is less than 20% of what it's set to buy, so if you set it to 1000 seeds buy per trip it will only buy seeds if you have less than 200 in your inventory. It moves to vendor anyways because you didn't comment out/remove farm2/farm3 values as described in instructions.

Your farm1collect string isn't set correctly, go up to a plant ready to gather and an icon pops up. Mouseover icon and copy this for the collect value, should be something like "Gathering: Spend xxxx Labor to gather materials."
 
I removed the } where you told me and added one at the end but now I have this

2:02:55 PM: c:\Users\Mx\Desktop\NewOne.cs(268,14) : error CS1513: } expected

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

namespace YourNamespace {
    public class YourClass: Core { 

        
       public static string GetPluginAuthor()
       {
           return "amazingnessn";
       }
       public static string GetPluginVersion()
       {
           return "1.1";
       }

       public static string GetPluginDescription()
       {
           return "Farming Bot - Auto gather/plant your crops with auto farm ID";
       }
        
       
       // ----------------------------------------------- if you have more/less # of farms, add/comment out what you need -------------------------------- 
       // ------------------------------------------------ Change Farm Names Here --------------------------------------------------------- 
       private string farm1name = "one";
       private string farm2name = "two";
       private string farm3name = "three";
       private string farm4name = "four";
       private string farm5name = "five";    
       private string farm6name = "yellowone";
       private string farm7name = "yellowtwo";
       private string farm8name = "yellowthree";
       private string farm9name = "yellowfour";
       private string farm10name = "yellowfive";
              
       private uint farm1id;
       private uint farm2id;
       private uint farm3id;
       private uint farm4id;
       private uint farm5id; 
       private uint farm6id;
       private uint farm7id;
       private uint farm8id;
       private uint farm9id;
       private uint farm10id;
       
       // -------------------- Gps Functions, copy/paste if you have farms spread out and need gps to go between them --------------------//
        
   
       private Gps gps;
       //   string _gpsfile = "\\plugins\\Farms\\Farming.db3"; // COMMENT OUT IF NOT USING GPS       
       public void MoveToFarm()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms");                
         }
            public void MoveToVendor()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Seed Merchant");                
         }      
       
       
       
       public void GetFarmIds()
        {   
            
            // Don't edit this if you don't know what it does :p
            int p       = 0;
            List<long> farmids = new List<long>();
            List<string> farmnames = new List<string>();
            List<Creature> farms = getCreatures().Where(x => x.type == BotTypes.Housing).ToList();
            List<Creature> farms1 = farms.Where(x => x.ownerUniqId == me.uniqId).ToList();
            List<Creature> farmsfam = farms.Where(x=> x.familiId == me.familiId).ToList();
            foreach(var y in farms)   { 
                if (farms1.Count > 0) {     
                   Housing plnt = farms1.First() as Housing;
                   farmids.Add(plnt.uniqHousingId);
                   farmnames.Add(plnt.name);
                   farms1.RemoveAt(0);
                }
                
                if (me.familiId != 0 && farmsfam.Count > 0) {
                   Housing plnt1 = farmsfam.First() as Housing;
                   farmids.Add(plnt1.uniqHousingId);
                   farmnames.Add(plnt1.name);
                   farmsfam.RemoveAt(0);
                }   
           }
            foreach(var i in farmnames){
                if (farmnames[p] == this.farm1name) { this.farm1id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm2name) { this.farm2id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm3name) { this.farm3id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm4name) { this.farm4id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm5name) { this.farm5id = (uint)farmids[p]; }     
                if (farmnames[p] == this.farm6name) { this.farm6id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm7name) { this.farm7id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm8name) { this.farm8id = (uint)farmids[p]; }  
                if (farmnames[p] == this.farm9name) { this.farm9id = (uint)farmids[p]; } 
                if (farmnames[p] == this.farm10name) { this.farm10id = (uint)farmids[p]; }  
                p++;              
            }        
         }
                   
        public void PluginRun() { 
            ClearLogs();
            Log("Starting Farm Bot...");            
            
            // --------------------------------------- stops if under this much labor, change if desired---------------------------------------------------
            int laborstop = 200;
            // ------------------------------------- put farmID, seed, plant, collect strings here --------------------------------------
            //FARM 1
            var farm1seed    = "Orange Plate Coral Polyp";
            var farm1plant   = "Orange Coral";
            var farm1collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 2
            var farm2seed    = "Orange Plate Coral Polyp";
            var farm2plant   = "Orange Coral";
            var farm2collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 3
            var farm3seed    = "Orange Plate Coral Polyp";
            var farm3plant   = "Orange Coral";
            var farm3collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 4
            var farm4seed    = "Orange Plate Coral Polyp";
            var farm4plant   = "Orange Coral";
            var farm4collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 5
            var farm5seed    = "Orange Plate Coral Polyp";
            var farm5plant   = "Orange Coral";
            var farm5collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";   
            //FARM 6
            var farm6seed    = "Yellow Plate Coral Polyp";
            var farm6plant   = "Yellow Coral";
            var farm6collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 7
            var farm7seed    = "Yellow Plate Coral Polyp";
            var farm7plant   = "Yellow Coral";
            var farm7collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 8
            var farm8seed    = "Yellow Plate Coral Polyp";
            var farm8plant   = "Yellow Coral";
            var farm8collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 9
            var farm9seed    = "Yellow Plate Coral Polyp";
            var farm9plant   = "Yellow Coral";
            var farm9collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 10
            var farm10seed    = "Yellow Plate Coral Polyp";
            var farm10plant   = "Yellow Coral";
            var farm10collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";

                     
                 // ----------------------------------------- how many seeds to buy when you get low -----------------------------------------
            var farm1seedbuy = 1000;    
            var farm2seedbuy = 1000;
            var farm3seedbuy = 1000;
            //var farm4seedbuy = 1000;
            //var farm5seedbuy = 1000;
            while (true) {                         
                var farm1seedcount = itemCount(farm1seed);
                var farm2seedcount = itemCount(farm2seed);
                var farm3seedcount = itemCount(farm3seed);
                //var farm4seedcount = itemCount(farm4seed);
                //var farm5seedcount = itemCount(farm5seed);
                //Gather infos
                if (gameState == GameState.Ingame){
                GetFarmIds();
                Log(farm1id.ToString());
                Log(farm2id.ToString());
                Log(farm3id.ToString());
                //get Labor points 
                int labor = me.laborPoints;               
                //Start Doin Stuff
                //if Labor > 200
                if (labor > laborstop) {
                    
                    //     if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                              if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                              if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                              if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                         //   if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //    if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }     
                  
                    
                    //add/remove farms here
                    //Plant farm 1  
                    SetPlantMotionType(PlantMotionType.SnakeFromBorder);        // change motion type if needed
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);                    
                    PlantItemsAtFarm(farm1seed, farm1id);
              
                    //Plant farm 2
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    
                    //Plant farm 3
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    PlantItemsAtFarm(farm3seed, farm3id); 

                    //Plant farm 4
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    PlantItemsAtFarm(farm4seed, farm4id); 
                    
                    //Plant farm 5
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    PlantItemsAtFarm(farm5seed, farm5id);      
                    //Plant farm 6  
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);                    
                    PlantItemsAtFarm(farm6seed, farm6id);
              
                    //Plant farm 7
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    
                    //Plant farm 8
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    PlantItemsAtFarm(farm8seed, farm8id); 

                    //Plant farm 9
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    PlantItemsAtFarm(farm9seed, farm9id); 
                    
                    //Plant farm 10
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    PlantItemsAtFarm(farm10seed, farm10id); 
                                     
                    //if Labor < 200 wait 
                    } else { 
                    PlantItemsAtFarm(farm1seed, farm1id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    PlantItemsAtFarm(farm3seed, farm3id);
                    PlantItemsAtFarm(farm4seed, farm4id);
                    PlantItemsAtFarm(farm5seed, farm5id);   
                    PlantItemsAtFarm(farm6seed, farm6id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    PlantItemsAtFarm(farm8seed, farm8id);
                    PlantItemsAtFarm(farm9seed, farm9id);
                    PlantItemsAtFarm(farm10seed, farm10id);
                    Log("Labor under 200, waiting to regen");
                }

                   //Generate random time between 3-5 minutes       
                Random random    = new Random();                                   
                decimal mseconds = random.Next(180, 300) * 1000;
                decimal seconds  = mseconds / 1000;
                decimal minutes  = seconds / 60;
                Log("Waiting for " + minutes.ToString() + " minutes");

                //sleep for random time
                Thread.Sleep((int)mseconds);   
            }
        
    
         //Call on plugin stop
       public void PluginStop()   
       { 
            Log("Plugin Stopped...");
    } 
    }    
}
You removed two brackets instead of just one, add one back before the Plugin Stop section.
 
2:14:33 PM: c:\Users\X\Desktop\TrueGather.cs(27,13) : error CS1502: The best overloaded method match for 'System.Collections.Generic.List<uint>.Add(uint)' has some invalid arguments
2:14:33 PM: c:\Users\X\Desktop\TrueGather.cs(27,28) : error CS1503: Argument 1: cannot convert from 'string' to 'uint'

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

namespace YourNamespace {
    public class YourClass: Core { 
                
       public static string GetPluginAuthor()
       {
           return "amazingnessn";
       }
       public static string GetPluginVersion()
       {
           return "1.1";
       }

       public static string GetPluginDescription()
       {
           return "Farming Bot - Auto gather/plant your crops with auto farm ID";
       }
        
       
       // ----------------------------------------------- if you have more/less # of farms, add/comment out what you need -------------------------------- 
       // ------------------------------------------------ Change Farm Names Here --------------------------------------------------------- 
       private string farm1name = "orangeone";
       private string farm2name = "orangetwo";
       private string farm3name = "orangethree";
       private string farm4name = "orangefour";
       private string farm5name = "orangefive";    
       private string farm6name = "yellowone";
       private string farm7name = "yellowtwo";
       private string farm8name = "yellowthree";
       private string farm9name = "yellowfour";
       private string farm10name = "yellowfive";
              
       private uint farm1id;
       private uint farm2id;
       private uint farm3id;
       private uint farm4id;
       private uint farm5id; 
       private uint farm6id;
       private uint farm7id;
       private uint farm8id;
       private uint farm9id;
       private uint farm10id;
       
       // -------------------- Gps Functions, copy/paste if you have farms spread out and need gps to go between them --------------------//
        
   
       private Gps gps;
          string _gpsfile = "\\plugins\\Farms\\Farming.db3"; // COMMENT OUT IF NOT USING GPS       
       public void MoveToFarm()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms");                
         }
            public void MoveToVendor()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Seed Merchant");                
         }      
       
       
       
       public void GetFarmIds()
        {   
            
            // Don't edit this if you don't know what it does :p
            int p       = 0;
            List<long> farmids = new List<long>();
            List<string> farmnames = new List<string>();
            List<Creature> farms = getCreatures().Where(x => x.type == BotTypes.Housing).ToList();
            List<Creature> farms1 = farms.Where(x => x.ownerUniqId == me.uniqId).ToList();
            List<Creature> farmsfam = farms.Where(x=> x.familiId == me.familiId).ToList();
            foreach(var y in farms)   { 
                if (farms1.Count > 0) {     
                   Housing plnt = farms1.First() as Housing;
                   farmids.Add(plnt.uniqHousingId);
                   farmnames.Add(plnt.name);
                   farms1.RemoveAt(0);
                }
                
                if (me.familiId != 0 && farmsfam.Count > 0) {
                   Housing plnt1 = farmsfam.First() as Housing;
                   farmids.Add(plnt1.uniqHousingId);
                   farmnames.Add(plnt1.name);
                   farmsfam.RemoveAt(0);
                }   
           }
            foreach(var i in farmnames){
                if (farmnames[p] == this.farm1name) { this.farm1id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm2name) { this.farm2id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm3name) { this.farm3id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm4name) { this.farm4id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm5name) { this.farm5id = (uint)farmids[p]; }     
                if (farmnames[p] == this.farm6name) { this.farm6id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm7name) { this.farm7id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm8name) { this.farm8id = (uint)farmids[p]; }  
                if (farmnames[p] == this.farm9name) { this.farm9id = (uint)farmids[p]; } 
                if (farmnames[p] == this.farm10name) { this.farm10id = (uint)farmids[p]; }  
                p++;              
            }        
         }
                   
        public void PluginRun() { 
            ClearLogs();
            Log("Starting Farm Bot...");            
            
            // --------------------------------------- stops if under this much labor, change if desired---------------------------------------------------
            int laborstop = 200;
            // ------------------------------------- put farmID, seed, plant, collect strings here --------------------------------------
            //FARM 1
            var farm1seed    = "Orange Plate Coral Polyp";
            var farm1plant   = "Orange Coral";
            var farm1collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 2
            var farm2seed    = "Orange Plate Coral Polyp";
            var farm2plant   = "Orange Coral";
            var farm2collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 3
            var farm3seed    = "Orange Plate Coral Polyp";
            var farm3plant   = "Orange Coral";
            var farm3collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 4
            var farm4seed    = "Orange Plate Coral Polyp";
            var farm4plant   = "Orange Coral";
            var farm4collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 5
            var farm5seed    = "Orange Plate Coral Polyp";
            var farm5plant   = "Orange Coral";
            var farm5collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";   
            //FARM 6
            var farm6seed    = "Yellow Plate Coral Polyp";
            var farm6plant   = "Yellow Coral";
            var farm6collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 7
            var farm7seed    = "Yellow Plate Coral Polyp";
            var farm7plant   = "Yellow Coral";
            var farm7collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 8
            var farm8seed    = "Yellow Plate Coral Polyp";
            var farm8plant   = "Yellow Coral";
            var farm8collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 9
            var farm9seed    = "Yellow Plate Coral Polyp";
            var farm9plant   = "Yellow Coral";
            var farm9collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 10
            var farm10seed    = "Yellow Plate Coral Polyp";
            var farm10plant   = "Yellow Coral";
            var farm10collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";

                     
                 // ----------------------------------------- how many seeds to buy when you get low -----------------------------------------
            var farm1seedbuy = 1000;    
            var farm2seedbuy = 1000;
            var farm3seedbuy = 1000;
            //var farm4seedbuy = 1000;
            //var farm5seedbuy = 1000;
            while (true) {                         
                var farm1seedcount = itemCount(farm1seed);
                var farm2seedcount = itemCount(farm2seed);
                var farm3seedcount = itemCount(farm3seed);
                //var farm4seedcount = itemCount(farm4seed);
                //var farm5seedcount = itemCount(farm5seed);
                //Gather infos
                if (gameState == GameState.Ingame){
                GetFarmIds();
                Log(farm1id.ToString());
                Log(farm2id.ToString());
                Log(farm3id.ToString());
                //get Labor points 
                int labor = me.laborPoints;               
                //Start Doin Stuff
                //if Labor > 200
                if (labor > laborstop) {
                    
                    //     if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                              if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                              if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                              if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                         //   if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //    if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }     
                  
                    
                    //add/remove farms here
                    //Plant farm 1  
                    SetPlantMotionType(PlantMotionType.SnakeFromBorder);        // change motion type if needed
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);                    
                    PlantItemsAtFarm(farm1seed, farm1id);
              
                    //Plant farm 2
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    
                    //Plant farm 3
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    PlantItemsAtFarm(farm3seed, farm3id); 

                    //Plant farm 4
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    PlantItemsAtFarm(farm4seed, farm4id); 
                    
                    //Plant farm 5
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    PlantItemsAtFarm(farm5seed, farm5id);      
                    //Plant farm 6  
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);                    
                    PlantItemsAtFarm(farm6seed, farm6id);
              
                    //Plant farm 7
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    
                    //Plant farm 8
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    PlantItemsAtFarm(farm8seed, farm8id); 

                    //Plant farm 9
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    PlantItemsAtFarm(farm9seed, farm9id); 
                    
                    //Plant farm 10
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    PlantItemsAtFarm(farm10seed, farm10id); 
                                     
                    //if Labor < 200 wait 
                    } else { 
                    PlantItemsAtFarm(farm1seed, farm1id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    PlantItemsAtFarm(farm3seed, farm3id);
                    PlantItemsAtFarm(farm4seed, farm4id);
                    PlantItemsAtFarm(farm5seed, farm5id);   
                    PlantItemsAtFarm(farm6seed, farm6id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    PlantItemsAtFarm(farm8seed, farm8id);
                    PlantItemsAtFarm(farm9seed, farm9id);
                    PlantItemsAtFarm(farm10seed, farm10id);
                    Log("Labor under 200, waiting to regen");
                }

                   //Generate random time between 3-5 minutes       
                Random random    = new Random();                                   
                decimal mseconds = random.Next(180, 300) * 1000;
                decimal seconds  = mseconds / 1000;
                decimal minutes  = seconds / 60;
                Log("Waiting for " + minutes.ToString() + " minutes");

                //sleep for random time
                Thread.Sleep((int)mseconds);   
            }
        }
    
         //Call on plugin stop
       public void PluginStop()   
       { 
            Log("Plugin Stopped...");
    } 
    }    
}
 
2:14:33 PM: c:\Users\X\Desktop\TrueGather.cs(27,13) : error CS1502: The best overloaded method match for 'System.Collections.Generic.List<uint>.Add(uint)' has some invalid arguments
2:14:33 PM: c:\Users\X\Desktop\TrueGather.cs(27,28) : error CS1503: Argument 1: cannot convert from 'string' to 'uint'

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

namespace YourNamespace {
    public class YourClass: Core { 
                
       public static string GetPluginAuthor()
       {
           return "amazingnessn";
       }
       public static string GetPluginVersion()
       {
           return "1.1";
       }

       public static string GetPluginDescription()
       {
           return "Farming Bot - Auto gather/plant your crops with auto farm ID";
       }
        
       
       // ----------------------------------------------- if you have more/less # of farms, add/comment out what you need -------------------------------- 
       // ------------------------------------------------ Change Farm Names Here --------------------------------------------------------- 
       private string farm1name = "orangeone";
       private string farm2name = "orangetwo";
       private string farm3name = "orangethree";
       private string farm4name = "orangefour";
       private string farm5name = "orangefive";    
       private string farm6name = "yellowone";
       private string farm7name = "yellowtwo";
       private string farm8name = "yellowthree";
       private string farm9name = "yellowfour";
       private string farm10name = "yellowfive";
              
       private uint farm1id;
       private uint farm2id;
       private uint farm3id;
       private uint farm4id;
       private uint farm5id; 
       private uint farm6id;
       private uint farm7id;
       private uint farm8id;
       private uint farm9id;
       private uint farm10id;
       
       // -------------------- Gps Functions, copy/paste if you have farms spread out and need gps to go between them --------------------//
        
   
       private Gps gps;
          string _gpsfile = "\\plugins\\Farms\\Farming.db3"; // COMMENT OUT IF NOT USING GPS       
       public void MoveToFarm()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms");                
         }
            public void MoveToVendor()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Seed Merchant");                
         }      
       
       
       
       public void GetFarmIds()
        {   
            
            // Don't edit this if you don't know what it does :p
            int p       = 0;
            List<long> farmids = new List<long>();
            List<string> farmnames = new List<string>();
            List<Creature> farms = getCreatures().Where(x => x.type == BotTypes.Housing).ToList();
            List<Creature> farms1 = farms.Where(x => x.ownerUniqId == me.uniqId).ToList();
            List<Creature> farmsfam = farms.Where(x=> x.familiId == me.familiId).ToList();
            foreach(var y in farms)   { 
                if (farms1.Count > 0) {     
                   Housing plnt = farms1.First() as Housing;
                   farmids.Add(plnt.uniqHousingId);
                   farmnames.Add(plnt.name);
                   farms1.RemoveAt(0);
                }
                
                if (me.familiId != 0 && farmsfam.Count > 0) {
                   Housing plnt1 = farmsfam.First() as Housing;
                   farmids.Add(plnt1.uniqHousingId);
                   farmnames.Add(plnt1.name);
                   farmsfam.RemoveAt(0);
                }   
           }
            foreach(var i in farmnames){
                if (farmnames[p] == this.farm1name) { this.farm1id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm2name) { this.farm2id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm3name) { this.farm3id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm4name) { this.farm4id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm5name) { this.farm5id = (uint)farmids[p]; }     
                if (farmnames[p] == this.farm6name) { this.farm6id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm7name) { this.farm7id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm8name) { this.farm8id = (uint)farmids[p]; }  
                if (farmnames[p] == this.farm9name) { this.farm9id = (uint)farmids[p]; } 
                if (farmnames[p] == this.farm10name) { this.farm10id = (uint)farmids[p]; }  
                p++;              
            }        
         }
                   
        public void PluginRun() { 
            ClearLogs();
            Log("Starting Farm Bot...");            
            
            // --------------------------------------- stops if under this much labor, change if desired---------------------------------------------------
            int laborstop = 200;
            // ------------------------------------- put farmID, seed, plant, collect strings here --------------------------------------
            //FARM 1
            var farm1seed    = "Orange Plate Coral Polyp";
            var farm1plant   = "Orange Coral";
            var farm1collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 2
            var farm2seed    = "Orange Plate Coral Polyp";
            var farm2plant   = "Orange Coral";
            var farm2collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 3
            var farm3seed    = "Orange Plate Coral Polyp";
            var farm3plant   = "Orange Coral";
            var farm3collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 4
            var farm4seed    = "Orange Plate Coral Polyp";
            var farm4plant   = "Orange Coral";
            var farm4collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 5
            var farm5seed    = "Orange Plate Coral Polyp";
            var farm5plant   = "Orange Coral";
            var farm5collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";   
            //FARM 6
            var farm6seed    = "Yellow Plate Coral Polyp";
            var farm6plant   = "Yellow Coral";
            var farm6collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 7
            var farm7seed    = "Yellow Plate Coral Polyp";
            var farm7plant   = "Yellow Coral";
            var farm7collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 8
            var farm8seed    = "Yellow Plate Coral Polyp";
            var farm8plant   = "Yellow Coral";
            var farm8collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 9
            var farm9seed    = "Yellow Plate Coral Polyp";
            var farm9plant   = "Yellow Coral";
            var farm9collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 10
            var farm10seed    = "Yellow Plate Coral Polyp";
            var farm10plant   = "Yellow Coral";
            var farm10collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";

                     
                 // ----------------------------------------- how many seeds to buy when you get low -----------------------------------------
            var farm1seedbuy = 1000;    
            var farm2seedbuy = 1000;
            var farm3seedbuy = 1000;
            //var farm4seedbuy = 1000;
            //var farm5seedbuy = 1000;
            while (true) {                         
                var farm1seedcount = itemCount(farm1seed);
                var farm2seedcount = itemCount(farm2seed);
                var farm3seedcount = itemCount(farm3seed);
                //var farm4seedcount = itemCount(farm4seed);
                //var farm5seedcount = itemCount(farm5seed);
                //Gather infos
                if (gameState == GameState.Ingame){
                GetFarmIds();
                Log(farm1id.ToString());
                Log(farm2id.ToString());
                Log(farm3id.ToString());
                //get Labor points 
                int labor = me.laborPoints;               
                //Start Doin Stuff
                //if Labor > 200
                if (labor > laborstop) {
                    
                    //     if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                              if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                              if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                              if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                         //   if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //    if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }     
                  
                    
                    //add/remove farms here
                    //Plant farm 1  
                    SetPlantMotionType(PlantMotionType.SnakeFromBorder);        // change motion type if needed
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);                    
                    PlantItemsAtFarm(farm1seed, farm1id);
              
                    //Plant farm 2
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    
                    //Plant farm 3
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    PlantItemsAtFarm(farm3seed, farm3id); 

                    //Plant farm 4
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    PlantItemsAtFarm(farm4seed, farm4id); 
                    
                    //Plant farm 5
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    PlantItemsAtFarm(farm5seed, farm5id);      
                    //Plant farm 6  
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);                    
                    PlantItemsAtFarm(farm6seed, farm6id);
              
                    //Plant farm 7
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    
                    //Plant farm 8
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    PlantItemsAtFarm(farm8seed, farm8id); 

                    //Plant farm 9
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    PlantItemsAtFarm(farm9seed, farm9id); 
                    
                    //Plant farm 10
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    PlantItemsAtFarm(farm10seed, farm10id); 
                                     
                    //if Labor < 200 wait 
                    } else { 
                    PlantItemsAtFarm(farm1seed, farm1id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    PlantItemsAtFarm(farm3seed, farm3id);
                    PlantItemsAtFarm(farm4seed, farm4id);
                    PlantItemsAtFarm(farm5seed, farm5id);   
                    PlantItemsAtFarm(farm6seed, farm6id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    PlantItemsAtFarm(farm8seed, farm8id);
                    PlantItemsAtFarm(farm9seed, farm9id);
                    PlantItemsAtFarm(farm10seed, farm10id);
                    Log("Labor under 200, waiting to regen");
                }

                   //Generate random time between 3-5 minutes       
                Random random    = new Random();                                   
                decimal mseconds = random.Next(180, 300) * 1000;
                decimal seconds  = mseconds / 1000;
                decimal minutes  = seconds / 60;
                Log("Waiting for " + minutes.ToString() + " minutes");

                //sleep for random time
                Thread.Sleep((int)mseconds);   
            }
        }
    
         //Call on plugin stop
       public void PluginStop()   
       { 
            Log("Plugin Stopped...");
    } 
    }    
}
I copied your code here and compiled without issues, are you sure you're compiling the correct plugin? If you've had multiple plugins open in the editor you need to select which folder to compile at the top, and each plugin must have it's own individual folder.
 
you were correct, I was trying to compile to desktop which was giving me problems, but now I know thanks to you that each compile needs its own folder under the plugin folder :) thanks!

I was wondering if you can help me disable the gps / vendor portion of the script? I have everything I need on this account and all the farms are RIGHT next to each other :)

I dont really understand how the gps works, because everything is greyed out for me when I run the gps to try and make my own database
 
you were correct, I was trying to compile to desktop which was giving me problems, but now I know thanks to you that each compile needs its own folder under the plugin folder :) thanks!

I was wondering if you can help me disable the gps / vendor portion of the script? I have everything I need on this account and all the farms are RIGHT next to each other :)

I dont really understand how the gps works, because everything is greyed out for me when I run the gps to try and make my own database
To disable gps just comment out the gps section to look like this:
Code:
     /*if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                              if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                              if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                              if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                         //   if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //    if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }*/

To make a gps path you have to start the gps plugin and the gps editor in your archebuddy folder at the same time, then you'll be able to add points/links and label them.
 
This is what I have so far:

Code:
      //      string _gpsfile = "\\plugins\\Farms\\Farming.db3"; // COMMENT OUT IF NOT USING GPS   (to disable gps)


                         /*if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                              if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                              if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                              if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                         //   if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //    if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }*/

I try to compile in the plugin / aquafarm folder I made for it and I get:

3:13:29 PM: c:\Users\x\Documents\Buddy\Plugins\Aquafarm\Aquafarm.cs(287,10) : error CS1513: } expected

This is the code for eveything:

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

namespace YourNamespace {
    public class YourClass: Core { 
                
       public static string GetPluginAuthor()
       {
           return "amazingnessn";
       }
       public static string GetPluginVersion()
       {
           return "1.1";
       }

       public static string GetPluginDescription()
       {
           return "Farming Bot - Auto gather/plant your crops with auto farm ID";
       }
        
       
       // ----------------------------------------------- if you have more/less # of farms, add/comment out what you need -------------------------------- 
       // ------------------------------------------------ Change Farm Names Here --------------------------------------------------------- 
       private string farm1name = "orangeone";
       private string farm2name = "orangetwo";
       private string farm3name = "orangethree";
       private string farm4name = "orangefour";
       private string farm5name = "orangefive";    
       private string farm6name = "yellowone";
       private string farm7name = "yellowtwo";
       private string farm8name = "yellowthree";
       private string farm9name = "yellowfour";
       private string farm10name = "yellowfive";
              
       private uint farm1id;
       private uint farm2id;
       private uint farm3id;
       private uint farm4id;
       private uint farm5id; 
       private uint farm6id;
       private uint farm7id;
       private uint farm8id;
       private uint farm9id;
       private uint farm10id;
       
       // -------------------- Gps Functions, copy/paste if you have farms spread out and need gps to go between them --------------------//
        
   
            private Gps gps;
      //      string _gpsfile = "\\plugins\\Farms\\Farming.db3"; // COMMENT OUT IF NOT USING GPS       
            public void MoveToFarm()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms");                
         }
            public void MoveToVendor()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Seed Merchant");                
         }       
       
       
       
       
       
       public void GetFarmIds()
        {   
            
            // Don't edit this if you don't know what it does :p
            int p       = 0;
            List<long> farmids = new List<long>();
            List<string> farmnames = new List<string>();
            List<Creature> farms = getCreatures().Where(x => x.type == BotTypes.Housing).ToList();
            List<Creature> farms1 = farms.Where(x => x.ownerUniqId == me.uniqId).ToList();
            List<Creature> farmsfam = farms.Where(x=> x.familiId == me.familiId).ToList();
            foreach(var y in farms)   { 
                if (farms1.Count > 0) {     
                   Housing plnt = farms1.First() as Housing;
                   farmids.Add(plnt.uniqHousingId);
                   farmnames.Add(plnt.name);
                   farms1.RemoveAt(0);
                }
                
                if (me.familiId != 0 && farmsfam.Count > 0) {
                   Housing plnt1 = farmsfam.First() as Housing;
                   farmids.Add(plnt1.uniqHousingId);
                   farmnames.Add(plnt1.name);
                   farmsfam.RemoveAt(0);
                }   
           }
            foreach(var i in farmnames){
                if (farmnames[p] == this.farm1name) { this.farm1id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm2name) { this.farm2id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm3name) { this.farm3id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm4name) { this.farm4id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm5name) { this.farm5id = (uint)farmids[p]; }     
                if (farmnames[p] == this.farm6name) { this.farm6id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm7name) { this.farm7id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm8name) { this.farm8id = (uint)farmids[p]; }  
                if (farmnames[p] == this.farm9name) { this.farm9id = (uint)farmids[p]; } 
                if (farmnames[p] == this.farm10name) { this.farm10id = (uint)farmids[p]; }  
                p++;              
            }        
         }
                   
        public void PluginRun() { 
            ClearLogs();
            Log("Starting Farm Bot...");            
            
            // --------------------------------------- stops if under this much labor, change if desired---------------------------------------------------
            int laborstop = 200;
            // ------------------------------------- put farmID, seed, plant, collect strings here --------------------------------------
            //FARM 1
            var farm1seed    = "Orange Plate Coral Polyp";
            var farm1plant   = "Orange Coral";
            var farm1collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 2
            var farm2seed    = "Orange Plate Coral Polyp";
            var farm2plant   = "Orange Coral";
            var farm2collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 3
            var farm3seed    = "Orange Plate Coral Polyp";
            var farm3plant   = "Orange Coral";
            var farm3collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 4
            var farm4seed    = "Orange Plate Coral Polyp";
            var farm4plant   = "Orange Coral";
            var farm4collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 5
            var farm5seed    = "Orange Plate Coral Polyp";
            var farm5plant   = "Orange Coral";
            var farm5collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";   
            //FARM 6
            var farm6seed    = "Yellow Plate Coral Polyp";
            var farm6plant   = "Yellow Coral";
            var farm6collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 7
            var farm7seed    = "Yellow Plate Coral Polyp";
            var farm7plant   = "Yellow Coral";
            var farm7collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 8
            var farm8seed    = "Yellow Plate Coral Polyp";
            var farm8plant   = "Yellow Coral";
            var farm8collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 9
            var farm9seed    = "Yellow Plate Coral Polyp";
            var farm9plant   = "Yellow Coral";
            var farm9collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 10
            var farm10seed    = "Yellow Plate Coral Polyp";
            var farm10plant   = "Yellow Coral";
            var farm10collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";

                     
                       // ----------------------------------------- how many seeds to buy when you get low -----------------------------------------
            var farm1seedbuy = 10;    
            var farm2seedbuy = 10;
            var farm3seedbuy = 10;
            //var farm4seedbuy = 10;
            //var farm5seedbuy = 10;
            while (true) {                         
                var farm1seedcount = itemCount(farm1seed);
                var farm2seedcount = itemCount(farm2seed);
                var farm3seedcount = itemCount(farm3seed);
                //var farm4seedcount = itemCount(farm4seed);
                //var farm5seedcount = itemCount(farm5seed);
                //Gather infos
                if (gameState == GameState.Ingame){
                GetFarmIds();
                Log(farm1id.ToString());
                Log(farm2id.ToString());
                Log(farm3id.ToString());
                //get Labor points 
                int labor = me.laborPoints;               
                //Start Doin Stuff
                //if Labor > 200
                if (labor > laborstop) {
                    
                         /*if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                              if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                              if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                              if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                         //   if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //    if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    }*/
                
                  
                  
                    
                    //add/remove farms here
                    //Plant farm 1  
                    SetPlantMotionType(PlantMotionType.SnakeFromBorder);        // change motion type if needed
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);                    
                    PlantItemsAtFarm(farm1seed, farm1id);
              
                    //Plant farm 2
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    
                    //Plant farm 3
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    PlantItemsAtFarm(farm3seed, farm3id); 

                    //Plant farm 4
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    PlantItemsAtFarm(farm4seed, farm4id); 
                    
                    //Plant farm 5
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    PlantItemsAtFarm(farm5seed, farm5id);      
                    //Plant farm 6  
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);                    
                    PlantItemsAtFarm(farm6seed, farm6id);
              
                    //Plant farm 7
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    
                    //Plant farm 8
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    PlantItemsAtFarm(farm8seed, farm8id); 

                    //Plant farm 9
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    PlantItemsAtFarm(farm9seed, farm9id); 
                    
                    //Plant farm 10
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    PlantItemsAtFarm(farm10seed, farm10id); 
                                     
                    //if Labor < 200 wait 
                    } else { 
                    PlantItemsAtFarm(farm1seed, farm1id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    PlantItemsAtFarm(farm3seed, farm3id);
                    PlantItemsAtFarm(farm4seed, farm4id);
                    PlantItemsAtFarm(farm5seed, farm5id);   
                    PlantItemsAtFarm(farm6seed, farm6id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    PlantItemsAtFarm(farm8seed, farm8id);
                    PlantItemsAtFarm(farm9seed, farm9id);
                    PlantItemsAtFarm(farm10seed, farm10id);
                    Log("Labor under 200, waiting to regen");
                }

                   //Generate random time between 3-5 minutes       
                Random random    = new Random();                                   
                decimal mseconds = random.Next(180, 300) * 1000;
                decimal seconds  = mseconds / 1000;
                decimal minutes  = seconds / 60;
                Log("Waiting for " + minutes.ToString() + " minutes");

                //sleep for random time
                Thread.Sleep((int)mseconds);   
            }
        }
   
   
    
         //Call on plugin stop
       public void PluginStop()   
       { 
            Log("Plugin Stopped...");
    } 
    }    
}
 
This is what I have so far:
A bracket is missing again, and you shouldn't have to comment out the string _gpsfile bit, try this:

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

namespace YourNamespace {
    public class YourClass: Core { 
                
       public static string GetPluginAuthor()
       {
           return "amazingnessn";
       }
       public static string GetPluginVersion()
       {
           return "1.1";
       }

       public static string GetPluginDescription()
       {
           return "Farming Bot - Auto gather/plant your crops with auto farm ID";
       }
        
       
       // ----------------------------------------------- if you have more/less # of farms, add/comment out what you need -------------------------------- 
       // ------------------------------------------------ Change Farm Names Here --------------------------------------------------------- 
       private string farm1name = "orangeone";
       private string farm2name = "orangetwo";
       private string farm3name = "orangethree";
       private string farm4name = "orangefour";
       private string farm5name = "orangefive";    
       private string farm6name = "yellowone";
       private string farm7name = "yellowtwo";
       private string farm8name = "yellowthree";
       private string farm9name = "yellowfour";
       private string farm10name = "yellowfive";
              
       private uint farm1id;
       private uint farm2id;
       private uint farm3id;
       private uint farm4id;
       private uint farm5id; 
       private uint farm6id;
       private uint farm7id;
       private uint farm8id;
       private uint farm9id;
       private uint farm10id;
       
       // -------------------- Gps Functions, copy/paste if you have farms spread out and need gps to go between them --------------------//
        
   
            private Gps gps;
            string _gpsfile = "\\plugins\\Farms\\Farming.db3"; // COMMENT OUT IF NOT USING GPS       
            public void MoveToFarm()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms");                
         }
            public void MoveToVendor()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Seed Merchant");                
         }       
       
       
       
       
       
       public void GetFarmIds()
        {   
            
            // Don't edit this if you don't know what it does :p
            int p       = 0;
            List<long> farmids = new List<long>();
            List<string> farmnames = new List<string>();
            List<Creature> farms = getCreatures().Where(x => x.type == BotTypes.Housing).ToList();
            List<Creature> farms1 = farms.Where(x => x.ownerUniqId == me.uniqId).ToList();
            List<Creature> farmsfam = farms.Where(x=> x.familiId == me.familiId).ToList();
            foreach(var y in farms)   { 
                if (farms1.Count > 0) {     
                   Housing plnt = farms1.First() as Housing;
                   farmids.Add(plnt.uniqHousingId);
                   farmnames.Add(plnt.name);
                   farms1.RemoveAt(0);
                }
                
                if (me.familiId != 0 && farmsfam.Count > 0) {
                   Housing plnt1 = farmsfam.First() as Housing;
                   farmids.Add(plnt1.uniqHousingId);
                   farmnames.Add(plnt1.name);
                   farmsfam.RemoveAt(0);
                }   
           }
            foreach(var i in farmnames){
                if (farmnames[p] == this.farm1name) { this.farm1id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm2name) { this.farm2id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm3name) { this.farm3id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm4name) { this.farm4id = (uint)farmids[p]; }
                if (farmnames[p] == this.farm5name) { this.farm5id = (uint)farmids[p]; }     
                if (farmnames[p] == this.farm6name) { this.farm6id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm7name) { this.farm7id = (uint)farmids[p]; }   
                if (farmnames[p] == this.farm8name) { this.farm8id = (uint)farmids[p]; }  
                if (farmnames[p] == this.farm9name) { this.farm9id = (uint)farmids[p]; } 
                if (farmnames[p] == this.farm10name) { this.farm10id = (uint)farmids[p]; }  
                p++;              
            }        
         }
                   
        public void PluginRun() { 
            ClearLogs();
            Log("Starting Farm Bot...");            
            
            // --------------------------------------- stops if under this much labor, change if desired---------------------------------------------------
            int laborstop = 200;
            // ------------------------------------- put farmID, seed, plant, collect strings here --------------------------------------
            //FARM 1
            var farm1seed    = "Orange Plate Coral Polyp";
            var farm1plant   = "Orange Coral";
            var farm1collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 2
            var farm2seed    = "Orange Plate Coral Polyp";
            var farm2plant   = "Orange Coral";
            var farm2collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 3
            var farm3seed    = "Orange Plate Coral Polyp";
            var farm3plant   = "Orange Coral";
            var farm3collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 4
            var farm4seed    = "Orange Plate Coral Polyp";
            var farm4plant   = "Orange Coral";
            var farm4collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 5
            var farm5seed    = "Orange Plate Coral Polyp";
            var farm5plant   = "Orange Coral";
            var farm5collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";   
            //FARM 6
            var farm6seed    = "Yellow Plate Coral Polyp";
            var farm6plant   = "Yellow Coral";
            var farm6collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 7
            var farm7seed    = "Yellow Plate Coral Polyp";
            var farm7plant   = "Yellow Coral";
            var farm7collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";
            //FARM 8
            var farm8seed    = "Yellow Plate Coral Polyp";
            var farm8plant   = "Yellow Coral";
            var farm8collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 9
            var farm9seed    = "Yellow Plate Coral Polyp";
            var farm9plant   = "Yellow Coral";
            var farm9collect = "Gathering: Spend up to 3 Labor to gather materials underwater."; 
            //FARM 10
            var farm10seed    = "Yellow Plate Coral Polyp";
            var farm10plant   = "Yellow Coral";
            var farm10collect = "Gathering: Spend up to 3 Labor to gather materials underwater.";

                     
                       // ----------------------------------------- how many seeds to buy when you get low -----------------------------------------
            var farm1seedbuy = 10;    
            var farm2seedbuy = 10;
            var farm3seedbuy = 10;
            //var farm4seedbuy = 10;
            //var farm5seedbuy = 10;
            while (true) {                         
                var farm1seedcount = itemCount(farm1seed);
                var farm2seedcount = itemCount(farm2seed);
                var farm3seedcount = itemCount(farm3seed);
                //var farm4seedcount = itemCount(farm4seed);
                //var farm5seedcount = itemCount(farm5seed);
                //Gather infos
                if (gameState == GameState.Ingame){
                GetFarmIds();
                Log(farm1id.ToString());
                Log(farm2id.ToString());
                Log(farm3id.ToString());
                //get Labor points 
                int labor = me.laborPoints;               
                //Start Doin Stuff
                //if Labor > 200
                if (labor > laborstop) {
                    
                    /*if (farm1seedcount < (farm1seedbuy / 5) | farm2seedcount < (farm2seedbuy / 5) | farm3seedcount < (farm3seedbuy / 5)) {
                        MoveToVendor();
                        Thread.Sleep(2000);
                              if (farm1seedcount < (farm1seedbuy / 5)) {BuyItems(farm1seed, farm1seedbuy);}
                              if (farm2seedcount < (farm2seedbuy / 5)) {BuyItems(farm2seed, farm2seedbuy);}
                              if (farm3seedcount < (farm3seedbuy / 5)) {BuyItems(farm3seed, farm3seedbuy);}
                         //   if (farm4seedcount < (farm4seedbuy / 10)) {BuyItems(farm4seed, farm4seedbuy);}
                        //    if (farm5seedcount < (farm5seedbuy / 10)) {BuyItems(farm5seed, farm5seedbuy);}
                        Thread.Sleep(5000);
                        MoveToFarm();
                    } */
                
                  
                  
                    
                    //add/remove farms here
                    //Plant farm 1  
                    SetPlantMotionType(PlantMotionType.SnakeFromBorder);        // change motion type if needed
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);
                    CollectItemsAtFarm(farm1plant, farm1collect, farm1id);                    
                    PlantItemsAtFarm(farm1seed, farm1id);
              
                    //Plant farm 2
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    CollectItemsAtFarm(farm2plant, farm2collect, farm2id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    
                    //Plant farm 3
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    CollectItemsAtFarm(farm3plant, farm3collect, farm3id);
                    PlantItemsAtFarm(farm3seed, farm3id); 

                    //Plant farm 4
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    CollectItemsAtFarm(farm4plant, farm4collect, farm4id);
                    PlantItemsAtFarm(farm4seed, farm4id); 
                    
                    //Plant farm 5
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    CollectItemsAtFarm(farm5plant, farm5collect, farm5id);
                    PlantItemsAtFarm(farm5seed, farm5id);      
                    //Plant farm 6  
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);
                    CollectItemsAtFarm(farm6plant, farm6collect, farm6id);                    
                    PlantItemsAtFarm(farm6seed, farm6id);
              
                    //Plant farm 7
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    CollectItemsAtFarm(farm7plant, farm7collect, farm7id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    
                    //Plant farm 8
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    CollectItemsAtFarm(farm8plant, farm8collect, farm8id);
                    PlantItemsAtFarm(farm8seed, farm8id); 

                    //Plant farm 9
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    CollectItemsAtFarm(farm9plant, farm9collect, farm9id);
                    PlantItemsAtFarm(farm9seed, farm9id); 
                    
                    //Plant farm 10
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    CollectItemsAtFarm(farm10plant, farm10collect, farm10id);
                    PlantItemsAtFarm(farm10seed, farm10id); 
                                     
                    //if Labor < 200 wait 
                    } else { 
                    PlantItemsAtFarm(farm1seed, farm1id);
                    PlantItemsAtFarm(farm2seed, farm2id);
                    PlantItemsAtFarm(farm3seed, farm3id);
                    PlantItemsAtFarm(farm4seed, farm4id);
                    PlantItemsAtFarm(farm5seed, farm5id);   
                    PlantItemsAtFarm(farm6seed, farm6id);
                    PlantItemsAtFarm(farm7seed, farm7id);
                    PlantItemsAtFarm(farm8seed, farm8id);
                    PlantItemsAtFarm(farm9seed, farm9id);
                    PlantItemsAtFarm(farm10seed, farm10id);
                    Log("Labor under 200, waiting to regen");
                }

                   //Generate random time between 3-5 minutes       
                Random random    = new Random();                                   
                decimal mseconds = random.Next(180, 300) * 1000;
                decimal seconds  = mseconds / 1000;
                decimal minutes  = seconds / 60;
                Log("Waiting for " + minutes.ToString() + " minutes");

                //sleep for random time
                Thread.Sleep((int)mseconds);   
            }
        } }
   
   
    
         //Call on plugin stop
       public void PluginStop()   
       { 
            Log("Plugin Stopped...");
    } 
    }    
}
 
Back
Top