• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Bot] Combat/Duel/Raid/CC Testbench

    Discussion in 'Archives' started by Nesox, Sep 29, 2010.

    1. Nesox

      Nesox Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,563
      Likes Received:
      48
      Trophy Points:
      48
      Alright boys and girls !
      I don't know how many of you that know that you can actually load bots from disk and have HB compile them at Login..

      Anyways, here's an 'example bot' very useful for optimizing rotations you can simply target a training dummy, duel, or a boss in a raid instance.

      What it does?
      Combat plain and simple nothing else! :)

      Installation:

      Download the attachment and extract the 'Bots' folder into the root folder of your HB installation. eg;
      C:\MyHonorbuddyFolder\Bots\CombatBot.cs

      [​IMG]

      CHANGELOG - 0.0.1
      2010/09-29
      Code:
      Initial release
      
      CHANGELOG - 0.0.2
      2010/09-30
      Code:
      + Added Heal and CombatBuffs
      
      CHANGELOG - 0.0.3
      2010/09-30
      Code:
      + Turns off the Inactivity Detector once you start
      
       

      Attached Files:

      Last edited: Sep 30, 2010
    2. Spartanmfot

      Spartanmfot New Member

      Joined:
      Aug 29, 2010
      Messages:
      346
      Likes Received:
      1
      Trophy Points:
      0
      Thanks you very much mate, Sure it will come will come in handy some how!
       
    3. Nesox

      Nesox Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,563
      Likes Received:
      48
      Trophy Points:
      48
      No problem :)
       
      Last edited: Sep 29, 2010
    4. MDWIEMANN

      MDWIEMANN New Member

      Joined:
      Aug 23, 2010
      Messages:
      85
      Likes Received:
      1
      Trophy Points:
      0
      looks cool, few bugs will report back, but healing doesnt work well with the CC / Plugin mix
       
    5. Nesox

      Nesox Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,563
      Likes Received:
      48
      Trophy Points:
      48
      It doesn't heal i didn't add that..
      I'll add it just a second :p
       
    6. badkitty

      badkitty New Member

      Joined:
      Jun 27, 2010
      Messages:
      75
      Likes Received:
      1
      Trophy Points:
      0
      sitting in front of training dummy , 79 druid using default CC for druid . i hit start on HB goto dummy and start combat, and it does nothing. HB is set to duel/combat bot. when i hit stop i get this


      [5:28:56 PM:865] Cleared POI
      [5:29:01 PM:761] Activity: Combat
      [5:29:22 PM:236] Warning: 'Factions' has been moved to the 'GrindArea'. Please reflect this change in your profiles.
      [5:29:22 PM:955] Cleared POI
      [5:29:23 PM:24] Activity: Combat
      System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
      at Styx.Logic.Targeting.DefaultTargetWeight(List`1 units)
      --- End of inner exception stack trace ---
      at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
      at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
      at System.Delegate.DynamicInvokeImpl(Object[] args)
      at System.Delegate.DynamicInvoke(Object[] args)
      at (Object , Object[] )
      at Styx.Logic.Targeting.(Delegate e, Object[] args
       
    7. Nesox

      Nesox Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,563
      Likes Received:
      48
      Trophy Points:
      48
      Smells like a cc issue, the default druid cc checks if it's target is affected by combat if not it won't do much :)
      And that shit you got when you stopped was probablly because the targetlist was empty or something

      EDIT: Updated it 0,0,2 Heal, Combatbuffs, Combat now ;)
       
    8. Nesox

      Nesox Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,563
      Likes Received:
      48
      Trophy Points:
      48
      Updated again!
      Will turnoff the LogoutForActivity mechanism now so you won't get logged out in 10 minutes.
       
    9. mezz0

      mezz0 Member

      Joined:
      Jul 10, 2010
      Messages:
      680
      Likes Received:
      10
      Trophy Points:
      18
      I'm guessing not many people know this... Very first time I hear of it.
      nice :)
       
    10. spudstar999

      spudstar999 New Member

      Joined:
      Jan 15, 2010
      Messages:
      174
      Likes Received:
      1
      Trophy Points:
      0
      is this mainly for cc developer ?! or for what can i use it?

      sincery spud
       
    11. Nesox

      Nesox Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,563
      Likes Received:
      48
      Trophy Points:
      48
      Yes and No.
      It's great if ure a cc developer, you can use this to optimize your combat logic and different rotations in duels and with target dummys without having to go out and kill mobs, you can stay in major cities.

      If someone ever writes a raid cc you can use this when raiding to just optimize your dps output. NO MORE KEY SPAMMING IN RAIDS! :D
       
    12. rcadams

      rcadams New Member

      Joined:
      Jan 15, 2010
      Messages:
      434
      Likes Received:
      0
      Trophy Points:
      0
      Umm. but isn't there already a plugin for this already.. Mr AutoFight? Don't get me wrong.. But why write something that is already out there..
      Specially When HB needs so much more attention..
       
      Last edited by a moderator: Oct 2, 2010
    13. Nesox

      Nesox Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,563
      Likes Received:
      48
      Trophy Points:
      48
      I don't think you understand the point of this..
      This bot can easily be modified to a dedicated heal bot that just follows a toon in a dungeon or w/e if someone decides to change it and write a good heal cc for it.
      It also shows the possibility to load bots, this gives the developer full control over hb making some tasks alot easier like writing a fishing plugin, instead of trapping hb in a loop to make sure no other logic runs they can simply derieve from botbase implement what is nessecary and their logic.

      There's so many possibilities with this and you just fail to see the point of it.. It's not like i spent hours and hours writing this
       
    14. MaiN

      MaiN Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,017
      Likes Received:
      35
      Trophy Points:
      48
      Lies. You spent days. I have never seen code this complex.
       
    15. panYama

      panYama Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      2,629
      Likes Received:
      49
      Trophy Points:
      0
      nice thanks will have a look at this:O
       
    16. nokdu

      nokdu New Member

      Joined:
      Aug 16, 2010
      Messages:
      208
      Likes Received:
      3
      Trophy Points:
      0
      exactly what i asked a few weeks ago ..

      thank you nesox!!
       
    17. Xanathos

      Xanathos Active Member

      Joined:
      Jul 25, 2010
      Messages:
      1,030
      Likes Received:
      6
      Trophy Points:
      38
      Stupid question time.

      The bot handles combat, I got that.

      But what about the non-combat aspect of any of the .cc's? The whole "time to eat and drink if I'm not in combat and I am low on health/mana" for example...

      Also, does the bot trigger any movement code? Does it try and stay in range of the target, etc? Or is it assumed that the player is handling all movement (which is fine if it is)?
       
    18. Nesox

      Nesox Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,563
      Likes Received:
      48
      Trophy Points:
      48
      No, this one only runs the combat portion of a CC no movement or anything.
      The targeting filter adds your current target if it's attackble, this bot is pretty useless unless ure a cc dev testing you combat logic or w/e
      however! this one -> http://www.thebuddyforum.com/showthread.php?11975-Bot-Combat-Heal-Bot
      has both in and out of combat behaviors and a simple follow behavior, if ure inside a party it will follow them around.
       
    19. Kickazz006

      Kickazz006 Well-Known Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      20,567
      Likes Received:
      302
      Trophy Points:
      83
      this seems like it would be awesome for saurfang ... does it move at all? or just stay on the 1 target u have?
       
    20. Xanathos

      Xanathos Active Member

      Joined:
      Jul 25, 2010
      Messages:
      1,030
      Likes Received:
      6
      Trophy Points:
      38
      Just running the combat portion of the .cc is fine with me. I enjoy running my character through the dungeons, but I just want the bot handling the combat aspect (which this will, which is great).
       

    Share This Page