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

[Plugin] Giles Trinity

Status
Not open for further replies.
I have found a workaround for the leap issue, if you remove this bit of code from the cs file he will not leap outside of combat.

find and delete:
// Leap movement for a barb
if (GilesTrinity.hashPowerHotbarAbilities.Contains(SNOPower.Barbarian_Leap) &&
DateTime.Now.Subtract(GilesTrinity.dictAbilityLastUse[SNOPower.Barbarian_Leap]).TotalMilliseconds >= GilesTrinity.dictAbilityRepeatDelay[SNOPower.Barbarian_Leap] &&
fDistanceNeeded >= 25f && fDistanceNeeded <= 35f &&
PowerManager.CanCast(SNOPower.Barbarian_Leap) && !ShrinesInArea(vMoveToTarget))
{
Vector3 vTargetAimPoint = MathEx.CalculatePointFrom(vMoveToTarget, vMyCurrentPosition, fDistanceNeeded - 2f);
ZetaDia.Me.UsePower(SNOPower.Barbarian_Leap, vTargetAimPoint, GilesTrinity.iCurrentWorldID, -1);
GilesTrinity.dictAbilityLastUse[SNOPower.Barbarian_Leap] = DateTime.Now;
return;
}

And this will cause him to leap even when at full health.
Find and change:

// Leaps used on when off-cooldown, or when out-of-range
if (!bBuffsOnly && targetCheckTarget != null && !bFindPureRanged && !bAvoidanceEmergency && !playerStatus.bIsIncapacitated && hashPowerHotbarAbilities.Contains(SNOPower.Barbarian_Leap) &&
(playerStatus.dCurrentHealthPct <= 0.75 || fDistanceFromTarget >= 18f) &&
GilesUseTimer(SNOPower.Barbarian_Leap, true) && PowerManager.CanCast(SNOPower.Barbarian_Leap))

to:

// Leaps used on when off-cooldown, or when out-of-range
if (!bBuffsOnly && targetCheckTarget != null && !bFindPureRanged && !bAvoidanceEmergency && !playerStatus.bIsIncapacitated && hashPowerHotbarAbilities.Contains(SNOPower.Barbarian_Leap) &&
(playerStatus.dCurrentHealthPct <= 1 || fDistanceFromTarget >= 18f) &&
GilesUseTimer(SNOPower.Barbarian_Leap, true) && PowerManager.CanCast(SNOPower.Barbarian_Leap))

Thank you Giles for making such clear and to the point notes in your code :D

for those who are having issues with avoidance. i use a barb and here is what i tweaked and i only die 2-3 times per run now (same as the old combatreplacer)

I tweaked some of the values lower so your toon doesnt run and pause, instead it fights, and LOH will actually work
// ***** Barbarians *****
// ***************************
private static readonly Dictionary<int, double> dictAvoidanceHealthBarb = new Dictionary<int, double>
{
// Arcane Arcane 2 Desecrator Poison Tree Molten Core Molten Core 2 Molten Trail Plague Cloud Ice Balls
{219702, 0.75}, {221225, 0.75}, {84608, 0.8}, {5482, 0.55}, {4803, 1}, {4804, 1}, {95868, 0.6}, {108869, 0.25},{223675, 1},
// Bees-Wasps Plague-Hands Azmo Pools Azmo fireball Azmo bodies Belial 1 Belial 2
{5212, 1}, {3865, 0.75}, {123124, 0.8}, {123842, 0.6}, {123839, 0.7}, {161822, 1}, {161833, 1},
// Sha-Ball Mol Ball Mage Fire Green Ooze
{4103, 0.2}, {160154, 0.2}, {432, 0.75}, {4176, 0.75},
};

I also changed what gary7 stated on his post above, deleting leap movement and changing the value to 1. worked wonders
 
Thanks for the plugin Giles, awesome work!

I was using your late plugin and my monk Fist of Thunder (Thunderclap) seems to spam much faster, the new Giles Trinity can't keep with my attack speed, anyone with the same problem?
Obs: I tried to manually hold click on the monsters in my last bot run and it attacks goes realy much faster then the plugin alone.
 
