What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Change Fetish trigger to 4 mobs or more OR elite mobs in range?

Hellcom

New Member
Joined
Jun 8, 2012
Messages
643
Reaction score
4
How can I do this?

Basically want DB to use Fetishes everytime there's 4 or more mobs in range instead of only on elite packs.
 
Code:
if (CanCast(SNOPower.Witchdoctor_FetishArmy) && ((TargetUtil.AnyMobsInRange(30f, 4) && Player.CurrentHealthPct > 0.7) || TargetUtil.EliteOrTrashInRange(30f) || TargetUtil.IsEliteTargetInRange(30f) || Settings.Combat.WitchDoctor.UseFetishArmyOffCooldown))
                {
                    return new TrinityPower(SNOPower.Witchdoctor_FetishArmy);
                }

in "WitchDoctorCombat.cs"

I added a check for player health so that the bot won't use fetish army on low health. It sucks when he dies right after using it. You can remove or adjust this.
 
Code:
if (CanCast(SNOPower.Witchdoctor_FetishArmy) && ((TargetUtil.AnyMobsInRange(30f, 4) && Player.CurrentHealthPct > 0.7) || TargetUtil.EliteOrTrashInRange(30f) || TargetUtil.IsEliteTargetInRange(30f) || Settings.Combat.WitchDoctor.UseFetishArmyOffCooldown))
                {
                    return new TrinityPower(SNOPower.Witchdoctor_FetishArmy);
                }

in "WitchDoctorCombat.cs"

I added a check for player health so that the bot won't use fetish army on low health. It sucks when he dies right after using it. You can remove or adjust this.

Thank you, that is beautiful! :)
 
Code:
if (CanCast(SNOPower.Witchdoctor_FetishArmy) && ((TargetUtil.AnyMobsInRange(30f, 4) && Player.CurrentHealthPct > 0.7) || TargetUtil.EliteOrTrashInRange(30f) || TargetUtil.IsEliteTargetInRange(30f) || Settings.Combat.WitchDoctor.UseFetishArmyOffCooldown))
                {
                    return new TrinityPower(SNOPower.Witchdoctor_FetishArmy);
                }

in "WitchDoctorCombat.cs"

I added a check for player health so that the bot won't use fetish army on low health. It sucks when he dies right after using it. You can remove or adjust this.

Would it be possible to block recast for say 12 sec btw? Because vs some bosses FA recharges in like 4 sec so it's just silly casting it that often.
 
Would it be possible to block recast for say 12 sec btw? Because vs some bosses FA recharges in like 4 sec so it's just silly casting it that often.

Hm, we would need either a timer or a way to check how many fetishes we have to make that work. I'm not sure how to do that but I could give it a try when I get the time.
 
Hm, we would need either a timer or a way to check how many fetishes we have to make that work. I'm not sure how to do that but I could give it a try when I get the time.

I think a timer is probably the best solution for something like that. Because I don't mind it recasting while fetishes are out if conditions are still met. It's just, every 4 sec is a tad excessive.
 
Back
Top