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.

I've managed to get Aspect-switching, on hunter, working, but somehow it won't cast Cobra Shot while moving, so far I've made this command:

Code:
// ***Aspect of the Fox Shot***
SC.CastSpell("Cobra Shot", a => Me.IsMoving && !Me.Auras.ContainsKey("Trap Launcher") && !SC.PlayerHasBuff("Feign Death"), "Cobra Fox"),

But it's not using this command at all and I'm out of other options. I'm hoping someone can show his knowledge/experience and teach my why it isn't working :D

btw this is the normal working, while standing, rotation:

Code:
SC.CastSpell("Arcane Shot", a => Me.FocusPercent > 32 && !Me.Auras.ContainsKey("Trap Launcher") && !SC.PlayerHasBuff("Feign Death"), "Arcane Shot"),
SC.CastSpell("Cobra Shot", a => !Me.Auras.ContainsKey("Trap Launcher") && !SC.PlayerHasBuff("Feign Death"), "Cobra Shot for focus"),

Kind regards,

Rinus4
 
Wtf is "Cobra Fox"?
I'm no huntard expert (wow that sounds just plain stupid :p)
 
When I'm having aspect of the Fox it must cast Cobra Shot. :P So: Cobra Fox!

Edit:

I've made it!!

But when no combat Its still cast to Fox. :(

So.. New mission!
 
Last edited by a moderator:
Guide says you need Visual Studio 2010. I have done modifications of several CC's (just adding or changing a few spells) with Notepad++

Is there really any benefit to using Visual Studio 2010 or can Notepad++ be used with the same effect?
 
Guide says you need Visual Studio 2010. I have done modifications of several CC's (just adding or changing a few spells) with Notepad++

Is there really any benefit to using Visual Studio 2010 or can Notepad++ be used with the same effect?
Benefit is visual access to the HB API.

Searching through it, Visual Studio giving you "Auto-Fill" options and such.

Notepad++ works fine for small edits, but making a whole CC with it... You Will Fail.
 
Benefit is visual access to the HB API.

Searching through it, Visual Studio giving you "Auto-Fill" options and such.

Notepad++ works fine for small edits, but making a whole CC with it... You Will Fail.

Thanks for the info!
 
Just wanted to say thanks for the guide. I have downloaded the Visual Studio 2010 Express and have started to follow this guide.

I Just finished the guide of the first post and noticed a few issues:
- The guide states that when you open the blank.cs file it will show the code on the left in color. Mine did not.
- Once importing HB References to VB nothing really seemed to have changed.
- When modifying the WoWClass.Mage to "WoWClass" and adding the period (WoWClass.) I did not get a dropdown.

Could I possibly have downloaded an incorrect version of the program?

At this point I have stopped following the guide until I am able to figure out why my VB is not functioning the same as what the guide says it should be.
 
At this point I have stopped following the guide until I am able to figure out why my VB is not functioning the same as what the guide says it should be.

You'll need Visual C# 2010 Express, not VB
 
Ok cool, makes much more sense now. Installing now (i just downloaded the complete iso off the site while I made my last post). Thanks a lot!
May want to specify that in the OP (unless I over read it).
 
So I made my first attempt at a CC and so far have been at it for far longer than I should have been for how little there is in here, but most of it was spent scrapping and starting over and testing out things.

My problem is I cant figure out why when I enter combat, the bot will do nothing (using Lazy Raider on a target dummy).

I am also trying to figure out how to manage Serpent Sting so that it casts on target if it does not have or if there is only <= 3 seconds left on it.

Note: I looked at the EZMarks CC in the Hunter forum and tried to adapt the system they use but it just don't work and seems far over complicated than what it really needs to be.
 

Attachments

Last edited:
What is the best, and fastest way to test my own CC? LazyRaider + TargetDummy should be enough? :)
 
what do i override like the Combat(), when my toon is mounted to look or navigating? like i want to randoming make him jump while mounted and searching
 
what do i override like the Combat(), when my toon is mounted to look or navigating? like i want to randoming make him jump while mounted and searching
that can be done with a plugin you dont have to override anything.
if(Me.Mounted && !Me.Combat && Me.IsMoving)
{
//not sure about this but its something like that.
WoWmovement.JumpAccend();
}
 
Will this work in Microsoft Visual basic or does it have to be Visual Studio?
 
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 :/
 
Visual C# 2010 is the one you want. Basic is a different language.
 
Christ it's been forever since I programmed anything but here we are. I have a question regarding the following bit of code:

Code:
Navigator.MoveTo(Me.CurrentTarget.Location, 10);

What I understand that this code is supposed to do is move you within 10 yards of the target. However, when I try to use this code in my own CC I get the following error:

Code:
No overload for method 'MoveTo' takes 2 arguments

Which I thought was weird, but it turns out when I look up the Navigator class in the official API documentation, there really isn't a version of that method that takes 2 parameters:

Code:
public:
static MoveResult MoveTo(
	WoWPoint destination
)

So, what am I missing here? Is there a different way for using Navigator to move within XYZ yards of the target?
 
Christ it's been forever since I programmed anything but here we are. I have a question regarding the following bit of code:

Code:
Navigator.MoveTo(Me.CurrentTarget.Location, 10);

What I understand that this code is supposed to do is move you within 10 yards of the target. However, when I try to use this code in my own CC I get the following error:

Code:
No overload for method 'MoveTo' takes 2 arguments

Which I thought was weird, but it turns out when I look up the Navigator class in the official API documentation, there really isn't a version of that method that takes 2 parameters:

Code:
public:
static MoveResult MoveTo(
    WoWPoint destination
)

So, what am I missing here? Is there a different way for using Navigator to move within XYZ yards of the target?

From what you post here it looks like the method takes only 1 argument and the argument has to be a WoWPoint.
Your invocation of the method supplies 2 arguments which won't work.

You can do either of two things:
- Move to the exact point of the CurrentTarget by omitting the ',10' from your statement
- Calculate a WoWPoint at 10 yards from the target by taking your own location, the target's location and the 10 yard difference (that's some tricky math there)
 
From what you post here it looks like the method takes only 1 argument and the argument has to be a WoWPoint.
Your invocation of the method supplies 2 arguments which won't work.

You can do either of two things:
- Move to the exact point of the CurrentTarget by omitting the ',10' from your statement
- Calculate a WoWPoint at 10 yards from the target by taking your own location, the target's location and the 10 yard difference (that's some tricky math there)

Yeah, I should have made it clear that this isn't my code, it's from the OP.

Is there a better way to do it that doesn't involve crazy math? I'm thinking if I'm writing a CC for a caster class, I don't want to move right on top of the mob, I want to just move within spell casting range. The code provided by CodenameG appears to solve that problem, but I'm not sure it works. Any other solutions?
 
Yeah, I should have made it clear that this isn't my code, it's from the OP.

Is there a better way to do it that doesn't involve crazy math? I'm thinking if I'm writing a CC for a caster class, I don't want to move right on top of the mob, I want to just move within spell casting range. The code provided by CodenameG appears to solve that problem, but I'm not sure it works. Any other solutions?
I just ran into the same problem.
It seems like it's possible with WoWMovement.ClickToMove() though
 
Back
Top