Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ()
- local name,_,icon,_,_,_,_,_,_,_,_,_,_,_,value=UnitBuff("player", "Garde")
- if(value > 999999) then value = string.format("%.2f", value/1000000) .. "m"
- return tostring (value) end
- if(value > 999) and (value < 999999) then value = math.floor(value/1000+0.5) .. "k"
- return tostring (value) end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement