LibRangeCheck-2.0

A library to determine estimated range.

API documentation

You must login to post a comment. Don't have an account? Register to get one!

  • 5 comments
  • Avatar of mitch0 mitch0 Apr 27, 2009 at 07:58 UTC - 0 likes

    @zaiph: Those are comments only, the actual ranges are determined by the blizz API, but I changed them in the source, just in case :)

    @Sinktinkler: This behaviour is due to how the ranges are determined and how interact based ranges work... The minimum range is the first range that range-check fails for, and for some reason the interact based ranges are determined differently than the "normal" spell/ability ranges. I'll consider ditching the interact-based checks for the friend and harm targets, and only keep them for the "misc" targets (those that you can neither assist, nor attack, like some folks in the neutral cities).

    If you'd like to try out how it would work, change these two lines in LibRangeCheck-2.0.lua (in the :init method):

        self.friendRC = createCheckerList(FriendSpells[playerClass], {}, FriendItems)
        self.harmRC = createCheckerList(HarmSpells[playerClass], {}, HarmItems)
    

    (the interactList param is replaced with an empty list)

    cheers, mitch

  • Avatar of Sinktinkler Sinktinkler Apr 24, 2009 at 03:34 UTC - 0 likes

    Hi! There are some fights where I, as a rogue, am able to use all my melee abilities, yet LibRangeCheck reports a range of 9 - 10 yards (I think) instead of the expected 0 - 5. Mobs where this is an issue include Razorscale chained in phase 1 and Kologarn's arms. While it seems plausible that my target, which in both cases is hovering off the ground, is indeed 9 - 10 yards away, is there (or should there be) a way to know through the LibRangeCheck API that I'm in melee range and able to use my melee abilities?

    Actually, is this even intended behavior? Glancing through the code, it seems like it's using my rogue's Eviscerate to check for melee distance, and Eviscerate is certainly in range for these fights.

  • Avatar of zainph zainph Apr 23, 2009 at 18:47 UTC - 0 likes

    Warrior's spell range.

    355, ["Taunt"], 30 (not 20)

    5246, ["Intimidating Shout"], 8 (not 10)

    Warriors have no 10yard ranged harm spells except ones of area.

  • Avatar of mitch0 mitch0 Feb 10, 2009 at 08:26 UTC - 0 likes

    Fixed in v3.2.

    cheers,
    mitch

  • Avatar of zainph zainph Feb 04, 2009 at 09:31 UTC - 0 likes

    Hi,

    First of all, thanks you for this addon. RangeDisplay is my favorate mod. But, there is a little problem for Druid. I couldn't do melee attacks in melee range (displayed 0-5 yard).

    So, I modified LibRangeCheck-2.0.lua.

    Line 62

     5211, -- [Bash], -- 5
    

    Then, I can do melee attacks in 0 ~ 5 yards RangeDisplay displays. And, 5~8 yards is displayed, that was not displayed before modification.

    Bash is an instant melee attack, druid can achieve it at level 14 from trainer.

    Maul is a range restricted spell, but at any range IsSpellInRange API returns 1.

  • 5 comments

Facts

Date created
Apr 03, 2008
Category
Last update
Sep 13, 2013
Development stage
Release
Language
  • enUS
License
Public Domain
Curse link
LibRangeCheck-2.0
Reverse relationships
6
Downloads
76,802
Recent files
  • R: v3.8.3 for 5.4.0 Sep 13, 2013
  • A: r140 for 5.4.0 Sep 13, 2013
  • R: v3.8.2 for 5.3.0 May 25, 2013
  • A: r138 for 5.3.0 May 25, 2013
  • R: v3.8.1 for 5.2.0 Apr 15, 2013

Authors

Relationships

Embedded library
CallbackHandler-1.0
LibStub