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

Trinity 1.7.3.8

Status
Not open for further replies.
Ok, after few tries i think i got it:
Code:
            // Check for Circle of Life passive presence
            bool hasCircleOfLife = ZetaDia.CPlayer.PassiveSkills.Contains(SNOPower.Witchdoctor_Passive_CircleOfLife);
	    // Circle of life build, explode Circle of Life dogs everytime they pop	    
            if (!UseOOCBuff && CombatBase.CanCast(SNOPower.Witchdoctor_Sacrifice) && hasCircleOfLife && (TargetUtil.AnyMobsInRange(15, 1) || CurrentTarget.RadiusDistance <= 9f))
            {
                return new TrinityPower(SNOPower.Witchdoctor_Sacrifice, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 0, WAIT_FOR_ANIM);
            }

i really don't know how to check for Circle of Life summoned dogs count, but it works anyhow..

Circlebuild.webp

And this is the build.


Maybe rrrix can correct the code if wrong.
 
WD Spirit Barrage / Manitou doesn't seem to ever be used. If selected, it should be "on" all the time but now WD doesn't seem to ever use it period. Using 1.7.3.8.
 
With DB closed, locate "Plugins\Trinity\Combat\Abilities\WitchDoctor.cs" and open it with notepad.
Find
Code:
// Spirit Barrage Manitou
            if (CombatBase.CanCast(SNOPower.Witchdoctor_SpiritBarrage) && Player.PrimaryResource >= 108 && TimeSinceUse(SNOPower.Witchdoctor_SpiritBarrage) > 18000 && hasManitou)
            {
                return new TrinityPower(SNOPower.Witchdoctor_SpiritBarrage, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 2, WAIT_FOR_ANIM);
            }

Change the "18000" to "1800".
Save.
Start DB.
 
With DB closed, locate "Plugins\Trinity\Combat\Abilities\WitchDoctor.cs" and open it with notepad.
Find
Code:
// Spirit Barrage Manitou
            if (CombatBase.CanCast(SNOPower.Witchdoctor_SpiritBarrage) && Player.PrimaryResource >= 108 && TimeSinceUse(SNOPower.Witchdoctor_SpiritBarrage) > 18000 && hasManitou)
            {
                return new TrinityPower(SNOPower.Witchdoctor_SpiritBarrage, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 2, WAIT_FOR_ANIM);
            }

Change the "18000" to "1800".
Save.
Start DB.

Thanks!
 
Still have that "greyed" config button with trinity bundled with the last DB Beta version :/

And Spirit walk is always spamming : is that normal behavior ?
 
i implement "frankenstein" code from 2 plugins (Uniddealer and AutoEquipper 2) into trinity to stop identify some items and use book of cain for other items.
how it works:
on plugin OnEnabled()
CharacterSettings.Instance.UseBookOfCain = false;


then OnPulse()
if (Zeta.Internals.UIElements.StashWindow.IsVisible)
bla bla bla, timer check etc

if we are in stash, then pause bot and stash items with some ids
after we stash items

CharacterSettings.Instance.UseBookOfCain = true;

we finish stash function, return to pause bot procedure, unpause bot

bot automatically continue townrun, but with book of cain! he will move from stash to book, ident. all and move to the next step

10sec after we used stash function:
CharacterSettings.Instance.UseBookOfCain = false;
to prevent using book of cain in next townrun

