Log in to ZYGOR
Log in with social media
OR
Log in with Zygor account

Announcement

Collapse
No announcement yet.

Lua error

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Lua error

    When I log on, after Zygor loads (to 100%) i get this: function me:ParseLeaderBoard(leaderboard,type)
    local formatter,item,num,numneeded
    if type=="monster" then
    formatter = QUEST_MONSTERS_KILLED:gsub("1%$",""):gsub("2%$","" ):gsub("3%$",""):gsub("%%s","(.-)"):gsub("%%d","(%%d+)")
    elseif type=="item" then
    formatter = QUEST_ITEMS_NEEDED:gsub("1%$",""):gsub("2%$",""):g sub("3%$",""):gsub("%%s","(.-)"):gsub("%%d","(%%d+)")
    elseif type=="faction" then
    formatter = QUEST_FACTION_NEEDED:gsub("1%$",""):gsub("2%$","") :gsub("3%$",""):gsub("%%s","(.-)"):gsub("%%d","(%%d+)")
    else
    formatter = QUEST_OBJECTS_FOUND:gsub("1%$",""):gsub("2%$",""): gsub("3%$",""):gsub("%%s","(.-)"):gsub("%%d","(%%d+)")
    end

    item,num,numneeded = leaderboard:match("^"..formatter) --, "(.*)%s*:%s*([%d]+)%s*/%s*([%d]+)")
    if type=="monster" and not item then
    formatter = QUEST_ITEMS_NEEDED:gsub("1%$",""):gsub("2%$",""):g sub("3%$",""):gsub("%%s","(.-)"):gsub("%%d","(%%d+)")
    item,num,numneeded = leaderboard:match("^"..formatter) --, "(.*)%s*:%s*([%d]+)%s*/%s*([%d]+)")
    -- some quests have objective type 'monster' yet are displayed using the ITEMS formatting. Go figure.
    end

    if (item) then
    if type=="faction" then
    return item,num,numneeded
    else
    return item, tonumber(num), tonumber(numneeded)
    end
    else
    return leaderboard, 0, 1
    end
    end




    I tried using the repair, I uninstalled all my other addons, I reinstalled Zygor, but still I can't get that error off. I can't even play since when I click the x another error appears... Please help me I really like your guide,when I can use it.

    #2
    Okay your gonna think i'm lame, but actually after rebooting my pc everything works fine O.o
    So if anyone had this problem, uninstall your other addons, repair Zygor and reboot (^.^)

    Comment


      #3
      Glad it got worked out for you. Going to close this thread to mark it as resolved. If you have any more issues please don't hesitate to post.
      My Flight Path Follies guide

      A pessimist knows all women are bad... an optimist hopes they are.

      I reject your reality and substitute my own.

      All foreign languages are done with Google Translate.

      Comment

      Working...
      X