Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.69 KB | None | 0 0
  1. Message: [string "local GMR_API..."]:3298: 'then' expected near ')'
  2. Time: Fri Sep 20 23:30:31 2019
  3. Count: 1
  4. Stack: [string "local GMR_API..."]:3298: 'then' expected near ')'
  5. [C]: ?
  6. [string "EWT = {}..."]:1664: in function `?'
  7. Interface\AddOns\GMR\GMR.lua:1: in function `?'
  8. Interface\AddOns\GMR\GMR.lua:1: in function <Interface\AddOns\GMR\GMR.lua:1>
  9. [C]: ?
  10. Interface\AddOns\GMR\GMR.lua:1: in function <Interface\AddOns\GMR\GMR.lua:1>
  11. [string "EWT = {}..."]:1264: in function <[string "EWT = {}..."]:1263>
  12.  
  13. Locals: (*temporary) = "local GMR_API
  14.  
  15. local p, t, f, pet = "player", "target", "focus", "pet"
  16. local C = function(...) GMR_CASTING = GetTime()+0.5 if not GMR_COMBAT_DELAY then GMR_COMBAT_DELAY = GetTime()+0.15 elseif GMR_COMBAT_DELAY <= GetTime() then GMR_COMBAT_DELAY = nil CastSpellByName(...) end end
  17.  
  18. function GetWoWAccount()
  19.     if Software("LuaBox") then
  20.         return lb.GetGameAccountName()
  21.     elseif Software("EWT") then
  22.         return ReadMemory(GetModuleAddress()+GetOffset("s_accountName"), "string")
  23.     end
  24. end
  25.  
  26. function GetAPI()
  27.     for Name, v in pairs(_G) do
  28.         if type(v) == "function" then
  29.             WriteFile("Classic_API.lua", Name.."\n", true)
  30.         end
  31.     end
  32. end
  33.  
  34. function GetGMRAddOn()
  35.     local path = GetWoWDirectory().."/Interface/AddOns"
  36.     local addonsTable = GetSubdirectories(path.."/*")
  37.     for i = 1,#addonsTable do
  38.         local addon = addonsTable[i]
  39.         local subfilesTable = GetFiles(path.."/"..addon.."/*")
  40.         for j = 1,#subfilesTable do
  41.             local subfile = subfilesTable[j]
  42.             local a, b = string.find(subfile, ".lua")
  43.             if a ~= nil and b ~(*temporary) = nil
  44. (*temporary) = nil
  45. (*temporary) = nil
  46. (*temporary) = nil
  47. (*temporary) = nil
  48. (*temporary) = nil
  49. (*temporary) = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement