Jump to content

MrFunckencio

Miembro
  • Contador contenido

    9
  • Ingreso

  • Última visita

Mensajes publicados por MrFunckencio

  1. Prueba esto

    Prueba esto
    
    quest anillo_vetas begin
        state start begin
            
            when login with pc.get_map_index() == 105 begin
                if get_time() > pc.getqf("duracion_en_mapa") then
                    warp_to_village()
                else
                    tiempo = pc.getqf("duracion_en_mapa")-get_time()
                    say("Te queda "..tiempo.." segundo(s).")
                    timer("salir",pc.getqf("duracion_en_mapa")-get_time())
                end
            end
            
            when 30201.use begin
                say_title("Anillo vetas:")
                say("Este anillo te lleva al mapa")
                say("de minas por 10 minutos")
                say("Seras teleportado al Mapa.")
                say_reward("¿El Anillo desaparecera, quieres continuar?")
                local continua = select("Si", "No")
                if continua == 1 then
                    say("Vas al Mapa.")
                    say("Por un tiempo limite")
                    say("")
                    say_reward("Tienes 10 Minutos .")
                    --Te teletransporta a un mapa
                    pc.warp(23500, 17600)
                    --Borra el Item
                    pc.remove_item(30201, 1)
                    --600 segundos son 10 minutos
                    pc.setqf("duracion_en_mapa",get_time()+600)
                end
            end
            
            when salir.timer begin
                warp_to_village()
            end
        end
    end
    
    
    
×
×
  • Crear nuevo...