• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] FlaskHelper

    Discussion in 'Archives' started by toNyx, May 26, 2014.

    1. brycem1989

      brycem1989 New Member

      Joined:
      Jun 11, 2015
      Messages:
      90
      Likes Received:
      2
      Trophy Points:
      0
      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.
       
    2. IeU

      IeU Member

      Joined:
      Jul 20, 2010
      Messages:
      830
      Likes Received:
      11
      Trophy Points:
      18
      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 . . .
       

      Attached Files:

      Last edited: Dec 10, 2016
    3. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      There's plenty of api function for targets, sadly oldroutine don't expose the currenct target:)
       
    4. IeU

      IeU Member

      Joined:
      Jul 20, 2010
      Messages:
      830
      Likes Received:
      11
      Trophy Points:
      18
      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: Dec 11, 2016
    5. germanicus

      germanicus Member

      Joined:
      Mar 25, 2015
      Messages:
      56
      Likes Received:
      0
      Trophy Points:
      6
      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?
       
    6. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      it should, if you have a doubt enable conditions debug and reproduce it, then join a log
       
    7. Pochizzle

      Pochizzle Member

      Joined:
      Mar 5, 2012
      Messages:
      204
      Likes Received:
      0
      Trophy Points:
      16
      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 :)


      You the man tony!
       
      Last edited: Dec 16, 2016
    8. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      the aura is : unique_flask_witchfire_brew
       
    9. Tumzie

      Tumzie Member

      Joined:
      Feb 16, 2013
      Messages:
      341
      Likes Received:
      3
      Trophy Points:
      18
      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?
       
    10. Unknown Buddy

      Unknown Buddy Member

      Joined:
      May 20, 2015
      Messages:
      603
      Likes Received:
      17
      Trophy Points:
      18
    11. Darox

      Darox Member

      Joined:
      Nov 7, 2014
      Messages:
      353
      Likes Received:
      2
      Trophy Points:
      18
      I think its missing on stibnite as well. Just noticed it now... that should help my bot haha.
       
    12. Fonidiel

      Fonidiel New Member

      Joined:
      Jun 28, 2015
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      1
      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
       
    13. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      HP pots :

      Granite :

      Remove bleed :

       
    14. Fonidiel

      Fonidiel New Member

      Joined:
      Jun 28, 2015
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      1

      thank you sir! gonna try it out

      the hp one dont work i wonder why
       
      Last edited: Dec 21, 2016
    15. botov

      botov New Member

      Joined:
      Nov 13, 2016
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      1
      Bot with flask hekper foesn't use the mana flask if in my flask setup has Divination Distillate. What's a problem?
       
    16. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Soly me no undstand
       
    17. germanicus

      germanicus Member

      Joined:
      Mar 25, 2015
      Messages:
      56
      Likes Received:
      0
      Trophy Points:
      6
      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?
       
    18. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      test it and let me know if it works.
       
    19. germanicus

      germanicus Member

      Joined:
      Mar 25, 2015
      Messages:
      56
      Likes Received:
      0
      Trophy Points:
      6
      Well I get no errors and the condition validates. However I have no easy way of getting stunned unfortunately :(
       
    20. EXILEBUDDY1

      EXILEBUDDY1 New Member

      Joined:
      Dec 22, 2016
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      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.
       

    Share This Page