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

Simple afk farm

borasiorr

New Member
Joined
Sep 20, 2014
Messages
17
Reaction score
0
Hi guys, so i am completly noobish in coding, just trying to understand stuff, Out wrote yesterday piece of code, just i am not sure if i changed it correctly, so question is :

If i will be on my farm and i will fire up that plugin, will it afk plant > gather > plant gather till ethernity ?

Code:
using System;
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 Creature PotatoFarm()
	{	
	while (true)
		{
  		PlantItemsAtFarm(Potato Eye); // will it choose my farm ?
 		CollectItemsAtFarm(Potato);
  		Thread.Sleep(60000); // is it waiting after every plant or gather ? 
		}
       
   	}
    }
}
 
Hi I am new to this but if I am right you are doing:
1.Plant the potato
2.Try to gather it (wich will be false in the first runthrough)
3.Sleep 60 sec and then try again.
Actually I think you forgot some parameters in PlantItemsAtFarm.(Im not sure about this)
In the API stands: CollectItemsAtFarm Method (UInt32, UInt32, UInt32)
There are 3 Parameters,but as i said im not sure about this because im a beginner too.
 
Back
Top