• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Dh有了戰輪產生憎恨的箭筒,怎麼修改一直使用戰輪技能呢

    Discussion in 'Demonbuddy 援助区' started by orient, Sep 10, 2014.

    1. orient

      orient New Member

      Joined:
      Apr 3, 2014
      Messages:
      18
      Likes Received:
      0
      Trophy Points:
      0
      如題請大家幫幫忙
       
    2. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      这个技能本来就没加什么限制,都是憎恨大于等于10的时候就会用
       
    3. orient

      orient New Member

      Joined:
      Apr 3, 2014
      Messages:
      18
      Likes Received:
      0
      Trophy Points:
      0
      怎么改成0憎恨也用呢
       
    4. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      Plugins\Trinity\Combat\Abilities\DemonHunter.cs
      Code:
      if (!UseOOCBuff && !IsCurrentlyAvoiding && Hotbar.Contains(SNOPower.DemonHunter_Chakram) && !Player.IsIncapacitated &&
                      !hasShurikenCloud &&
                      ((Player.PrimaryResource >= 10 && !Player.WaitingForReserveEnergy) || Player.PrimaryResource >= MinEnergyReserve))
                  {
                      return new TrinityPower(SNOPower.DemonHunter_Chakram, 50f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 0, 1);
                  }
      
      >=10这里就是憎恨数
       
    5. orient

      orient New Member

      Joined:
      Apr 3, 2014
      Messages:
      18
      Likes Received:
      0
      Trophy Points:
      0
      // Elemental Arrow
      if (!UseOOCBuff && !IsCurrentlyAvoiding && Hotbar.Contains(SNOPower.DemonHunter_ElementalArrow) &&
      SNOPowerUseTimer(SNOPower.DemonHunter_ElementalArrow) && !Player.IsIncapacitated &&
      ((Player.PrimaryResource >= 0 && !Player.WaitingForReserveEnergy) || Player.PrimaryResource >= MinEnergyReserve || hasKridershot))
      {
      return new TrinityPower(SNOPower.DemonHunter_ElementalArrow, 65f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 0, 1);
      }

      // Chakram normal attack
      if (!UseOOCBuff && !IsCurrentlyAvoiding && Hotbar.Contains(SNOPower.DemonHunter_Chakram) && !Player.IsIncapacitated &&
      !Runes.DemonHunter.ShurikenCloud.IsActive &&
      ((Player.PrimaryResource >= 10 && !Player.WaitingForReserveEnergy) || Player.PrimaryResource >= MinEnergyReserve))
      {
      return new TrinityPower(SNOPower.DemonHunter_Chakram, 50f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 0, 1);
      }

      // Chakram:Shuriken Cloud
      if (!Player.IsInTown && !IsCurrentlyAvoiding && Hotbar.Contains(SNOPower.DemonHunter_Chakram) && !Player.IsIncapacitated &&
      Runes.DemonHunter.ShurikenCloud.IsActive && TimeSinceUse(SNOPower.DemonHunter_Chakram) >= 110000 &&
      ((Player.PrimaryResource >= 0 && !Player.WaitingForReserveEnergy) || Player.PrimaryResource >= MinEnergyReserve))
      {
      return new TrinityPower(SNOPower.DemonHunter_Chakram, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 2);
      }

      // Rapid Fire
      if (!UseOOCBuff && !IsCurrentlyAvoiding && CombatBase.CanCast(SNOPower.DemonHunter_RapidFire, CombatBase.CanCastFlags.NoTimer) &&
      !Player.IsIncapacitated && Player.PrimaryResource >= 16 &&
      (Player.PrimaryResource >= Settings.Combat.DemonHunter.RapidFireMinHatred || CombatBase.LastPowerUsed == SNOPower.DemonHunter_RapidFire))
      {
      // Players with grenades *AND* rapid fire should spam grenades at close-range instead
      if (Hotbar.Contains(SNOPower.DemonHunter_Grenades) && CurrentTarget.RadiusDistance <= 18f)
      {
      return new TrinityPower(SNOPower.DemonHunter_Grenades, 18f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 0, 0);
      }
      // Now return rapid fire, if not sending grenades instead
      return new TrinityPower(SNOPower.DemonHunter_RapidFire, 40f, CurrentTarget.Position);
      }
      那个是战轮技能啊
       
    6. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      DemonHunter_Chakram
      技能你可以去台服官网找对应的技能,然后网址最后那个单词就是技能名字了
       

    Share This Page