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

How to make and use a plugin?

GodKiller

New Member
Joined
Oct 3, 2014
Messages
6
Reaction score
0
I am new to botting and I am trying to figure out how to get this script work;
using System;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using ArcheBuddy.Bot.Classes;

namespace YourNamespace
{
public class YourClass : Core
{
public void PluginRun()
{
while (true)
{
PlantItemsAtFarm("Potato Seed","YourCharacterName");
CollectItemsAtFarm("Potato","Farming: Spend 1 Labor to harvest crops.","YourCharacterName");
Thread.Sleep(55555);
}
}
}
}


This isn't my script, I found it here (https://www.thebuddyforum.com/archebuddy-forum/archebuddy-plugins/179458-scarecrow-loop.html). Basic farming loop script, I'm using it as a easy example. But what are the steps to turn a script into a working? I can't figure out how to make it usable. I have it in the editor and saved as a .cs file but I don't know what to do from there.
 
If its loaded in the Editor just hit the Green arrow in the top right that says "Compile".

Should succeed. If it doesn't it will tell you what the error is.

Once its compiled it will show up in your plugin manager assuming it compiled correctly.

P.s. in the script you provided you need to change where it says "YourCharacterName" to your actual in game chars name. Leave the double quotes. There are 2 places where you need to make that change (Right next to eachother)
 
If its loaded in the Editor just hit the Green arrow in the top right that says "Compile".

Should succeed. If it doesn't it will tell you what the error is.

Once its compiled it will show up in your plugin manager assuming it compiled correctly.

P.s. in the script you provided you need to change where it says "YourCharacterName" to your actual in game chars name. Leave the double quotes. There are 2 places where you need to make that change (Right next to eachother)
Thank you that definitely helped!
 
Back
Top