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

How to Write a Custom Class, a Guide for Beginners.

How can i match if the target has a debuff like sunder armor ?
Code:
Me. CurrentTarget. Debuffs. Contains (< "Spellname" , ??? >) ?
or
Me. CurrentTarget. HasAura ("Spellname")
 
CodenameG , Can you teach us to make a GUI and how to add it on code ?

And other thing about RangeCheck, writing RangeCheck(30, 29); you can move from 30 to 29 yards to cast anything, but how is if the enemy its on less than 5 yards to you move but not back in circles, Im trying to learn PvP class, and I need that, run in circles (like when you press A/D keys) when a melee is near to you, dont want go back walking like when you press S because its really low skilled and it seems a bot :P , So any advice to add nice kite method in to our Crs?
 
I just recently made a return to World of Warcraft && HonorBuddy. Since I last played I have been attending college for game programming and have taken 3 C# courses from console development, C# database, and C# GUI development. I may soon start back up and get back into CC development (previously developed Titan Shield (Arms/Prot Warrior LazyRaider CC).

I wish I could download my old CC files so I could look at them and see if I can get them working for current versions and add more features/etc.

I would like to know how to make a GUI for HonorBuddy tho...
 
I just recently made a return to World of Warcraft && HonorBuddy. Since I last played I have been attending college for game programming and have taken 3 C# courses from console development, C# database, and C# GUI development. I may soon start back up and get back into CC development (previously developed Titan Shield (Arms/Prot Warrior LazyRaider CC).

I wish I could download my old CC files so I could look at them and see if I can get them working for current versions and add more features/etc.

I would like to know how to make a GUI for HonorBuddy tho...

Not sure what they teached u in the C# GUI Development class, but it would probably suffice. Honorbuddy Interfaces are just regular WinForms..
 
You can launch any code on the button click. So it doesn't even have to be win-forms. You could write your own from scratch or use another framework (for example WPF, even though it's troublesome to load the xaml files). You don't learn "GUI for Honorbuddy", any GUI can be used.
 
Right, but tieing a GUI I build into the CC and making it execute properly is what I was getting at, I know how to build a GUI and what not, but applying it to HB is where I am not sure of.

Currently I am trying to figure out why my old CC no longer loads in the current version of HB so I know what I need to fix to get it working again and then build from there.
Looks like a lot has changed since I last started trying to do this stuff.
 
Is it just me or does "SpellManager" no longer work?
I get the error "The name 'SpellManager' does not exist in the current context.

Heres the code
Code:
public bool CastSpell(string spellName)
        {
            if (SpellManager.CanCast(spellName))
            {
                SpellManager.Cast(spellName);
                // We managed to cast the spell, so return true, saying we were able to cast it.
                return true;
            }
            // Can't cast the spell right now, so return false.
            return false;
        }
 
In the plugin, or combat routine or whatever you're building, there's either an on button click method, or a config form or whatever. In this, you just execute the code that is necessary to show your GUI. It doesn't need to be applied to HB or anything.

And yeah, this guide is quite old and outdated. I recommend getting ReSharper, it can help with some of the moved classes and namespaces, and it's generally awesome. Also, try looking at other combat routines that are updated and currently working. Pick a simple one as it's easier to understand and get an overview of the code.
 
Anyone who makes youtube tutorials for these will be an ultimate legend! :D
 
Is possible to edit cs files that are inside .dll with visusl studio?

Sent from my GT-I9505 using TheBuddyForum mobile app
 
WoWMovement.Face
Me.ActiveAuras.ContainsKey


Where do i get all list of the commands?
 
Is there a more efficient way to test changes than re-loading HB entirely? I notice recompile all for plugins but no equivalent for Combat Routines
 
Is there a more efficient way to test changes than re-loading HB entirely? I notice recompile all for plugins but no equivalent for Combat Routines

Hi, Tomcruise,

In .../Honorbuddy/Settings/GlobalSettings.xml, you should find the following:

&lt;ReloadRoutinesOnFileChange>True&lt;/ReloadRoutinesOnFileChange>

Honorbuddy is prepared to deal with Plugins, Routines, and Bots in this fashion. Alas, Quest Behaviors is not on this list.

cheers,
chinajade
 
Thanks chinajade, but as mentioned in the other thread from what I can see it doesn't seem to function reliably in all cases, anything using TreeSharp requires a full reload of HB for the changes to be reflected. I'm sure there is a good reason for that but would make life a lot easier if you could look into it.
 
I currently study software development, after having a glance at the predefined datatypes, libraries and methods, its pretty clear on how to use this, with some obvious necessity to read up a bit further of course, I assume somewhere on this forum there are technical documentations to get a further idea of the methods and your predefined datatypes/variables/methods as I am going to look into developing a plugin to test my understanding of both Object-Oriented-Programming and your libraries.
 
Hi, Tomcruise,

In .../Honorbuddy/Settings/GlobalSettings.xml, you should find the following:

<ReloadRoutinesOnFileChange>True</ReloadRoutinesOnFileChange>

Honorbuddy is prepared to deal with Plugins, Routines, and Bots in this fashion. Alas, Quest Behaviors is not on this list.

cheers,
chinajade

I'm still looking for an answer on the "rebuild behaviors" issue, is there no way to flush the current root behavior when a routine/bot/plugin is reloaded? I would like a way to rebuild the entire tree without having to restart HB as it would make development a lot easier.

Edit: Never mind, finally found a workaround.
 
Last edited:
Back
Top