Jump to content

Erro questlua_global.cpp


kaiquegames069
 Share

Recommended Posts

19 minutes ago, juniorsilva said:

Definição de argumento não está correto, o que tem na linha 52?

Essa é a linha!

lua_pushnumber(L, number((int)lua_tonumber(L, 1), (int)lua_tonumber(L, 2)));

 

Marty disse que o erro está nessas funções do questlib:

 

function table_get_random_item(self)
    return self[number(1, table.getn(self))]
end

function drop_gamble_with_flag(drop_flag)
        local dp, range = pc.get_killee_drop_pct()
        dp = 40000 * dp / game.get_event_flag(drop_flag)
        if dp < 0 or range < 0 then
            return false
        end
        return dp >= number(1, range)
end

mysql_query = function(query)

Link to comment
Share on other sites

Fiz isso assim!

function drop_gamble_with_flag(drop_flag)
        local dp, range = pc.get_killee_drop_pct()
        dp = 40000 * dp / game.get_event_flag(drop_flag)
        if dp <= 0 or range <= 0 then
            return false
        end
        return dp >= number(1, range)
end

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...