LU

[Encerrado] [Encerrado] Erro na creaturescripts/scripts/idle.lua

Por lucascat1, 10 de jun. de 2017 em Tópicos Sem Resposta

3
770
lucascat1L
10 de junho de 2017 às 18:23

Galera, alguém pode me ajudar? Estou rodando um Otserv aqui 8.60 e quando dá a hora do evento FireStorm começar o tp não abre e na distro aparece esse erro:
error - creatureScript Interface  data/creaturescripts/scripts/idle.lua:14 in function <data/creaturescripts/scripts/idle.lua:6>
 
Se alguém ajudar dou REP++


SEGUE O SCRIPT Idle.lua:


local config = {
    idleWarning = getConfigValue('idleWarningTime'),
    idleKick = getConfigValue('idleKickTime')
}
function onThink(cid, interval)
    if(getTileInfo(getCreaturePosition(cid)).noLogout or getCreatureNoMove(cid) or
        getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then
        return true
    end
    local idleTime = getPlayerIdleTime(cid) + interval
    doPlayerSetIdleTime(cid, idleTime)
    if(config.idleKick > 0 and idleTime > config.idleKick) then
        doRemoveCreature(cid)
    elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then
        local message = "There was no variation in your behaviour for " .. math.ceil(config.idleWarning / 60000) .. " minutes"
        if(config.idleKick > 0) then
            message = message .. ". You will be disconnected in "
            local diff = math.ceil((config.idleWarning - config.idleKick) / 60000)
            if(diff > 1) then
                message = message .. diff .. " minutes"
            else
                message = message .. "one minute"
            end
            message = message .. " if there is no change in your actions until then."
        end
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".")
    end
    
return true
end

TSF: The OTX Server Version: (2.6) - Codename: (SCARETALE)
Compiled with GNU C++ version 3.4.5 (mingw special) for arch 32 Bits at Nov 21 2016 17:47:43

5 meses depois...
StigalS
29 de novembro de 2017 às 15:21
A questão neste tópico de suporte foi encerrada por falta de resposta. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta
StigalS
29 de novembro de 2017 às 15:21
A questão neste tópico de suporte foi encerrada por falta de resposta. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta