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

How to set DB to get Health Gloves (For Reaper Wraps)

gamebuddy

New Member
Joined
Jun 5, 2013
Messages
34
Reaction score
0
Hello,

Can someone tell me, how to set DB to pick up health gloves when:
Bot is wearing Reaper wraps and In combat and low in Resource.

I didn't seem to find a config for it.

Thanks,
 
Check it under Trinity. You would be able to config it there.
 
Thanks for the reply.
I set it to pick up HG to 100.

It works only when I get hit.

What would be great for me, is that when resource is low, and my toon is wearing reapers wraps, it would then pick up HG even when in combat.

TIA.
 
+1 I would also benefit if trinity could pickup health globes when my resource starts running low
 
Go to trinity-combat - weightings.cs
Find

// Weight Health Globes

bool witchDoctorManaLow =
Player.ActorClass == ActorClass.Witchdoctor &&
Player.PrimaryResourcePct <= 0.15 &&
HotbarSkills.PassiveSkills.Contains(SNOPower.Witchdoctor_Passive_GruesomeFeast);

if ((Player.CurrentHealthPct >= 1 || !Settings.Combat.Misc.CollectHealthGlobe))
{
cacheObject.Weight = 0;
}


change tp

// Weight Health Globes

bool witchDoctorManaLow =
Player.ActorClass == ActorClass.!!!!!!!!!!!!! &&
Player.PrimaryResourcePct <= !!!!! ;

// if ((Player.CurrentHealthPct >= 1 || !Settings.Combat.Misc.CollectHealthGlobe))
// {
// cacheObject.Weight = 0;
// }

Change !!!!! to your class and percentage of mana which trigger movenment to globe
 
I have been looking for a resource based health globe pickup override and I thought I found it with this.

However, I have been getting an error when trying to change it:

Flashing window
Compiler Error: .....\Plugins\Trinity\Combat\Weighting.cs(660,33) : error CS1525: Invalid expression term 'else'
Compiler Error: .....\Plugins\Trinity\Combat\Weighting.cs(660,38) : error CS1002: ; expected



Here is exactly copy/pasted from my weighting.cs file:

// Weight Health Globes

bool witchDoctorManaLow =
Player.ActorClass == ActorClass.Crusader &&
Player.PrimaryResourcePct <= 0.40 ;

//if ((Player.CurrentHealthPct >= 1 || !Settings.Combat.Misc.CollectHealthGlobe))
//{
// cacheObject.Weight = 0;
//}




Error CS1525: Invalid expression term 'else'
  • Invalid expression term 'character' The compiler detected an invalid character in an expression.
  • An empty label can also generate CS1525

Error CS1002: ; expected
  • The compiler detected a missing semicolon. A semicolon in required at the end of every statement in C#. A statement may span more than one line.



I don't really know what I am doing here, but I tried to leave it as it, but change items over to Crusader items:


// Weight Health Globes

bool witchDoctorManaLow =
Player.ActorClass == ActorClass.Crusader &&
Player.PrimaryResourcePct <= 0.35 &&
HotbarSkills.PassiveSkills.Contains(SNOPower.X1_Crusader_Passive_Finery);

if ((Player.CurrentHealthPct >= 40 || !Settings.Combat.Misc.CollectHealthGlobe))
{
cacheObject.Weight = 0;
}

Still not working :(


I made a thread in the dev forums:
health globe handling usage reaper wraps becoming-efficient torments
 
Last edited:
Not sure if it's the complete reason but you had a space between the 40 and the ;
When you cancel out a line (if that was your intention) try // Double Slash, a Space, then the Canceled Out Text.
// This line is now a comment.

Here is exactly copy/pasted from my weighting.cs file:
Code:
                               // Weight Health Globes

                                bool witchDoctorManaLow =
                                    Player.ActorClass == ActorClass.Crusader &&
                                    Player.PrimaryResourcePct <= 0.40[COLOR="#FF0000"];[/COLOR]

                                [COLOR="#FF0000"]//[/COLOR] if ((Player.CurrentHealthPct >= 1 || !Settings.Combat.Misc.CollectHealthGlobe))
                                [COLOR="#FF0000"]//[/COLOR] {
                                [COLOR="#FF0000"]//[/COLOR]    cacheObject.Weight = 0;
                                [COLOR="#FF0000"]//[/COLOR] }

I can't say if the code is correct at first glance but... assuming that it is... those few things could have been enough to drop error codes.

Good Luck ;)
 
Thank you for that information!

I am still getting the same errors though. I made sure that the syntax was right an tested both instances above again to no avail.

I am not sure if it's because of the bool witchDoctorManaLow =, I assume it's class specific?

Does anyone else know how to change health globes so that I can force the bot to pickup health under 50% health and under 40% resources for all classes?
 
I am not sure if it's because of the bool witchDoctorManaLow =, I assume it's class specific?

Does anyone else know how to change health globes so that I can force the bot to pickup health under 50% health and under 40% resources for all classes?

You're welcome and sorry it wasn't more help.

My reply was after just at a glance... and not a very good one at that, haha.
Somehow I missed the "witchDoctorManaLow" part in your post :rolleyes:

Puzzling though... has me curious now but... I have to run.

Check this out:
Code:
[COLOR="#B22222"][B]Search "CollectHealthGlobe" (8 hits in 3 files)[/B][/COLOR]

[COLOR="#0000CD"][B]  ...\Plugins\Trinity\Combat\[/COLOR][COLOR="#B22222"]TargetUtil.cs[/COLOR][/B] (1 hit)
	[B]Line 396:[/B][COLOR="#008080"]   Trinity.Settings.Combat.Misc.CollectHealthGlobe &&[/COLOR]

[COLOR="#0000CD"][B]  ...\Plugins\Trinity\Combat\[/COLOR][COLOR="#B22222"]Weighting.cs[/COLOR][/B] (1 hit)
	[B]Line 656:[/B]   [COLOR="#008080"]if ((Player.CurrentHealthPct >= 1 || !Settings.Combat.Misc.CollectHealthGlobe))[/COLOR]

[COLOR="#0000CD"][B]  ...\Plugins\Trinity\Settings\Combat\[/COLOR][COLOR="#B22222"]MiscCombatSetting.cs[/COLOR][/B] (6 hits)
	[B]Line 16:[/B]   [COLOR="#008080"]private bool _CollectHealthGlobe;[/COLOR]
	[B]Line 216:[/B]   [COLOR="#008080"]public bool CollectHealthGlobe[/COLOR]
	[B]Line 220:[/B]   [COLOR="#008080"]return _CollectHealthGlobe;[/COLOR]
	[B]Line 224:[/B]   [COLOR="#008080"]if (_CollectHealthGlobe != value)[/COLOR]
	[B]Line 226:[/B]   [COLOR="#008080"]_CollectHealthGlobe = value;[/COLOR]
	[B]Line 227:[/B]   [COLOR="#008080"]OnPropertyChanged("CollectHealthGlobe");[/COLOR]

Seems the only two real mentions of globes have a class associated with it:
Code:
                                // Weight Health Globes

                                bool witchDoctorManaLow =
                                    Player.ActorClass == [B]ActorClass.Witchdoctor[/B] &&
                                    Player.PrimaryResourcePct <= 0.15 &&
                                    HotbarSkills.PassiveSkills.Contains(SNOPower.Witchdoctor_Passive_GruesomeFeast);

                                if ((Player.CurrentHealthPct >= 1 || !Settings.Combat.Misc.CollectHealthGlobe))
                                {
                                    cacheObject.Weight = 0;
                                }

As well as in the TargetUtil.cs file which has a lot of the calculations in it:
Code:
            bool includeHealthGlobes = false;
            switch (Trinity.Player.ActorClass)
            {
                case [B]ActorClass.Barbarian[/B]:
                    includeHealthGlobes = CombatBase.Hotbar.Contains(SNOPower.Barbarian_Whirlwind) &&
                                          Trinity.Settings.Combat.Misc.CollectHealthGlobe &&
                                          ObjectCache.Any(g => g.Type == GObjectType.HealthGlobe && g.Weight > 0);
                    break;
            }
That's just the other "class" specific mention ^ ^. Ahhh... I bet you can't change the code because the "mention" is in reflect of the globe itself and the class skill\passive only.

Take a skim over the rest of the TargetUtil.cs file if you like... it has some interesting details on how exactly things work. It might even have the code that you need or were looking for... worst case it's more knowledge.

Extra short on time now but I have a tiny bit of info in regards to:
Does anyone else know how to change health globes so that I can force the bot to pickup health under 50% health and under 40% resources for all classes?

I took a quick look and in ...DB\Settings\!username!\Trinity.xml
you will find the settings for all the classes and more.

Such as:
<HealthGlobeLevel>0.8</HealthGlobeLevel>
 
Last edited:
I am unsure about this code here. Did anyone get this too work? Can someone post the specific lines that need to be changed for this code?
Or should I be w8ing for an update to trinity? Thanks.
 
I am not sure. I spent a day or so searching around but I am no expert and haven't been able to find or make a working solution.
 
Back
Top