daily pastebin goal
45%
SHARE
TWEET

Garde fonction

a guest Dec 4th, 2015 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function ()
  3.    
  4.     local name,_,icon,_,_,_,_,_,_,_,_,_,_,_,value=UnitBuff("player", "Garde")
  5.     if(value > 999999) then value = string.format("%.2f", value/1000000) .. "m"
  6.         return tostring (value) end
  7.     if(value > 999) and (value < 999999)  then value = math.floor(value/1000+0.5) .. "k"
  8.         return tostring (value) end
  9.     if (value<998) then  value = value
  10.     return value end
  11.    
  12. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top