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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Plugin] FlaskHelper

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.
 
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,

it is working and yes you can combine conditions . . .
 

Attachments

  • Capture.JPG
    Capture.JPG
    30 KB · Views: 119
Last edited:
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 . . .

There's plenty of api function for targets, sadly oldroutine don't expose the currenct target:)
 
Yea i meant within FH . . .

Thank you!

edit,

Yes, you are right, not sure if the condition
Code:
m.HealthPercent <= pct
is working . . .

edit,

actually it is.
 
Last edited:
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?
 
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?

it should, if you have a doubt enable conditions debug and reproduce it, then join a log
 
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 :)


the aura is : unique_flask_witchfire_brew

You the man tony!
 
Last edited:
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 :)

the aura is : unique_flask_witchfire_brew
 
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.

I think its missing on stibnite as well. Just noticed it now... that should help my bot haha.
 
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
 
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

HP pots :

me.HealthPercent < 75

Granite :

FH.NumberOfMobsNear(me, 60) > 0

Remove bleed :

FH.IsBleeding
 
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?
 
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?

test it and let me know if it works.
 
Well I get no errors and the condition validates. However I have no easy way of getting stunned unfortunately :(
 
FlaskHelper does not work

Good Morning,

I am having problems using HelpFlasks, I do the procedure taught in the topic but it does not work.

ExileBuddy does not use flasks.
 
Back
Top