Você tem que mudar a tempo no config.lua
Não lembro agora mas é algo como:
IdleTime... =
Deixe 15
Você tem que mudar a tempo no config.lua
Não lembro agora mas é algo como:
IdleTime... =
Deixe 15
info
Grupo: Campones
Registrado: 10/04/10
Posts: 16
Reputação: -1

kickIdlePlayerAfterMinutes = 15
ja tava 15 0.0
Entao diminua para 10. ou entao coloque a conta 15 * 60 ou os segundos direto = 900
Att. BruMatt
Editado Abril 17 por BruMatt
Talvez o erro esteja no script idlekick.lua, um globalevent se n me engano.
Veja se está correto o tempo no script.
info
Grupo: Campones
Registrado: 10/04/10
Posts: 16
Reputação: -1

olha só idle.lua no creaturescripts
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 = "You have been idle 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 you are still idle"
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".")
end
return true
end
não é ali no /60000 ?? se for ali em vez de 60000s poem 900s que equivale a 15min!!
Att. BruMatt
info
Grupo: Conde
Registrado: 16/06/08
Posts: 998
Reputação: +185
Gênero: Masculino

vou testar aqui e ja mando se deu certo ou n
olha só idle.lua no creaturescripts
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 = "You have been idle 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 you are still idle" end doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".") end return true end
Não vi nenhum erro no script.
No seu config.lua está assim??
idleWarningTime = 14 * 60 * 1000 idleKickTime = 15 * 60 * 1000
Editado Abril 17 por Sukx
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

info
Grupo: Campones
Registrado: 10/04/10
Posts: 16
Reputação: -1
Tipo no meu serv os cara dao exit nos trainers e fika o char logado por umas 4 horas ou mais
queria q o char ficasse só uns 15 minutos...