Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Not work Dungeon Info



Version of Files XXX

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


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


quest dungeon_manager begin
    state start begin
        when login or enter begin

        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 this is questlib.lua


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')
    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


Link to post

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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.