but Giles i want it to be perfect NOW!
/angryforumface


seriously people, be patient :)
for as little time as Giles has had, he's put a tremendous amount of work into this plugin and its already VERY GOOD!


same this plugin is gfg the end.
 
Thanks for the plugin Giles, awesome work!

I was using your late plugin and my monk Fist of Thunder (Thunderclap) seems to spam much faster, the new Giles Trinity can't keep with my attack speed, anyone with the same problem?
Obs: I tried to manually hold click on the monsters in my last bot run and it attacks goes realy much faster then the plugin alone.

i also use fist of thunder..i saw it too...but then i hope giles focus on the avoidance behavior...very messing up my monk...standing doing nothing often in descrator, plague not that it doesnt dodge it...but alot of time it stand still like it takes time to think how to dodge something..lol.....the death per hour is sky high using trinity...

avoidance in combatreplacer is much much more better than this one..hope giles could fix it soon..thx..
 
Last edited:
Thanks for the great work GilesSmith! I am amazed you never did programming before Demonbuddy. I have a request for Azmodian could you make the combat portion of the plugin force use WOTB, and on Azmo ground pools run around the "instance" counter clockwise" during both phases? I do not know if this is possible or not. I would just appreciate it if it was possible.

Thanks for your support
 
Feedback on 1.1 on barbs (rend barbs generally)

--
-"Ticks" seems to be slower than pre-trinity
-Avoidance has issues (as you already pointed out)
-Barb tries to rend out of range sometimes. This is with the monster not approaching the barb (ranged), and the barb makes no attempts to close up the distance to rend. Rend seems to be a on "timer" now, and is casted sometimes even out of range.
-Increased stuttering when surrounded
-Goblin priority seems to be buggy (not prioritizing)

I might be mistaken on this, but wouldn't it be better to split out the files out into 5 sections (1 for each class), instead of combining them all together? Wouldn't it constantly check for non-class related ticks if you grouped them together like this. Might help since CPU usage has increased significantly.
 
Awesome plugin!

Giles i may add for future changes, i have gloves with 100dex, cold resist, Attackspeed, crit damage and crit chance but its stash value is just 17k points, its value is almost priceless in the ah, probably 15m, while my other equipment not as epic as this one gets 25-32k.

i was thinking since the default is 16k its very close to the 17k points gloves, so any glove with combined attack speed, crit dmg and crit chance with an attribute on the lower end of the range might get lower than 16k therefore salvaged while its value in the ah is very high.
 
where does it calculates sell score

i want to modify it in a way that sell all blue items and keep all rare items

thank you
 
is there a way to make it cast Wotb on Azmodan? i just added azmodan but im pretty sure my dps isnt high enough to kill it without it, thanks!
 
actually i want to modify item handler exactly like this

collect all blue items (possible right now)
sell all blue items (not possible right now)
collect all rare items (possible right now)
sell all rare items below 61 level (not possible right now)


thank you
 
is there a way to make it cast Wotb on Azmodan? i just added azmodan but im pretty sure my dps isnt high enough to kill it without it, thanks!

It should be casting it, once he is under a certain health %.
That way you can burn him down with wotb!
 
for those who are having issues with avoidance. i use a barb and here is what i tweaked and i only die 2-3 times per run now (same as the old combatreplacer)

I tweaked some of the values lower so your toon doesnt run and pause, instead it fights, and LOH will actually work
// ***** Barbarians *****
// ***************************
private static readonly Dictionary<int, double> dictAvoidanceHealthBarb = new Dictionary<int, double>
{
// Arcane Arcane 2 Desecrator Poison Tree Molten Core Molten Core 2 Molten Trail Plague Cloud Ice Balls
{219702, 0.75}, {221225, 0.75}, {84608, 0.8}, {5482, 0.55}, {4803, 1}, {4804, 1}, {95868, 0.6}, {108869, 0.25},{223675, 1},
// Bees-Wasps Plague-Hands Azmo Pools Azmo fireball Azmo bodies Belial 1 Belial 2
{5212, 1}, {3865, 0.75}, {123124, 0.8}, {123842, 0.6}, {123839, 0.7}, {161822, 1}, {161833, 1},
// Sha-Ball Mol Ball Mage Fire Green Ooze
{4103, 0.2}, {160154, 0.2}, {432, 0.75}, {4176, 0.75},
};

