CLEAN//
Vá em (data/globalevents/globalevents.xml) e adicione o seguinte código:
<globalevent name="clean" interval="2500" event="script" value="clean.lua"/>
Depois vá em (data/globalevents/scripts) e crie um arquivo chamado "clean.lua" e adicione o seguinte código:
function executeClean()
doCleanMap()
doBroadcastMessage("CLEAN")
return true
end
function onThink(interval, lastExecution, thinkInterval)
doBroadcastMessage("CLEAN")
addEvent(executeClean, 50000)
return true
end
SAVE//
Vá em (data/globalevents/globalevents.xml) e adicione o seguinte código:
<globalevent name="save" interval="1600" event="script" value="save.lua"/>
Vá em (data/globalevents/scripts) e crie um arquivo chamado "save.lua" e adicione o seguinte código:
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 Vai Ser Salvo Em " .. seconds .. " Seg, Save Server!"
doBroadcastMessage(text)
end
if(seconds > 0) then
addEvent(executeSave, config.events * 1, seconds - config.events)
else
doSaveServer(config.shallow)
end
end
function onThink(interval, lastExecution, thinkInterval)
if(table.maxn(config.broadcast) == 0) then
doSaveServer(config.shallow)
else
executeSave(config.delay)
end
return true
end
Sobre os kicks verifique no Mapa Editor se esta com "No-Logout".....
Te ajudei, REP+




info
Grupo: Campones
Registrado: 12/05/10
Posts: 30
Reputação: 0
Char no Tibia: Akuma Igneel
Boa tarde, galerinha da Xtibia.
Venho aqui mais uma vez agradecer a ajuda de todos e também para fazer um pedido:
Meu ot não da serversave nem clean sozinho, não sei dizer por que...
Alguém poderia postar ae pra min de um jeito que funcione?
E também, os players não tomam kick... podem ficar 10horas online que não toma kick (mesmo sem fazer nada).
Server 8.60
TFS 0.1.7
Obrigado galerinha, e por favor quem puder ajudar.