Facts
- Date created
- Apr 03, 2008
- Category
- Last update
- Aug 01, 2016
- Development stage
- Release
- Language
- enUS
- License
- Public Domain
- Curse link
- LibRangeCheck-2.0
- Reverse relationships
- 27
- Downloads
- 114,901
- Recent files
Authors
Relationships
- Embedded library
- CallbackHandler-1.0
- LibStub
- Reply
- #8
Milesbeyond Mar 16, 2015 at 15:36 UTC - 0 likes@mitch0: Go
Ahhh... I see now. I noticed the "Reinforced Net" with its 80 yard range in you source code already, which is a very specific item. I did not come up to me IsItemInRange() could be used without the actual item in the inventory. Nifty!
- Reply
- #7
mitch0 Mar 15, 2015 at 09:06 UTC - 0 likes@Myth384: Go
Hello,
LibRangeCheck is using item ranges (along with spell ranges) for range estimates. The 80yd range is checked with the item range of "Reinforced Net" (itemid: 35278). See the IsItemInRange() API call.
- Reply
- #6
Myth384 Mar 14, 2015 at 21:59 UTC - 0 likesHi Mitch, I was wondering how the 80 yard range is determined. I can not find any spell with this range. Your library is even able to determine this distance on a lvl 1 bank alt.
- Reply
- #5
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
- Reply
- #4
Sinktinkler Apr 24, 2009 at 03:34 UTC - 0 likesHi! 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.
- Reply
- #3
zainph Apr 23, 2009 at 18:47 UTC - 0 likesWarrior'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.
- Reply
- #2
mitch0 Feb 10, 2009 at 08:26 UTC - 0 likesFixed in v3.2.
cheers,
mitch
- Reply
- #1
zainph Feb 04, 2009 at 09:31 UTC - 0 likesHi,
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
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.