OTServ
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Dirección Ip
[GlobalEvent]Save Automatico 3
Conectarse

Recuperar mi contraseña

Buscar
 
 

Resultados por:
 

 


Rechercher Búsqueda avanzada

Mejores posteadores
XxStroksxX (463)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 
~*~[:Đαяќ:]~[:тιβια:]~*~ (366)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 
spoor (83)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 
Dj Pacos (73)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 
God Skit (68)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 
GoD MexicanSoul (40)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 
fuzzy (35)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 
Eddie (31)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 
GOD Chimito (30)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 
conalep1996 (23)
[GlobalEvent]Save Automatico Vote1111[GlobalEvent]Save Automatico Vote2111[GlobalEvent]Save Automatico Vote3111 

Últimos temas
» [???] [Super Naruto OT]
[GlobalEvent]Save Automatico Icon_m10Lun Jun 08, 2015 12:08 pm por keishmer91

» [ACTION] God/GM da item a un player
[GlobalEvent]Save Automatico Icon_m10Mar Dic 02, 2014 12:53 pm por hecmanos

» [8.60] Nuevo War Thais By TheRobertxon
[GlobalEvent]Save Automatico Icon_m10Vie Jun 20, 2014 10:56 am por luismc

» [7.92]Naruto Final Story!
[GlobalEvent]Save Automatico Icon_m10Dom Mayo 26, 2013 2:40 am por ricardotuck

» [9.1] Fun Server
[GlobalEvent]Save Automatico Icon_m10Mar Mayo 14, 2013 5:32 pm por skifer

» [9.1] The Forgotten Server v0.2.11pl2 (Mystic Spirit)
[GlobalEvent]Save Automatico Icon_m10Mar Mayo 14, 2013 5:29 pm por skifer

» New Map 8.60 (Darksystem) By: Turock & Gilio LIsto Arreglado El
[GlobalEvent]Save Automatico Icon_m10Mar Mayo 07, 2013 5:27 pm por tonyso

» Ocean Clasic Global Map 8.6
[GlobalEvent]Save Automatico Icon_m10Miér Mayo 01, 2013 11:19 pm por maganiua

» ayuda a abrir puertos
[GlobalEvent]Save Automatico Icon_m10Lun Abr 29, 2013 5:58 pm por XxStroksxX

» [8.60] Speedy War
[GlobalEvent]Save Automatico Icon_m10Dom Abr 28, 2013 5:51 pm por Sunnade'Audio

Upload Images
ImagesHack
Scanner
VirusTotal

[GlobalEvent]Save Automatico

Ir abajo

[GlobalEvent]Save Automatico Empty [GlobalEvent]Save Automatico

Mensaje por ~*~[:Đαяќ:]~[:тιβια:]~*~ Miér Feb 16, 2011 1:48 pm

vas a global event/scripts y pones esto


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 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, lastExecution, thinkInterval)
   if(table.maxn(config.broadcast) == 0) then
      doSaveServer(config.shallow)
   else
      executeSave(config.delay)
   end

   return true
end

despues vas a globalevent.xml y pones esto

Código:
<globalevent name="save" interval="900" event="script" value="save.lua"/>

si te sirvio deja rep y di gracias (:
~*~[:Đαяќ:]~[:тιβια:]~*~
~*~[:Đαяќ:]~[:тιβια:]~*~

+ Moderador +
+ Moderador +

*~Elder Wolf~*
Masculino Mexico Virgo Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 366
Localización Localización : :O ala versh XD
Fecha de inscripción Fecha de inscripción : 29/01/2011

http://www.chaosserv.no-ip.info

Volver arriba Ir abajo

Volver arriba


 
Permisos de este foro:
No puedes responder a temas en este foro.