Ir para conteúdo
  • Cadastre-se

Posts Recomendados

queria tirar o exit treiner do meu ot so que não estou conseguindo ja editei o config.lua ainda continua

 

 

olha como esta

 

 

idleWarningTime = 14 * 60 * 1000
idleKickTime = 15 * 60 * 1000
expireReportsAfterReads = 1
playerQueryDeepness = 2
maxItemsPerPZTile = 0
maxItemsPerHouseTile = 0

 

 

Link para o post
Compartilhar em outros sites

data>creaturescripts>scripts>idle.lua

 

troque tudo o que está ai por isso:

 

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
 

Skype @kaiquegabriel__ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Atenciosamente,

kaiquegabriel.

Não dou suporte via pm.

Em caso de dúvidas, crie um tópico e espere o suporte.

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo