AkioKoneko

Untitled

Nov 26th, 2020
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. 2x [string "--[==[ Error in 'Av_AutoSpellQueueWindow' ]..."]:17: bad argument #2 to 'format' (string expected, got nil)
  2. [string "--[==[ Error in 'Av_AutoSpellQueueWindow' ]==] return function(event)
  3. -- gather info
  4. local specID, specName = GetSpecializationInfo(GetSpecialization())
  5. local class, classFileName = UnitClass("player")
  6. local classColor = ("|c%s%s"):format(RAID_CLASS_COLORS[classFileName].colorStr, class)
  7. local nagMessage = "Av's SpellQueueWindow: Set to %s: %s (%i)"
  8.  
  9. -- handle events
  10. if event == "PLAYER_ENTERING_WORLD" or event == "ACTIVE_TALENT_GROUP_CHANGED" then
  11.  
  12. -- we always update SQW
  13. local specSQW = aura_env.config[classFileName][tostring(specID)]
  14. SetCVar("SpellQueueWindow", tonumber(specSQW))
  15.  
  16. -- but only tell the player about it, if we actually changed specs
  17. if (aura_env.LastSpecID ~= specID) then
  18. print(nagMessage:format(classColor, specName, specSQW))
  19. aura_env.LastSpecID = specID
  20. end
  21. elseif event == "PLAYER_LOGOUT" then
  22. -- reset SQW to default on logout
  23. SetCVar("SpellQueueWindow", 400)
  24. end
  25. end"]:17: in function <[string "--[==[ Error in 'Av_AutoSpellQueueWindow' ]..."]:1>
  26. [string "=[C]"]: in function `xpcall'
  27. [string "@WeakAuras\GenericTrigger.lua"]:598: in function <WeakAuras\GenericTrigger.lua:534>
  28. [string "@WeakAuras\GenericTrigger.lua"]:730: in function `ScanEventsInternal'
  29. [string "@WeakAuras\GenericTrigger.lua"]:691: in function `ScanEvents'
  30. [string "@WeakAuras\GenericTrigger.lua"]:837: in function <WeakAuras\GenericTrigger.lua:822>
Add Comment
Please, Sign In to add comment