brycem1989
New Member
- Joined
- Jun 11, 2015
- Messages
- 90
nah the buff isnt active it just doesnt trigger 90% of the time I can figure out what is wrong with. I stopped playing my spark anyway. I got bismuth working I'm happy lol.
public static bool TargetLowHealth(Rarity rarity, int distance, int pct)
{
return LokiPoe.ObjectManager.GetObjectsByType<Monster>()
.Any(m =>
!m.IsDead &&
m.Rarity >= rarity &&
m.HealthPercent <= pct &&
LokiPoe.Me.Position.Distance(m.Position) < distance);
}
Hello toNyx,
is there an API return for target health percentage?
edit1,
no there is not.
edit2,
This should work (FH.cs), testing
Code:public static bool TargetLowHealth(Rarity rarity, int distance, int pct) { return LokiPoe.ObjectManager.GetObjectsByType<Monster>() .Any(m => !m.IsDead && m.Rarity >= rarity && m.HealthPercent <= pct && LokiPoe.Me.Position.Distance(m.Position) < distance); }
edit3,
aint working, not sure why.
and btw is it possible to combine conditions? i.e.:
View attachment 216855
edit4,
it is working and yes you can combine comditions . . .
I just realized that if my health potion also has staunching for example, and you set up a rule for health flask as well as staunching (i.e. health < 80% for health flask and isbleeding for staunching) that it only uses the health flask when you're bleeding. It ignores the <80% health condition. Is there any way around this? I guess just set up an AND condition in one of the flask rules?
the aura is : unique_flask_witchfire_brew
would like to add witchfire brew, and added the stuff I saw on previous page about it but couldn't find the aura and seems to spam
can't seem to find auras with object explorer, I could have sworn it was different not to long ago but would appreciate some help if possible![]()
Where are the possible conditions listed? I dont know ánything about coding but I do have common sense that should allow me to use the ><= and percentage numbers to suit my needs.
But where do I find them?
Gonna add the bracket, thanks for noticing.
it doesnt trigger if the buff is still active. just so you know.
hello guys i suck at this kinda stuff i read and read so at last i tought ill just put a msg haha
i would like to use 2 hp pots 1 granite 1 silver and mana pot basicly
any1 who can put the codes for that hp pot on like 75% and granite and stuff just as fast as charges are up
and also for Remove bleed so it dont run and RIP xD
me.HealthPercent < 75
FH.NumberOfMobsNear(me, 60) > 0
FH.IsBleeding
HP pots :
Granite :
Remove bleed :
Bot with flask hekper foesn't use the mana flask if in my flask setup has Divination Distillate. What's a problem?
So if I want to use Kiara's Determination, which cures stun, there isn't a FH.IsStunned I think right?
Is all i have to do is add 'public static bool IsStunned => LokiPoe.Me.HasAura("stunned");' to FH.cs in the classes folder?