Jump to content

Corzarium

Members
  • Posts

    3
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by Corzarium

  1. Thanks for the reply Kennumen. Yeah the code is a mess and I forgot I had moved the heroic strike/cleave code to the bottom like that. I did as you said and changed the code to break out each time an if statement is met and the problem is even if i set the code to ai->GetRageAmount() > 110, which if my understanding is correct should never be true, the bots still spam heroic strike and do nothing else. I changed the code on pastebin.com to try to show what I changed. I moved the heroic strike/cleave code outside the case statements also trying to again see if that would help, no luck. Sorry again for my noobishess in all of this but I hate to give up on it.
  2. @Mookjin Thanks for the help. I was thinking of fixing it in a similar way but I would rather just have them use it based on rage due to the fact that heroic strike can be cast along with other spells since it is a on next hit ability. However if there isn't another way to do that I would probably use a solution like that. I also put what code I have so far on pastebin PlayerbotWarriorAI.h = http://pastebin.com/9hJejSSH PlayerbotWarriorAI.cpp = http://pastebin.com/3Vdk5HHy It seems to work pretty well but there are some things I would like to fix such as only taunting when the target isn't on the tank, fixing heroic strike, and like Kennumen suggested changing what rotation to use based upon which talent tree has the most points in it. I would change the talent point code but like I said earlier I'm still learning the basics of c++ and I haven't been able to find out how to check the talent points etc.
  3. I too have been messing with the ai code and have been trying to setup spell rotations for classes etc. I'm using this as a way to learn a bit of c++ so if I ask something stupid you will have to forgive me. I've been setting up a rotation for the warrior bot and I think I have it pretty close but I'm stuck on a couple of things. One I don't know how to make the bot taunt if it no longer is the target of the mob. Right now I just have him taunting whenever taunt is up. The other thing is I can't keep the warrior bots from constantly using heroic strike no matter what the rage level is. I'm trying to get them to only use heroic strike if their rage is over 60. if (HEROIC_STRIKE > 0 && ai->GetRageAmount() > 60 && ai->GetAttackerCount() <= 2 && ai->CastSpell(HEROIC_STRIKE, *pTarget)) out << " > Heroic Strike"; When I use that code they will spam heroic strike and have no rage for any other abilities. If anyone knows a solution I would appreciate it and of course when I'm done I would be more than happy to share what I finish.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use