Ir para conteúdo

Poderia Ajudar Quem Puder?


Isbigo

Posts Recomendados

Olá pessoal do :XTibia_smile:

 

Gostaria muito da ajuda do pessoal para poder me ajudar com uns problemas.

 

Vamos la vou falar algumas coisas sobre eles.

 

1º erro:

Eu estou usando TFS 0.4_DEV, o save eo clean ficam loucos quando abro o OT fikam usando a todo segundo.

 

Segue abaixo o Script:

Clean:

function executeClean()
doCleanMap()
doBroadcastMessage("Game map cleaned, next clean in 2 hours.")
return true
end

function onThink(interval)
doBroadcastMessage("Game map cleaning within 30 seconds, please pick up your items!")
addEvent(executeClean, 30000)
return true
end

 

Save:

local config = {
broadcast = {120, 30},
shallow = "no",
delay = 120,
events = 30
}

config.shallow = getBooleanFromString(config.shallow)

local function executeSave(seconds)
if(isInArray(config.broadcast, seconds)) then
	local text = ""
	if(not config.shallow) then
		text = "Full s"
	else
		text = "S"
	end

	text = text .. "erver save within " .. seconds .. " seconds, please mind it may freeze!"
	doBroadcastMessage(text)
end

if(seconds > 0) then
	addEvent(executeSave, config.events * 1000, seconds - config.events)
else
	doSaveServer(config.shallow)
end
end

function onThink(interval)
if(table.maxn(config.broadcast) == 0) then
	doSaveServer(config.shallow)
else
	executeSave(config.delay)
end

return true
end

 

 

é então galera essas são as minhas duvidas quem puder me ajuda é REP+.

 

Valeu ajudem ai por favor.

Editado por Isbigo
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...