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

Corrupted Blood - Bot sometimes use pots, sometimes not

frankbaozhu

New Member
Joined
Jun 10, 2014
Messages
31
Reaction score
0
I noticed a weird phenomenon that Bot sometimes use pots to remove Corrupted Blood and sometimes it does not. Can someone explain why? It is disheartening to see health drops straight to 40%! This debuff is the only thing that might kills me except for some bosses with nasty mods. Please help!
 
simply roll a remove bleeding/burning roll (not sure about the name lol) on a insta life flask as soon your hp drop below the point you fixed it will use it, corrupted blood or not
 
I have the pots. But sometimes bot chooses not to use it, hence my question.
 
In Release, the Exile CR flask logic only uses hp/mp pots by default. The bot doesn't use them, because there's no logic to do that. Extra logic has to be added if you want to use specific flasks when you have a certain status aliment. You can find the section of code that handles this in Routines\Exile\Exile.cs, and the function is CreateFlaskLogic. At the top of the function there is a big block of commented out code that shows examples of things like shock, frozen, chilled, etc..

If you look at this code:
Code:
// Uncomment this to use any flask which dispels the effect as soon as you have the effect
                /*new Decorator(ret => _flaskCd.IsFinished && Me.HasAura("puncture") && BleedingFlasks.Count() != 0,
                    new Action(ret =>
                    {
                        BleedingFlasks.First().Use();
                        _flaskCd.Reset();
                    })),*/

This is the example logic that would use flasks that cure bleeding if you have puncture. For corrupted rain, you'd want to replace that exact code with the following:
Code:
// use any flask which dispels the effect as soon as you have the effect
new Decorator(ret => _flaskCd.IsFinished && (Me.HasAura("puncture") || Me.HasAura("corrupted_blood") ) && BleedingFlasks.Count() != 0,
                    new Action(ret =>
                    {
                        BleedingFlasks.First().Use();
                        _flaskCd.Reset();
                    })),

Just change the code, save, and restart the bot. That should make the bot use those flasks under those conditions now.

Beta will not use it automatically either, but some more customization to the flask logic will be made and exposed through a plugin so users can easily enable/disable the bot from using various flasks under different conditions so they don't have to edit the code.

Edit: The latest beta now supports using bleeding flasks when bleeding from puncture or rain.
 
Last edited:
Thx! I will try the code. The weird thing is that, some times the bot chooses to use the bleeding pot andbremove the debuff when health dropped to a xertain percentage, but sometimes it doesn't. Can you explain why?
 
Thx! I will try the code. The weird thing is that, some times the bot chooses to use the bleeding pot andbremove the debuff when health dropped to a xertain percentage, but sometimes it doesn't. Can you explain why?

Yes, the bot will use the flask that has the most charges in order to cycle through them more efficiently. As a result, sometimes the flask might be used, and sometimes it's not, just based on coincidence.
 
Back
Top