Advertisement
Translit

Untitled

Mar 24th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1. function()
  2.     if not aura_env.testtable then
  3.         return ""
  4.     end
  5.    
  6.     local i=1
  7.     local j=1
  8.     local cur = GetTime()
  9.     local total = ""
  10.     endBuff = endBuff or nil
  11.     while aura_env.testtable[i] do
  12.         local name = aura_env.testtable[i][1]
  13.         local time = aura_env.testtable[i][2]
  14.        
  15.         if endBuff  then
  16.             for j=j,#aura_env.testtable do
  17.                 if aura_env.testtable[j][1] == endBuff then
  18.                     aura_env.testtable[j][3] = GetTime()
  19.                     endBuff = nil
  20.                    
  21.                     break
  22.                 end
  23.             end
  24.         end
  25.         local sec = ""
  26.         if aura_env.testtable[i][3] then
  27.             sec = aura_env.testtable[i][3] - aura_env.testtable[i][2]
  28.         else
  29.             sec = cur - aura_env.testtable[i][2]
  30.         end
  31.         total = total..name..sec.."|n"
  32.        
  33.         i=i+1
  34.         j=j+1
  35.     end
  36.     return "for: "..j.." while: "..i.."|n"..total
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement