Jump to content

Recommended Posts

Version of Files XXX

Hi all. I have a problem, not work Teleport Dungeon. Press F5 end... nothing...
In sysser i have dis error
 

Quote

SYSERR: May 23 20:23:11 :: RunState: LUA_ERROR: locale/romania/quest/questlib.lua:80: attempt to index a nil value
SYSERR: May 23 20:23:11 :: WriteRunningStateToSyserr: LUA_ERROR: quest dungeon_manager.start click


This is dungeon_manager quest
 

Quote

quest dungeon_manager begin
    state start begin
        when login or enter begin
            dungeonLib.update()
        end

        when button begin
            cmdchat("GetDungeonInfo INPUT#1")
            local cmd = split(input(cmdchat("GetDungeonInfo CMD#")), "#")
            cmdchat("GetDungeonInfo INPUT#0")

            if cmd[1] == "WARP" then
                pc.warp(tonumber(cmd[2]) * 100, tonumber(cmd[3]) * 100)
            elseif cmd[1] == "RANKING" then
                dungeonLib.update_ranking(tonumber(cmd[2]), tonumber(cmd[3]))
            end
        end
    end
end

 

end this is questlib.lua
 

Quote

mysql_query = function(query)
    if not pre then
        local rt = io.open('CONFIG','r'):read('*all')
        pre,_= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4')
    end
    math.randomseed(os.time())
    local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{}
    -- os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi) -- fur MySQL51
    os.execute('mysql '..pre..' -e'..string.format('%q',query)..' > '..fi) -- fur MySQL55
    for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi);  -- This is line 80
    for i = 2, table.getn(t) do table.foreach(t,function(a,b)
        out[i-1]               = out[i-1] or {}
        out[i-1][a]            = tonumber(b) or b or 'NULL'
        out[t[1][a]]           = out[t[1][a]] or {}
        out[t[1][a]][i-1]      = tonumber(b) or b or 'NULL'
    end) end
    return out
end

 

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.