Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''evitarban''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

Encontrado 1 registro

  1. Bom, o motivo do banimento é por deixar players ficarem de exit no treiner, e assim o numero de players só crescem, isso gera banimento, vou ensinar como retirar esse exit. 1º = vá na pasta do seu ot, em data\creaturescripts\scripts e crie um bloco de notas, renomeie-o para idle.lua e cole isso abaixo dentro: 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 2º = vá em data\creaturescripts\scripts abra o arquivo login.lua e adicione esta linha abaixo: registerCreatureEvent(cid, "Idle") 3º = em data\creaturescripts abra o creaturescripts.xml e adicione: <event type="think" name="Idle" event="script" value="idle.lua"/> 4º = na pasta do seu ot, em config.lua, confira esta linha: idleWarningTime = 14 * 60 * 1000 idleKickTime = 15 * 60 * 1000
×
×
  • Criar Novo...