I also changed what gary7 stated on his post above, deleting leap movement and changing the value to 1. worked wonders

I fooled around with all the options like this and then tried out the bot with avoidance off. Went from 2 deaths per run to 0 !!! Turning off avoidance made the combat so much more fluid and made the time per run better.

I suggest if your running rend build to set the leap life to 100% as well so he leaps continually (mentioned on a previous page)
 
getting stuck on the dead gaurdsmen act 3 stuck.webp
 
Last edited:
getting stuck on the dead gaurdsmen act 3

I know he was having a conversation with someone about blacklisting a dead guard- but I'm not sure it made it into the official release (I'd assume not if you're having this issue)
but WE CAN FIX THAT!


I'll need you to open up demonbuddy, and go find a dead guardsman that your bot is trying to attack (before you press "start").
Once you find it, press the "Dump RActors" button in the "Info Dumping" tab.
You'll see some "ActorSNO's" in your demonbuddy window (or, in the log demonbuddy creates - see picture below)
What we want is the one for the dead guard
ractors.webp

Once you have this ActorSNO, we can blacklist the guard by opening the GilesTrinity.cs file with notepad, or notepad ++)

You're going to look for THIS in GilesTrinity.cs
Code:
// Special blacklist for things like ravens, templar/scoundrel/enchantress in town, witch-doctor summons, tornado-animations etc. etc. that should never be attacked
        private static readonly HashSet<int> hashActorSNOIgnoreBlacklist = new HashSet<int> { 
            5840, 111456, 5013, 5014, 205756, 205746, 4182, 4183, 4644, 4062, 4538, 52693, 162575, 2928, 51291, 51292, 
            96132, 90958, 90959, 80980, 51292, 51291, 2928, 3546, 129345, 81857, 138428, 81857, 60583, 170038, 174854, 190390, 
            194263, 5482, 174900, 219702, 221225, 87189, 90072, 107031, 106584, 186130, 187265, 201426, 201242, 200969, 201423, 
            201438, 201464, 201454, 108012, 103279, 89578, 74004, 84531, 84538, 89579, 190492, 209133, 6318, 107705, 105681, 89934, 
            89933, 182276, 117574, 182271, 182283, 182278, 128895, 81980, 82111, 81226, 81227, 107067, 103217, 105763, 110959, 106749,
            107107, 107112, 106731, 107752, 107829, 90321, 107828, 121327, 185391, 249320, 81232, 81231, 81239, 81515, 210433, 195414,
            80758, 80757, 80745, 81229, 81230, 82109, 83024, 83025, 82972, 83959, 249190, 251396, 138472, [COLOR="#FF0000"]xxxxxx[/COLOR]
         };

and add the SNO you found where the red xxxxxx is
This will make your bot ignore dead guard and prevent the stuck.
PS: If anyone does take the time to find this ActorSNO, please post it here so it's easier for Giles to implement in the next version if he doesn't already have it :)
Here's an additional SNO to add, to blacklist a melee guard that your bot may try attack: 118260 (courtesy of Gardettos)
b5x1 found the SNO of the dead guard, add 200226 to your blacklist!
 
Last edited:
Hey,

I ask the question a few hours back, but when fighting azmodan my witch doctor just don't want to doge any fireball or pool, he just don't... i tried to change some code but don't work.
I don't know if someone knows a solution?

Thanks
 
Giles when you get bored (hahaha) ...

request:
in the settings have an avoidance tab.
for each avoidance type have a slider for health and radius.

I realize i can change it in the .cs however this would enable changes on the fly, and be easier.
 
Anyone noticing less loot getting stashed with Trinity? or are my settings just f*cked up?
 
Status
Not open for further replies.
Back
Top