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

HB profile, plugin guides?

frosty123

New Member
Joined
Jul 10, 2014
Messages
143
Reaction score
0
Herrow everyone, I have been using HB for a while now reaped in quite the nice amount of profits and wanting to create profiles and plugins for HB both private & public but I am having a hard time finding up-to-date guides or documentation on how to do so.

Started doing some Windows Phone Development so wanting to hopefully get some windows phone apps for HB to help with monitoring or automation, I have searched but cant find much and the wiki... well its like half existing and half deleted then on the forums its like 2+yr old stuff.

Would be highly appreciated if anyone could point me in the direction I am looking for even if its only partially :)
 
Big difference between profiles and plugins.

Here's a start for plugins:

Go download the Intellisense documentation. https://www.thebuddyforum.com/honor...orum/144971-honorbuddy-api-documentation.html
Then make a new C# dll project and add a reference to honorbuddy.exe.

PHP:
using System;
using Styx.Plugins;

namespace MyNamespace
{
    public class MyPluginClass : HBPlugin // Extend from HBPlugin to make it a plugin!
    {
        public override string Name
        {
            get { return "My Plugin's Name"; }
        }

        public override string Author
        {
            get {return "My Name"; }
        }

        public override Version Version
        {
            get { return new Version(1, 0); }
        }

        public override bool WantButton
        {
            get { return true; } // If you want the settings button enabled or not
        }

        public override string ButtonText
        {
            get { return "Button's Name"; }
        }

        public override void OnButtonPress()
        {
            // Do stuff when the button is clicked, like open a config ui window.
        }

        public override void Pulse()
        {
            // Do your plugin's logic here.
        }
    }
}

Then make a new folder in your plugins folder and drag over your C# source files. Start the bot (or recompile plugins if already running) and watch it run.

There are more overrides than what I posted, but that should be a decent start. Download the docs like I said and use intellisense - it's a great help.
Pulse gets called every time the engine pulses so the code in it will be called a lot. There are also overrides for OnEnable and OnDisable for things you don't want pulsed.
HBPlugin docs: HBPlugin Class

You can still learn a lot from older programs and guides. Just be careful with a few things in the api that have changed (like Initialize() and Dispose() being removed from plugins https://www.thebuddyforum.com/honor...um/182327-plugin-initialize-dispose-gone.html).

Go nuts and play around! I love my Windows Phone; I made apps to manage all of my bots using it and had a lot of fun.
Come post to the Community Developer Forum with any specific developer questions.
 
Last edited:
Back
Top