LU

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

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

8
1.2k
lucascat1L
10 de junho de 2017 às 11:50

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++

Editado Junho 10 por lucascat1

DarkWoreD
10 de junho de 2017 às 12:37

Sem o Script não tem como dar suporte.

Editado Junho 10 por DarkWore

lucascat1L
10 de junho de 2017 às 12:55
1 hora atrás, DarkWore disse:

Sem o Script não tem como dar suporte.

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 trueend

 

alguém pode ajudar?

Editado Junho 10 por DarkWore

DarkWoreD
10 de junho de 2017 às 14:34
1 hora atrás, lucascat1 disse:

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

 

alguém pode ajudar?

Qual versão do TFS que você está usando?

lucascat1L
10 de junho de 2017 às 14:39
Agora, DarkWore disse:

Qual versão do TFS que você está usando?

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

PoccnnP
10 de junho de 2017 às 15:04

Caro membro,

Seu tópico foi movido de CreatureScripts e Movements para Scripts.

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