Ae galera,
o Idle de meu otserv nao funciona... o char nao desloga com battle,
E sem a battle quando da exit, demora +/- uns 30s pra deslogar...
Ja olhei o creaturescripts taah tudo ok
Então o problema é no creaturescripts, la vc troca o original 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
++REP (Ajudei)?
- REP (Não Ajudei)?
Tutoriais de ElfBot: http://www.xtibia.co...__fromsearch__1
Fórum Oficial: http://www.mreonline.com.br
é no config.lua amigo... e as linhas são essas.....
loginProtectionPeriod =
fieldOwnershipDuration =
pushCreatureDelay =
Ficaria assim ...
pushCreatureDelay = 1 * 1000
loginProtectionPeriod = 10 * 1000
fieldOwnershipDuration = 5 * 1000
- removed '-'
www.facebook.com/pokemonsxr
pokemonsxr.ddns.net