Mt2 Services un mundo de soluciones a tu alcanze.

Topic created · 3 Mensajes · 997 Visitas
  • Bueno Chicos abro este tema para mostrarles una pequeña organizacion de servicios a servidores privados de Metin2.

    Servicios:

    Servicios de Mt2Services

    • Servicios de Hosting ( Proximamente)

    • Servicios de Instalacion dedicados

    • Servicios de Quest

    • Servicios de Clientes

    • Servicios de Serverfiles

    • Servicios de Seguridad

    • Servicios de Modelacion 3D

    • Servicios de Implementacion

    • Servicios de Encriptacion

    • Servicios de Creacion de Mapas

    • Servicios de Creacion de Scrips

    • Servicios de Reparacion de Bugs

    • Mantenimiento de Dedicados

    Aqui os dejo un regalo por la inaguracion de Mt2Services.

    Quest: Bakup Automatico Cada 3 dias.

    quest backup begin
    state start begin
    when login with pc.is_gm() and game.set_event_flag("backups") != 1 begin
    game.set_event_flag("backups", 1)
    end
    when login with pc.is_gm() and game.set_event_flag("backups") == 1 begin
    server_timer("backup_seguridad", 60*60*24*3)
    end
    when backup_seguridad.server_timer begin
    game.set_event_flag("backups", 0)
    backup_seguridad()
    end
    end
    end

    Aqui la funcion para que funcione:

    function backup_seguridad()
    -- backup de seguridad--
    local copia = os.date('%d-%m-%Y_%H:%M:%S')
    -- Modificar rutas si es necesario--
    os.execute('cd /')
    os.execute('tar czvf /var/db/mysql/ bd'..copia..'.tar.gz')
    os.execute('tar czvf /home/game/ files'..copia..'.tar.gz')
    end

    Nuestro Equipo:

    -Rykuu
    -Akroma
    -Strach
    -Keko
    Nuestra Pagina web: http://mt2services.es

  • al hacer ./qc me da este error

    ./qc backup.quest
    QUEST : backup
    STATE : start
    WHEN : login
    if pc . is_gm ( ) and game . set_event_flag ( "backups" ) = not 1 then end
    syntax error : [string "startpc . is_gm ( ) and game . set_event_flag ( "backups" ) = n..."]:1: `then' expected near `='
    backup.quest:3:Abort (core dumped)

  • @'Santo' said:

    al hacer ./qc me da este error

    ./qc backup.quest
    QUEST : backup
    STATE : start
    WHEN : login
    if pc . is_gm ( ) and game . set_event_flag ( "backups" ) = not 1 then end
    syntax error : [string "startpc . is_gm ( ) and game . set_event_flag ( "backups" ) = n..."]:1: `then' expected near `='
    backup.quest:3:Abort (core dumped)

    Porque mi amigo akroma hizo mal la quest xd, se equivoco en la estructura del != y puso =!

    quest backup begin
    state start begin
    when login with pc.is_gm() and game.set_event_flag("backups") != 1 begin
    game.set_event_flag("backups", 1)
    end
    when login with pc.is_gm() and game.set_event_flag("backups") == 1 begin
    server_timer("backup_seguridad", 60*60*24*3)
    end
    when backup_seguridad.server_timer begin
    game.set_event_flag("backups", 0)
    backup_seguridad()
    end
    end
    end
    

    Asi te ira bien ^^