• Visit Rebornbuddy
  • Weapon_Melee_Instant FIX

    Discussion in 'Archives' started by Moley, Oct 19, 2012.

    1. Moley

      Moley New Member

      Joined:
      Jul 15, 2012
      Messages:
      227
      Likes Received:
      0
      Trophy Points:
      0
      Weapon_Melee_Instant FIX Take Two

      This is temporary, but for now

      Change your code to this, where "11f" equals the distance you want to attack from
      Code:
      					// Default attacks
                          if (!bOOCBuff && !bCurrentlyAvoiding && !playerStatus.bIsIncapacitated)
                          {
                              return new GilesPower(SNOPower.Weapon_Melee_Instant, 11f, new Vector3(targetCurrent.vThisPosition.X, targetCurrent.vThisPosition.Y, targetCurrent.vThisPosition.Z + iThisHeight), iCurrentWorldID, -1, 0, 0, USE_SLOWLY);
                          }
      Enjoy

      Code:
      [09:09:21] [you]: what does that do?
      [09:11:09] [maybe you]: no idea
      [09:13:14] [me]: no, now it will attack when you run out of mana etc
      [09:13:36] [me]: the code was bad and it wasn't being triggering for any classes, thus you stood there and got hit the face

      FOR WIZARDS YOU MUST NOT PUT ENERGY TWISTER TO LEFT MOUSE BUTTON, no idea, but it works
      Code:
                              // Default attacks
                              if (!bOOCBuff && !bCurrentlyAvoiding && !playerStatus.bIsIncapacitated && !PowerManager.CanCast(SNOPower.Wizard_EnergyTwister))
                              {
                                  return new GilesPower(SNOPower.Weapon_Melee_Instant, 10f, new Vector3(targetCurrent.vThisPosition.X, targetCurrent.vThisPosition.Y, targetCurrent.vThisPosition.Z + iThisHeight), iCurrentWorldID, -1, 0, 0, USE_SLOWLY);
                              }
       
      Last edited: Oct 19, 2012
    2. bodosko

      bodosko New Member

      Joined:
      Sep 18, 2012
      Messages:
      173
      Likes Received:
      1
      Trophy Points:
      0
      Need to change all code parts that start with this?
      Code:
      // Default attacks
                          if (!bOOCBuff && !bCurrentlyAvoiding && !playerStatus.bIsIncapacitated)
       
    3. Moley

      Moley New Member

      Joined:
      Jul 15, 2012
      Messages:
      227
      Likes Received:
      0
      Trophy Points:
      0
      Correct, for all classes you use, feel free to keep the default distances
       
    4. xyber

      xyber New Member

      Joined:
      Oct 2, 2012
      Messages:
      244
      Likes Received:
      0
      Trophy Points:
      0
      Nice fix, but for wizards a archon/ww hybrid, WW is the only skill that can be placed on the left mouse button? How do you go around that?

      edit - I think it works even if Twister is on left click =)
       
      Last edited: Oct 20, 2012
    5. bodosko

      bodosko New Member

      Joined:
      Sep 18, 2012
      Messages:
      173
      Likes Received:
      1
      Trophy Points:
      0
      Not working here when using with Energy Twister. I tried both codes, on left mouse, right mouse, key 1, no success at all. Also deleted CompiledAssemblies.
      When bot has mana, it cast twister, but when hasnt, it stay looking at mobs face.

      And I get a Giles error in the Log sometimes:
      Code:
      [01:07:27.513 N] Fatal Error: Couldn't find a valid attack ability. Not enough resource for any abilities or all on cooldown
      [01:07:27.513 N] If you get this message frequently, you should consider changing your build
      [01:07:27.513 N] Perhaps you don't have enough critical hit chance % for your current build, or just have a bad skill setup?
       
    6. xyber

      xyber New Member

      Joined:
      Oct 2, 2012
      Messages:
      244
      Likes Received:
      0
      Trophy Points:
      0
      Change the default attack distance to 21f
       
    7. nuestra

      nuestra New Member

      Joined:
      Oct 23, 2012
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      This fix was working before i updated to newest version of DB but now not working anymore.
      My melee wizard still keeps on looking mobs faces once arcane power is depleted by energy twisters.

      I hope some guru can take a deep look at this issue.
       
    8. east

      east New Member

      Joined:
      Oct 26, 2012
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      guys how i can change electrocute remove from melee atack? (wizard)
       

    Share This Page