Results 1 to 8 of 8

Thread: Healer: are hp/mana ranges inclusive or exclusive?

  1. #1
    Normal User Boget's Avatar
    Join Date
    Nov 2012
    Posts
    152
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    22
    Rep Power
    5

    Healer: are hp/mana ranges inclusive or exclusive?

    This is a question about the HealRanges in the Healer. Are they inclusive or exclusive? When you tell iBot "from 0 to 10%" does it mean "all values smaller than 10%" or "all values smaller than or equal to 10%"?

    For example, let's say I use this HealRange for the most powerful healing spell:

    Code:
    HealRange: 0 to 40%
    Then what should the start of the next HealRange be? Should it be e.g. 40 to 65% or 41 to 65? I want to avoid spamming both spells when I have exactly 40% hp.

  2. #2
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    I believe its including.

    You try test it by using 0 to 100% hp

  3. #3
    Normal User Boget's Avatar
    Join Date
    Nov 2012
    Posts
    152
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    22
    Rep Power
    5
    Quote Originally Posted by BUgWT View Post
    I believe its including.

    You try test it by using 0 to 100% hp
    Good idea! With `HealRange: 0 to 100%` iBot casts the healing spell at full hp, so the second number is inclusive indeed. Also, with only `HealRange: 100% to 100%` iBot casts the healing spell at full hp too, so the first number is inclusive as well.

    So, to answer my question, the second HealRange should start at 41, not 40 in order to avoid overlapping.

    Code:
    1. HealRange: 0 to 40 %
    2. HealRange: 41 to 65 %
    However, in this scenario, I wonder what happens when you have 40.50% hp though. Will it consider the first one (maybe), or the second one (that would be weird) or none of the two (maybe)?

  4. #4
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    When I put my healer, I make them overlap

    So I would do:

    0 to 40
    40 to 65

  5. #5
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by BUgWT View Post
    When I put my healer, I make them overlap

    So I would do:

    0 to 40
    40 to 65
    I do this as well, its the better way to do it, because what if you are on 40.1% to 40.9% hp? lol


    you're almost never going to be EXACTLY 40% 65% whatever, ect. and if you do over lap and it tries to cast both, who cares? it will still heal you...

  6. #6
    Normal User Boget's Avatar
    Join Date
    Nov 2012
    Posts
    152
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    22
    Rep Power
    5
    Quote Originally Posted by pink_panther View Post
    I do this as well, its the better way to do it, because what if you are on 40.1% to 40.9% hp? lol

    you're almost never going to be EXACTLY 40% 65% whatever, ect.
    Well that's what I am asking -- we don't know how iBot works internally. Does it round down the current HP percentage to an integer before comparing it to the numbers you specify in the HealRange or not? Cause in that case, 40.10% etc. will be handled just fine.

    Quote Originally Posted by pink_panther View Post
    and if you do over lap and it tries to cast both, who cares? it will still heal you...
    If the weakest of the two spells ends up getting cast, you may die in situations where you need to heal fast (when fighting demons, for example).

    IMHO it would make sense to have the first number in the HealRange be exclusive and only the last number be inclusive, e.g. `HealRange: 0 to 40%` should only heal if the hp is > 0% and <= 40%. Similarly, `HealRange: 40 to 60%` should only heal if the hp is > 40% and <= 60% (but currently, it seems to heal at >= 40% and <= 60%). That way we could indeed make the ranges "overlap" in the way BugWT and pink_panther described without having to worry about the bot trying to cast two spells at the same time (which is dangerous if it ends up casting the weakest spell of the two).

    It would be useful to get an answer from Jonatas here, as only he knows how iBot handles this internally.

  7. #7
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    When I add healing settings on the healer, I always always put low % (important healings) first.

    Eks:
    UHP
    Exura gran ico
    Ghp
    Mana Potion
    Exura ico


    Mage:
    Exura Vita
    Exura Gran
    Potion
    Exura

  8. #8
    Normal User Boget's Avatar
    Join Date
    Nov 2012
    Posts
    152
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    22
    Rep Power
    5
    Quote Originally Posted by BUgWT View Post
    When I add healing settings on the healer, I always always put low % (important healings) first.

    Eks:
    UHP
    Exura gran ico
    Ghp
    Mana Potion
    Exura ico


    Mage:
    Exura Vita
    Exura Gran
    Potion
    Exura
    Are you 100% sure the bot executes the healings in that order at all times?

    Because for example iBot will always loots the last item on the Looting list first (reverse order). (I don't think this is documented anywhere, but I always put rare loot at the top of the list and gold coin at the bottom of the looting list for this reason.)

    Still it would be nice to get an official answer. Jonatas?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •