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.

U know the link u put at the beginning of the thread? the one to download visual studio 2010? right, i clik on it and it sends me to a page where i cant actually find "visual studio express 2010" i can find :

Visual Studio 2010 Express for Windows Phone


Visual Web Developer 2010 Express


Visual Basic 2010 Express


Visual C# 2010 Express


Visual C++ 2010 Express


Visual Studio 2010 Express ISO Images

which one of these is the right one to download? i think visual basic 2010 express is the one thats closer to what to u said but im not sure :/
Yes, I had the exact same question and had to started a new thread about it. Maybe the OP can be updated some time to clarify this point. :) Awesome thread!
 
There are a few posts within this thread that answers your question, you want C#
 
In Rest we have the same If My HealthPercent is Less then or equals 50, then We have
Styx.Logic.Common.Rest.Feed();
this Tells Honorbuddy to stop and eat whatever food the person put into the Food name: setting in Honorbuddy,
The HonorBuddy Api has lots of these Predefined Blocks to Assist you in writing your code.
Where can I find the Food name setting in HB please?
 
The movement part.

Navigator.MoveTo(Me.CurrentTarget.Location, 29);

Seems a bit outdated.

it's used in the RangeCheck(); routine.

Can you please look into this CnG ?
 
The movement part.

Navigator.MoveTo(Me.CurrentTarget.Location, 29);

Seems a bit outdated.

it's used in the RangeCheck(); routine.

Can you please look into this CnG ?

Code:
        private static LocalPlayer Me
        {
            get { return ObjectManager.Me; }
        }


        public static void FaceTarget(WoWUnit target)
        {
            if (!Me.IsSafelyFacing(target, 70f) && !Me.IsMoving && target != null)
            {
                target.Face();
            }
        }


        public static void MovetoLos(WoWUnit target)
        {
            if (!target.InLineOfSpellSight && target != Me)//InLineOfSpellsight is better than the odd one because here we can make sure that we are in a "real" LOS
            {
                Navigator.MoveTo(target.Location);
            }
        }


        public static void Movetotarget(WoWPoint targetlocation, bool stopinrange, float range)
        {
            if (stopinrange && Me.Location.Distance(targetlocation) + 0.6f < range)
            {
                Navigator.PlayerMover.MoveStop();
            }
            else if (!Me.WithinInteractRange || !Me.IsWithinMeleeRange ||
                     Me.Location.Distance(targetlocation) + 0.6f > range)
            {
                Navigator.MoveTo(targetlocation);
            }
        }

Here's everything you need. Its a bit more advanced then the outdated one from the guide.

Here's how you use it:

Code:
             FaceTarget(CurTarget);
             MovetoLos(CurTarget);
              //Your combat thing
             Movetotarget(CurTarget.Location, true, 5f);

for any further help just reply to this one.

greetz

Weischbier
 
"now as you can see there are lots of different colors here theres Reds and Greens and Oranges.
Now Lets Start with the Greens.
Greens Are comments - Comments are only for the user, and are not read by honorbuddy or visual studio, they are there for you to make notes.

To Make a new comment, go to an empty line and add// before what you want to comment on.
for example,
//This is a new Comment

Now lets deal with Reds, Reds are commands that the IDE or the Integrated development environment Aka: Visual Studio dosnt understand, if any code is underlined in red, that means it will not compile, and will NOT run in Honorbuddy. Reds Most of them, will usually be caused by Syantax issues, or in this case not having the proper references."



Mine is just all black colored.. no red greens or orange. Did i do something wrong because i downloaded the correct software.
 
Just wondering there is no wiki for in detail stuff for creating Custom Classes or Instance Bot?
 
I want to write a CC, is this documentation up to date with the current HB?
 
I want to write a CC, is this documentation up to date with the current HB?

Follow it as a basic guideline, then revert to the Dagradt CC Guide for some more advanced stuff.
 
This looks really neat and Im going to give this a shot a little later on. However is there a guide here that can help me make profiles? For questing, and gathering professions??
 
Now that Honnorbuddy has been updated, there have been some changes to the basic layout. Accordingly Blank.cs needs to be changed. Here are the changes that need to be done:
1) In Blank.cs delete the following:
using Styx.Combat.CombatRoutine;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
2) In Blank.cs replace them with:
using Styx.Common;
using Styx.CommonBot;
using Styx.CommonBot.Routines;
3) In the line " private static LocalPlayer Me { get { return ObjectManager.Me; } }" change 'ObjectManager' to 'StyxWoW'

Additional notes to the first post instructions:

If your MSVE is 64 bit capable, in Projects Menu, select <project name> Properties (usually the bottom selection). In the subsequent window select 'Build' and find 'Platform Target' and set it to x86.

Possibly specific to MSVE 2012, Presentation Core is not loaded by default so when you are adding references to Honorbuddy and Tipper.Tools go to 'Assemblies' (instead of 'Browse') and put a check mark by 'Presentation Core'.

- Jim T.
 
Hey. Can someone suggest me pls how can i get my hpally casting Word of Glory when Divine Purpose procs? I tried this Spell.Cast("Word of Glory", ctx => StyxWoW.Me.HaveAura("Divine Purpose")), but apparently it wrong. Thx in advance.
 
Spell.Cast("Word of Glory", ctx => StyxWoW.Me.HasAura("Divine Purpose")),

Have -> Has
 
Another question from me: Is it possible for bot to cast aoe zone spells like DnD(DK),Power Word: Barrier(Priest) etc.. ?
 
Back
Top