Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- local color = "FFFFFFFF"
- local coloredName = function(name)
- local _, class = UnitClass(name)
- return string.format("|c%s%s", RAID_CLASS_COLORS[class].colorStr, name)
- end
- function rangecheck(uId)
- local range = 0
- if IsItemInRange(37727, uId) then range = 5--Ruby Acorn
- elseif IsItemInRange(63427, uId) then range = 8--Worgsaw
- elseif CheckInteractDistance(uId, 3) then range = 10
- elseif CheckInteractDistance(uId, 2) then range = 11
- elseif IsItemInRange(32321, uId) then range = 13--reports 12 but actual range tested is 13
- elseif IsItemInRange(6450, uId) then range = 18--Bandages.
- elseif IsItemInRange(21519, uId) then range = 22--Item says 20, returns true until 22.
- elseif CheckInteractDistance(uId, 1) then range = 30
- elseif UnitInRange(uId) then range = 43
- elseif IsItemInRange(116139, uId) then range = 50
- elseif IsItemInRange(32825, uId) then range = 60
- elseif IsItemInRange(35278, uId) then range = 80
- else range = 1000 end--Just so it has a numeric value, even if it's unknown to protect from nil errors
- return range
- end
- local inrange = 0
- local spell = GetSpellInfo(209973)
- local result = ""
- local bond_dmg = 12000000
- for i=1,GetNumGroupMembers() do
- local player = GetRaidRosterInfo(i)
- if UnitName("player") ~= player then
- if rangecheck(player) <=8 then
- inrange = inrange+1
- end
- end
- end
- if inrange == 0 then
- result = math.floor(bond_dmg/100)/10 .."k Bond dmg"
- elseif inrange >= 1 then
- result = math.floor((bond_dmg / inrange)/100)/10 .."k Bond dmg"
- aura_env.check = false
- end
- return result
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement