Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns whether the item is in usable range of the unit.

inRange = IsItemInRange(item [, unit])

Arguments[]

item
number|string : Item ID, Link or Name - If using an item name, requires the item to be in your inventory. Item IDs and links don't have this requirement.
unit
string? : UnitId - Defaults to "target"

Returns[]

inRange
boolean - Whether the item is in range; Returns nil if there is no unit targeted or the item ID is invalid.

Example[]

Prints if you are within 4 yards range of the target by checking the Inv weapon shortblade 37 [Gin-Ji Knife Set] item range.[1]

/dump IsItemInRange(90175)

Patch changes[]

Bc icon Patch 2.0.1 (2006-12-05): Added.

References[]

Advertisement