So I've tried everything to get the bot to take the flask under the right circumstances and it just wont use it.
The only way I've managed to get it to use it is if I fool the bot into thinking it's a mana flask, but then it will only use it when im out of mana obviously.
Can someone help me with my exile.cs?
Many thanks.
Edit: Also, if I get this fixed, is there a simple way I can tell the bot to use the flask on rare mobs as well as uniques?
The only way I've managed to get it to use it is if I fool the bot into thinking it's a mana flask, but then it will only use it when im out of mana obviously.
Can someone help me with my exile.cs?
Code:
private IEnumerable<InventoryItem> DivinationDistillate
{
get
{
IEnumerable<InventoryItem> inv = LokiPoe.PlayerInventory.Flasks.Items;
return from item in inv
let flask = item.Flask
where flask != null && item.FullName == "Divination Distillate" && flask.CanUse
select item;
}
}
private bool ShouldUseDivinationDistillate()
{
var target = BestTarget;
// Make sure we have a target!
if (target == null)
return false;
// Never use on a non-unique.
if (target.Rarity != Rarity.Unique)
return true;
// If it has more than 8% health, don't use the flask.
if (target.HealthPercent > 8)
return false;
// If we get here, use the flask.
return true;
}
private Composite CreateFlaskLogic()
{
return new PrioritySelector(
// This logic should use a Divination Distillate when needed.
/*new Decorator(ret => _flaskCd.IsFinished && !Me.HasAura("unique_flask_divination_distillate") && DivinationDistillate.Count() != 0 && ShouldUseDivinationDistillate(),
new Action(ret =>
{
DivinationDistillate.First().Use();
_flaskCd.Reset();
})),*/
Many thanks.
Edit: Also, if I get this fixed, is there a simple way I can tell the bot to use the flask on rare mobs as well as uniques?
Last edited: