Advertisement
Ketho

WoW Function Aliases 01

Oct 15th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.22 KB | None | 0 0
  1. -- http://forums.wowace.com/showthread.php?t=19736
  2. local t = {}
  3.  
  4. for _, v1 in ipairs( {math, string, table} ) do
  5.     for k, v2 in pairs(v1)do
  6.         t[k] = v2
  7.     end
  8. end
  9.  
  10. for k, v in pairs(_G) do
  11.     if type(v) == "function" and t[v] then
  12.         print(k, t[v])
  13.     end
  14. end
  15. --
  16. abs == math.abs
  17. ceil == math.ceil
  18. deg == math.deg
  19. exp == math.exp
  20. floor == math.floor
  21. foreach == table.foreach
  22. foreachi == table.foreachi
  23. format == string.format
  24. frexp == math.frexp
  25. getn == table.getn
  26. gmatch == string.gmatch
  27. gsub == string.gsub
  28. ldexp == math.ldexp
  29. log == math.log
  30. log10 == math.log10
  31. max == math.max
  32. min == math.min
  33. mod == math.fmod
  34. rad == math.rad
  35. random == math.random
  36. sort == table.sort
  37. sqrt == math.sqrt
  38. strbyte == string.byte
  39. strchar == string.char
  40. strfind == string.find
  41. strjoin == string.join
  42. strlen == string.len
  43. strlower == string.lower
  44. strmatch == string.match
  45. strrep == string.rep
  46. strrev == string.reverse
  47. strsplit == string.split
  48. strsub == string.sub
  49. strtrim == string.trim
  50. strupper == string.upper
  51. tinsert == table.insert
  52. tremove == table.remove
  53. wipe == table.wipe
  54. --
  55. acos ~= math.acos
  56. asin ~= math.asin
  57. atan ~= math.atan
  58. atan2 ~= math.atan2
  59. cos ~= math.cos
  60. sin ~= math.sin
  61. tan ~= math.tan
  62. --
  63. PI == math.pi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement