Advertisement
Guest User

Trinket PvP WA LUA Error

a guest
Feb 14th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.06 KB | None | 0 0
  1. 1750x [string "return function()..."]:7: attempt to perform arithmetic on field '?' (a nil value)
  2. [string "return function()..."]:7: in function <[string "return function()..."]:1>
  3. WeakAuras\RegionTypes\icon.lua:226: in function `UpdateCustomText'
  4. WeakAuras\WeakAuras-2.0.9.9.lua:5119: in function <WeakAuras\WeakAuras.lua:5115>
  5.  
  6. Locals:
  7. customTextFunc = <function> defined return function()
  8.    if type(pvptrinketcds) ~= "table" then
  9.        pvptrinketcds = {}
  10.    end
  11.    targetGUID = UnitGUID("target")
  12.    if targetGUID then
  13.        local cooldown = 120 - (time() - pvptrinketcds[targetGUID])
  14.        if cooldown <= 0 then
  15.            pvptrinketcds[targetGUID] = nil
  16.        end
  17.        return cooldown        
  18.    end    
  19. end
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. :1
  42. region = <unnamed> {
  43. 0 = <userdata>
  44. values = <table> {
  45. }
  46. frameId = "pvp_-_trinket_cd"
  47. Color = <function> defined @WeakAuras\RegionTypes\icon.lua:186
  48. duration = 0
  49. Expand = <function> defined @WeakAuras\WeakAuras.lua:3839
  50. expirationTime = 1.#INF
  51. SetDurationInfo = <function> defined @WeakAuras\RegionTypes\icon.lua:431
  52. stacks = <unnamed> {
  53. }
  54. SetIcon = <function> defined @WeakAuras\RegionTypes\icon.lua:252
  55. GetColor = <function> defined @WeakAuras\RegionTypes\icon.lua:197
  56. button = <unnamed> {
  57. }
  58. icon = <unnamed> {
  59. }
  60. color_g = 1
  61. color_b = 1
  62. Collapse = <function> defined @WeakAuras\WeakAuras.lua:3827
  63. color_r = 1
  64. PreShow = <function> defined @WeakAuras\RegionTypes\icon.lua:434
  65. MSQGroup = <table> {
  66. }
  67. SetName = <function> defined @WeakAuras\RegionTypes\icon.lua:268
  68. Scale = <function> defined @WeakAuras\RegionTypes\icon.lua:370
  69. color_a = 0.78000000119209
  70. SetStacks = <function> defined @WeakAuras\RegionTypes\icon.lua:243
  71. cooldown = WeakAurasCooldownpvp_-_trinket_cd {
  72. }
  73. UpdateCustomText = <function> defined @WeakAuras\RegionTypes\icon.lua:225
  74. }
  75. values = <table> {
  76. stacks = 1
  77. icon = "|TIcons\inv_jewelry_trinketpvp_02:12:12:0:0:64:64:4:60:4:60|t"
  78. name = "PvP - Trinket CD"
  79. }
  80. UpdateText = <function> defined @WeakAuras\RegionTypes\icon.lua:205
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement