Ir para conteúdo

gabriellinhares

Campones
  • Total de itens

    16
  • Registro em

  • Última visita

Sobre gabriellinhares

Informações

  • Forma que conheci o xTibia
    Sites de Busca
  • Sou
    Programador

gabriellinhares's Achievements

  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
  2. kickIdlePlayerAfterMinutes = 15 ja tava 15 0.0
  3. 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...
  4. eh aprender a programar ou pagar alguem.. eu tenho isso mais eh por talkaction =/ cheguei perto de conseguir a alguns meses..agora to voltando e vo tentar novamente =)
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...