also i delete autokeep all unid from trinity files (ItemHandling.cs TrinityItemManager.cs don't know wich file keep all unid, i just deleted it in both^^)
and

Code:
private void OnItemIdentificationRequest(object sender, ItemIdentifyRequestEventArgs args)
        {
           

			
            args.IgnoreIdentification = !CharacterSettings.Instance.UseBookOfCain;
        }
if UseBookOfCain = false then IgnoreIdentification = true and we will not ident anything

ps. my stash function
Code:
public bool CheckStashUNID()
		{
			
			
			foreach (ACDItem item in ZetaDia.Me.Inventory.Backpack)
            {
				bool keep = ShouldKeep(item);
				if (keep)
                {
                    ZetaDia.Me.Inventory.QuickStash(item);
                }
                    
            }
			_lastStashCheck = DateTime.Now;
			CharacterSettings.Instance.UseBookOfCain = true;
			return false;	
		}

ZetaDia.Me.Inventory.QuickStash(item) this procedure is too fast, i need to add some random small pause,
 
hi immortalhz,

I am not sure of the purpose of that - why would you want to *sometimes* use the book of cain, but not others?
 
ok, i will stash 5 legs and ident one by one other 20 items, big time waste ( and even more time for trashy legs.)
with itemrules2 or Uniddealer my bot ident trash (1h rares 60-62 jewel.) 1 by 1 and then stash unid, selling, salv. stashing craft ingr.

ps
works
CharacterSettings.Instance.UseBookOfCain = true;

doesn't work =)
CharacterSettings.Instance.UseBookOfCain = false;
lol
 
please test immortalz code @rrix..and implement that in uniddealer :D
 
Having a few problems with this version,

1. When jailed/frozen, not using WOTB, just standing there getting beat on until almost dead (with use WOTB on hard elites only checked) this makes bot die and take much much longer to kill elites.
2. Wallers seem to confuse the bot, just standing around trying to figure out what to do.
3. Not using bash with punish rune properly for the damage buff, bot only seems to use it when he runs out of fury. Punish runs give my barb almost 100,000 more DPS with full 3 stack, so this is significant problem.
4. Bot runs to health wells, ignoring all enemy to get to the well even when at full health.

Other than this, it is working great. Avoidance is much better in the last version. Much thanks Rrrix!
 
1. what i must change, that my bot use HOTA only on elites?


2. elite kills..:<
i use this settings, but the bot dont kill many elites/blues...not blacklist problem :<


Unbenannt.webp
 
Having a few problems with this version,

1. When jailed/frozen, not using WOTB, just standing there getting beat on until almost dead (with use WOTB on hard elites only checked) this makes bot die and take much much longer to kill elites.
2. Wallers seem to confuse the bot, just standing around trying to figure out what to do.
3. Not using bash with punish rune properly for the damage buff, bot only seems to use it when he runs out of fury. Punish runs give my barb almost 100,000 more DPS with full 3 stack, so this is significant problem.
4. Bot runs to health wells, ignoring all enemy to get to the well even when at full health.

Other than this, it is working great. Avoidance is much better in the last version. Much thanks Rrrix!

1 & 2: Disable trinity unstucker.
3: IDK.
4: Fix for health well courtesy of rrrix. CLICK HERE!

Find this in Trinity\Combat\Weights.cs. You can either delete this entire block, or fix it:

Code:
case GObjectType.HealthWell:
{
if (MonsterObstacleCache.Any(unit => MathUtil.IntersectsPath(unit.Location, unit.Radius, Player.Position, cacheObject.Position)))
{
// As a percentage of health with typical maximum weight
cacheObject.Weight = 50000d * (1 - Trinity.Player.CurrentHealthPct);
}
break;
}
Add a "!" before "MonsterObstacleCache" so it's:

Code:
case GObjectType.HealthWell:
{
if (!MonsterObstacleCache.Any(unit => MathUtil.IntersectsPath(unit.Location, unit.Radius, Player.Position, cacheObject.Position)))
{
// As a percentage of health with typical maximum weight
cacheObject.Weight = 50000d * (1 - Trinity.Player.CurrentHealthPct);
}
break;
}
 
You have to edit the trinity barb combat routine. Best of luck with it, im trying now to do it.
 
i need help from a coder or so :D

anyway man, why you dont ask that one who made profile for a2 keyhunting and post it from your account? its your friend? i think he must know about all this stuff:)
 
HOTA when used with WW is used only on elites except when ignoring elites.

When ignoring elites, it will be used when there's a stack of trash mobs - 3 mobs in a very tight (6 yard) radius.

If you're NOT running a HOTA/WW build, maybe post your build, and describe what you want, and I can set up some more options. That's why I'm here :)
 
It's a typo here? SoulHarvest instead of SpiritBarrage? Because the bot doesn't use spirit barrage if the rune is well of souls

Code:
bool hasWellOfSouls = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.Witchdoctor_SoulHarvest && s.RuneIndex == 1);
            bool hasRushOfEssence = ZetaDia.CPlayer.PassiveSkills.Any(s => s == SNOPower.Witchdoctor_Passive_RushOfEssence);

            // Spirit Barrage + Rush of Essence
            if (!UseOOCBuff && !IsCurrentlyAvoiding && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Witchdoctor_SpiritBarrage) && Player.PrimaryResource >= 108 &&
                hasRushOfEssence && Player.PrimaryResourcePct <= 0.25 && !hasManitou)
            {
                if (hasWellOfSouls)
                    return new TrinityPower(SNOPower.Witchdoctor_SpiritBarrage, 2, 2);

                return new TrinityPower(SNOPower.Witchdoctor_SpiritBarrage, 21f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 2, 2, WAIT_FOR_ANIM);
            }

Basically i was trying to code that IF i have bears, use them on trash but not on elites IF i have well of souls, and use well of souls only on elites.
 
It's a typo here? SoulHarvest instead of SpiritBarrage? Because the bot doesn't use spirit barrage if the rune is well of souls

Code:
bool hasWellOfSouls = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.Witchdoctor_SoulHarvest && s.RuneIndex == 1);
            bool hasRushOfEssence = ZetaDia.CPlayer.PassiveSkills.Any(s => s == SNOPower.Witchdoctor_Passive_RushOfEssence);

            // Spirit Barrage + Rush of Essence
            if (!UseOOCBuff && !IsCurrentlyAvoiding && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Witchdoctor_SpiritBarrage) && Player.PrimaryResource >= 108 &&
                hasRushOfEssence && Player.PrimaryResourcePct <= 0.25 && !hasManitou)
            {
                if (hasWellOfSouls)
                    return new TrinityPower(SNOPower.Witchdoctor_SpiritBarrage, 2, 2);

                return new TrinityPower(SNOPower.Witchdoctor_SpiritBarrage, 21f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 2, 2, WAIT_FOR_ANIM);
            }

Basically i was trying to code that IF i have bears, use them on trash but not on elites IF i have well of souls, and use well of souls only on elites.

Yeah... "Typo" ... :rolleyes:
 
Status
Not open for further replies.
Back
Top