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

Best way to start combat

tjhasty

Member
Joined
May 16, 2010
Messages
183
Reaction score
4
I am developing a plugin called Multibox, and am having some combat issues. From what I understand if I pull the combat() routine combat should start, in which most cases it does. The only exception I have found to that is the default druid CC by fpsware, it dosn't, but I know it does work cause when its in grind mode it fights and does what I expect of it.

My question is: Is there a better way to call combat other than RoutineManager.Current.Combat() ?

Please help this is the last big issue I am running into.
 
OK, I have narrowed my problem down to the whole behavior tree thing some CC'rs do. How do I activate it.

Someone please at least point me in the right direction, I really want to do this but its hard going at it alone, these tree things arn't making a whole lot of sense to me.
 
Nobody, how come no one ever helps. I know there are people here who know how to do it, why so stingy with the knowledge?
 
Nobody, how come no one ever helps. I know there are people here who know how to do it, why so stingy with the knowledge?

Some people here are very helpful, others will treat you like they're too good to even speak to you. I tried my hand at developing a couple plug ins, and ran into the same types of issues.

Your best bet is to look at other plugins that do something similar and PM the dev and see if you can work it out together. It really sucks that you have to basically beg/bug the shit out of someone to get any help but it's just the way it is. Also try the IRC channel, some of the devs hang out in there or on MSN.
 
Sad thing is no other plugins do what I need them to do, with the exception of InstanceBuddy, which is all DLL'd so I can look inside. I KNOW it can be done, and thats what upsets me the most about it.
 
All I need to know is how to call the CombatBehavior, I have scoured through Visual C# honorbuddy.exe and I cant find anything that helps.
 
I have tried that as well, worked with if/then based CC's but not with behavior tree based ones
 
So your problem is starting combat in a cc that utilizes BT's, Ill look into it.
 
It sounds like what you want is something similar to lines 210-225 of the CombatBot.cs file in the Bots folder of the current release. It uses the below if an appropriate behaviour exists.

RoutineManager.Current.CombatBehavior

If an appropriate behaviour does not exists it uses the below.

RoutineManager.Current.Combat()

I hope this is helpful. If not perhaps Azathoth will be able to provide more assistance, I'm starting to look at the interfaces available and such ;) lol

-Alpha
 
I have tried that and I got an error though don't remember what. Though I did it with the () on the end, maybe that is my prob?
 
That's likely as I believe it's a property not a method, I'd check the code I referenced because it works there as far as I know. It likely needs to be used in a similar manner. I can take a proper look at it later too, mostly glancing back and forth as I'm at work at the moment ;)

-Alpha
 
Ok I tried using that, and this is what I get.
Code:
Only assignment, call, increment, decrement, and new object expressions can be used as a statement

When I tried copying that whole section (which I tried before posting this) it just stands there and dosnt do anything. This thing is being very frustrating.
 
OMG Alphawolf, thank you for pointing me in the right direction. I took another look at the botbase (which is just a modified Combat Bot) and finally started to understand what it was doing. I modified the botbase a little bit to check if RaFLeader was in combat and walla that did the trick. I still dont 100% know what its doing, but I learned enough to make it do what I want. thank you so much for the help.
 
Back
Top