Idle Do Meu Otserv Nao Funciona! 0.o

hudson256
em Resolvidos

hudson256

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 23/07/11Posts: 16

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

www.LegendaryWorld.net

 

otserver.png

1579091

avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 06/11/11Posts: 1088Char no Tibia: Stroked

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

KarlKalvin

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 07/02/12Posts: 427

é 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