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

Fixes for GilesCombatReplacer [Temporary till hes back]

@Satan: The looting could be being broke cause of the post-5 second combat avoidance looking for the // Post-5 SEcond tag in CombatRepalcer and delete the If statement and coide block there
i think its the line below this line "// Force avoidance for 5 seconds if out of combat"

I just have to delete the above line and the looting should be fixed?
 
delete
Code:
                // Force avoidance for 5 seconds if out of combat
                if (bOutOfCombatAvoidance && DateTime.Now.Subtract(lastTimeInCombat).TotalSeconds < 5)
                {
                    FindSafeZone(true);
                    iEmergencyLoops = 0;
                    return RunStatus.Running;
                }
 
Barbarian working like a charm.
Just pulled 2 elite packs in A2 and fought through them like a boss.

Testing monk in just a moment.

EDIT: Monk working flawlessly as well.

Thank you for providing a fix for this!
 
Last edited:
Has anyone had success with the above suggestion?
Yes, worked for me, but I had to remove some extra lines. Just for safety I'm using Giles previous to last plugin, because I know it's working / rarely crashing for me.

Lines I removed:
Code:
{
                if (bDebugLogging) Logging.WriteDiagnostic("Debug: Failed to emergency move? Cancelling for 15 checks...");
                iCancelledEmergencyMoveFor = 15;
                // Force avoidance for 5 seconds if out of combat
                if (bOutOfCombatAvoidance && DateTime.Now.Subtract(lastTimeInCombat).TotalSeconds < 5)
                {
                    FindSafeZone(true);
                    iEmergencyLoops = 0;
                    return RunStatus.Running;
                }
                bFullLoopBreakout = true;
                return RunStatus.Success;
            }

Thanks so much btw, I don't dare think what kind of items it didn't pick up the past couple of days!
 
Last edited:
delete
Code:
                // Force avoidance for 5 seconds if out of combat
                if (bOutOfCombatAvoidance && DateTime.Now.Subtract(lastTimeInCombat).TotalSeconds < 5)
                {
                    FindSafeZone(true);
                    iEmergencyLoops = 0;
                    return RunStatus.Running;
                }


noticed its in 2 spots, do i delete both or just the top one along with the extra stuff left by Marc
 
Dlete both of those code blocks, as far As I can tell the extra bit that marc removed just has to deal with not spazzingly moving around but I may wrong, overall seems to have no impact on the post avoidance feature
 
Barbarian working like a charm.
Just pulled 2 elite packs in A2 and fought through them like a boss.

Testing monk in just a moment.

EDIT: Monk working flawlessly as well.

Thank you for providing a fix for this!

I dont see any fix regarding barbarian combat , what did you change with your combat as barbarian?
 
How do i change the code for Frenzy barb making attack Azmodan withour runing across him?
 
Code:
                    // Frenzy rapid-attacks
                    if (!bBuffsOnly && !bAvoidanceEmergency && !bMeIncapacitated && powerHotbarAbilities.Contains(SNOPower.Barbarian_Frenzy))
                    {
                        iThisHeight += 2f;
                        if (unitCurrentTarget.diaThisUnit != null && unitCurrentTarget.diaThisUnit.BaseAddress != IntPtr.Zero)
                            vCurrentTargetPosition = unitCurrentTarget.diaThisUnit.Position;
                        return new GilesPower(SNOPower.Barbarian_Frenzy, 10f, new Vector3(vCurrentTargetPosition.X, vCurrentTargetPosition.Y, vCurrentTargetPosition.Z + iThisHeight), iCurrentWorldID, -1, USE_COMBAT_ONLY, FOR_INSTANT_USE);
                    }

to

Code:
                    // Frenzy rapid-attacks
                    if (!bBuffsOnly && !bAvoidanceEmergency && !bMeIncapacitated && powerHotbarAbilities.Contains(SNOPower.Barbarian_Frenzy))
                    {
                        iThisHeight += 2f;
                        if (unitCurrentTarget.diaThisUnit != null && unitCurrentTarget.diaThisUnit.BaseAddress != IntPtr.Zero)
                            vCurrentTargetPosition = unitCurrentTarget.diaThisUnit.Position;
                        return new GilesPower(SNOPower.Barbarian_Frenzy, 10f,  vNullLocation, -1, unitCurrentTarget.iThisActorACDGUID, USE_COMBAT_ONLY, FOR_INSTANT_USE);
                    }
 
how to force barb to spam run like a wind ??? not only as speed run but always.
 
Not too sure on this but I believe removing the cached resources should get this done bfor you, let me know if this works if not ill remove it

look for
Code:
                        // Special segment for sprint as an out-of-combat thing if being followed
                        //
                        if (bBuffsOnly && !bMeIncapacitated && powerHotbarAbilities.Contains(SNOPower.Barbarian_Sprint) && !GilesHasBuff(SNOPower.Barbarian_Sprint) &&
                            DateTime.Now.Subtract(dictAbilityLastUse[SNOPower.Barbarian_Sprint]).TotalMilliseconds >= dictAbilityRepeatDelay[SNOPower.Barbarian_Sprint] &&
                            iMyCachedPrimaryResource >= 21 && 
                            PowerManager.CanCast(SNOPower.Barbarian_Sprint))
                        {
                            return new GilesPower(SNOPower.Barbarian_Sprint, 0f, vNullLocation, iCurrentWorldID, -1, USE_ANY_TIME, FOR_SLOW_USE);
                        }
replace
Code:
                        // Special segment for sprint as an out-of-combat thing if being followed
                        //
                        if (bBuffsOnly && !bMeIncapacitated && powerHotbarAbilities.Contains(SNOPower.Barbarian_Sprint) && !GilesHasBuff(SNOPower.Barbarian_Sprint) &&
                            DateTime.Now.Subtract(dictAbilityLastUse[SNOPower.Barbarian_Sprint]).TotalMilliseconds >= dictAbilityRepeatDelay[SNOPower.Barbarian_Sprint] && 
                            PowerManager.CanCast(SNOPower.Barbarian_Sprint))
                        {
                            return new GilesPower(SNOPower.Barbarian_Sprint, 0f, vNullLocation, iCurrentWorldID, -1, USE_ANY_TIME, FOR_SLOW_USE);
                        }
 
anyone know how to fix siegebreaker for wizards with giles? my CM wiz will sometimes lose target of siegebreaker after his charge move and never regain target, then die.
 
Dump I would assume that could possibly due to the Wiz CM having shorter range for most of its abilities if im not mistaken will double check
 
I just realised after you change the serenity to pop when against elites, it doesn't cast when health is low.
 
is that possible to modify this plugin in a way that it will continue moving even very tiny while fighting in order to collect globes
 
No monster go figure it out yourself

@Nudge: Yea I rather it chain casting than using low hp but if you want to add the low hp part just add

Code:
 &&  (iMyCachedHealth <= 0.50 || (bMeIncapacitated && iMyCachedHealth <= 0.60))

to the ifstatement
 
Last edited:
Back
Top