• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • tehHunterz CC --Pet Feed fixed by LAP87

    Discussion in 'Archives' started by Tony, Jan 22, 2010.

    Thread Status:
    Not open for further replies.
    1. Husserusse

      Husserusse New Member

      Joined:
      Jan 15, 2010
      Messages:
      25
      Likes Received:
      0
      Trophy Points:
      0
      Nice! :)

      Could you fix the revive bugg also? It won't ress my pet after hes been killed... Heres some logs!

      Thanks :)

      Note: It may be because i havent specced Improved Revive Pet because it costs more than 50% mana!
       
      Last edited: Feb 2, 2010
    2. mrbob2

      mrbob2 Member

      Joined:
      Jan 15, 2010
      Messages:
      107
      Likes Received:
      0
      Trophy Points:
      16
      Super star! Thanks for that.
       
    3. LAP87

      LAP87 Member

      Joined:
      Jan 15, 2010
      Messages:
      451
      Likes Received:
      0
      Trophy Points:
      16
      Well yeah, i'm trying atleast ^^ fpsware said something about cooking up a hunter cc after cleaning up his other cc's. And then this one probably will be obsolete i'm afraid :/
       
    4. fpsware

      fpsware Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      5,287
      Likes Received:
      133
      Trophy Points:
      63
      I'm in the process of resolve the few remaining bugs in my current CC's. Once I'm happy with them I'll be working on a new Hunter CCs. Like all my others, this will automatically support all trees and RAF.
       
    5. LAP87

      LAP87 Member

      Joined:
      Jan 15, 2010
      Messages:
      451
      Likes Received:
      0
      Trophy Points:
      16
      Yeah well, i'll try to keep this one floating until you do fps ^^ I'm not a dev, so it's tricky :p
       
    6. mrbob2

      mrbob2 Member

      Joined:
      Jan 15, 2010
      Messages:
      107
      Likes Received:
      0
      Trophy Points:
      16
      Awsome! Looking forward too it.
       
    7. iamspartan

      iamspartan New Member

      Joined:
      Jan 21, 2010
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      Would be awesome if u could add an feature for mend pet happiness instead of feed pet :p
       
    8. LAP87

      LAP87 Member

      Joined:
      Jan 15, 2010
      Messages:
      451
      Likes Received:
      0
      Trophy Points:
      16
      Well, if you have glyph/skill then it shouldn't be feeding your pet. It's set to a certain degree of pet happiness. Not timer ^^
       
    9. LAP87

      LAP87 Member

      Joined:
      Jan 15, 2010
      Messages:
      451
      Likes Received:
      0
      Trophy Points:
      16
      EDIT: It still freaks out if you don't have enough mana to revive the pet, gonna see if i can add some checks for that tomorrow...
      ---------------------------------------------------------------------------------------------------------
      Fixed Revive, There was some ( ) missing...
      I killed my pet and tried it. It works for me, so if it doesn't work for you i don't know what to do.

      ****
      Bugs:
      I've noticed some Disengage and Feign Death problems as of the latest HB, i do not know what to do about it. Sorry.
      ****
       

      Attached Files:

      Last edited: Feb 5, 2010
    10. TheGreatRowaH

      TheGreatRowaH New Member

      Joined:
      Feb 4, 2010
      Messages:
      5
      Likes Received:
      0
      Trophy Points:
      0
      It would be nice to have the above update provided by LAP87 and all future updates posted on the first post of this thread. Newbies like me are oblivious to the fact that the updates are buried deep within the thread.
       
    11. LAP87

      LAP87 Member

      Joined:
      Jan 15, 2010
      Messages:
      451
      Likes Received:
      0
      Trophy Points:
      16
      Sorry, but since Tony took the liberty of posting my modded CC for me i have no control over this.
       
    12. flogratio

      flogratio New Member

      Joined:
      Jan 17, 2010
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      0
      This thing has a fairly bad habit of getting stuck constantly strafing/backing up. It gets fixed when I move it in the direction it's stuck moving it. The issue is happening very often, at least once every 5 minutes so far. Makes non-monitored botting impossible. The issue happens during combat, so I end up strafing away from my next waypoint. If it's stuck backing up, the small twitches of forward movement from HB and the backing up nearly cancel each other out and I get stuck.

      Didn't manage to get a copy of the log, sorry.
       
    13. LAP87

      LAP87 Member

      Joined:
      Jan 15, 2010
      Messages:
      451
      Likes Received:
      0
      Trophy Points:
      16
      The strafe-bug is a HB problem, and i'm not the CC dev...
       
    14. flogratio

      flogratio New Member

      Joined:
      Jan 17, 2010
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      0
      Made a quick fix for the strafe bug. Bandera's mage cc uses a different method of backing up, and it seems to work pretty well.

      You must have strafe left bound to Q, backward to S, and strafe right to E for this fix to work, but that should apply to most players.

      find this segment of code in the cc

      Code:
                  else
                  {
                      Random random = new Random();
                      int RandomMovement = random.Next(0, 2);
                      switch(RandomMovement)
                      {
                          case 0:
                              {
                                  WoWMovement.Move(WoWMovement.MovementDirection.StrafeLeft);
                                  Thread.Sleep(1000);
                                  WoWMovement.MoveStop();
                                  _me.CurrentTarget.Face();
                                  break;
                              }
                          case 1:
                              {
                                  WoWMovement.Move(WoWMovement.MovementDirection.Backward);
                                  Thread.Sleep(2000);
                                  WoWMovement.MoveStop();
                                  _me.CurrentTarget.Face();
                                  break;
                              }
                          case 2:
                              {
                                  WoWMovement.Move(WoWMovement.MovementDirection.StrafeRight);
                                  Thread.Sleep(1000);
                                  WoWMovement.MoveStop();
                                  _me.CurrentTarget.Face();
                                  break;
                              }
                      }
                  }
      
      and replace it with

      Code:
        else
                  {
                      Random random = new Random();
                      int RandomMovement = random.Next(0, 2);
                      switch(RandomMovement)
                      {
                          case 0:
                              {
                                          Styx.Helpers.KeyboardManager.PressKey('Q');
                                          Thread.Sleep(1000);
                                          Styx.Helpers.KeyboardManager.ReleaseKey('Q');
                                          WoWMovement.MoveStop();
                                  _me.CurrentTarget.Face();
                                  break;
                              }
                          case 1:
                              {
                                          Styx.Helpers.KeyboardManager.PressKey('S');
                                          Thread.Sleep(2000);
                                          Styx.Helpers.KeyboardManager.ReleaseKey('S');
                                          WoWMovement.MoveStop();
                                  _me.CurrentTarget.Face();
                                  break;
                              }
                          case 2:
                              {
                                          Styx.Helpers.KeyboardManager.PressKey('E');
                                          Thread.Sleep(1000);
                                          Styx.Helpers.KeyboardManager.ReleaseKey('E');
                                          WoWMovement.MoveStop();
                                  _me.CurrentTarget.Face();
                                  break;
                              }
                      }
                  }
                  return "";

      The bugged strafing behavior would trigger AFTER the fight if the bot had tried to strafe some time during the fight. The original code should have worked, but there was probably issue with the threading in honorbuddy. By directly inputting the movement key, the issue goes away.
       
      Last edited: Feb 15, 2010
    15. LAP87

      LAP87 Member

      Joined:
      Jan 15, 2010
      Messages:
      451
      Likes Received:
      0
      Trophy Points:
      16
      Thanks Flogratio, i'll update the CC and upload it here when i confirm that your quick-fix works.
      You seem to know a thing or two, do you have any interest in taking a look at the Revive Pet section?
      Apparently it freaks out when it is low on mana and tries to Revive Pet, causing it to die over and over.
       
    16. flogratio

      flogratio New Member

      Joined:
      Jan 17, 2010
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      0
      Sure, I'll take a look at it.

      When does the freaking out occur? According to the code, there are 3 spots where it can happen:

      1) While resting with low mana (very low, 5%) or hp (30%)

      2) On the initial pull, after the hunter's mark and before the serpent sting

      3) During combat, before any spell is cast.

      From what I can see, the code for pet revival is kind of meh, so I might redo it entirely.

      I'm also going to look into pet feeding, right now it only feeds at <5% mana or <30% hp.
       
    17. flogratio

      flogratio New Member

      Joined:
      Jan 17, 2010
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      0
      Here's a version that hasn't been tested yet. Let me know your results please.

      Changes from LAP87's latest version:


      • New behavior for strafing/backing up out of range. Should no longer get stuck strafing after combat and will strafe on time.
      • Got rid of some minor spam in the log.
      • Pet revival redone.
      • Conditions for resting changed. If the pet does not exist, bot will rest and attempt to call/summon it.
      • Checks pet happiness before every pull, instead of only during rest.
      I didn't test the items in red much, so if someone could:


      • Let the pet die, see if the revive pet goes off properly.
      • Get to low mana/hp, see if resting still works properly.
      • First two at the same time (Have pet die during battle, get to low hp/mana). See how the bot handles not having enough mana to revive pet.
      And let me know the results.

      next on the list: mend pet instead of feed pet if user has the glyph (probably just have them set it by hand)
       

      Attached Files:

      Last edited: Feb 15, 2010
    18. silverjax

      silverjax New Member

      Joined:
      Jan 15, 2010
      Messages:
      193
      Likes Received:
      0
      Trophy Points:
      0
      Wow! Cant wait to try this on my hunter.. thanks allot flogratio
       
    19. LAP87

      LAP87 Member

      Joined:
      Jan 15, 2010
      Messages:
      451
      Likes Received:
      0
      Trophy Points:
      16
      Yeah, the mend pet/feed pet was my doing ^^ The original was so effing broken i had to redo the whole section by my limited knowledge ;D
      AFAIK, the CC should throw a piece of food at the pet once it's happiness goes under 65 (Yellow mood)...? Atleast that's how i coded it.

      Thanks alot Flog, gonna take a look at your code later today.


      - Uploaded modded CC on the first page
       
      Last edited: Feb 15, 2010
    20. Mech0z

      Mech0z New Member

      Joined:
      Feb 2, 2010
      Messages:
      59
      Likes Received:
      0
      Trophy Points:
      0
      Dont you guys use the Mend pet glyph? I just put it under feed pet that it will use mend pet as well.
       
    Thread Status:
    Not open for further replies.

    Share This Page