Jump to content

Recommended Posts

Posted

Como estan chicos, esta quest la realice con el fin de traerla a Zone, me gusta el desarrollo de cualquier tipo de Quest. Esta especialmente va enfocada a que los usuarios si quieren ir a una mazmorra tendrán que tener ciertos items que consiguen durante el desarrollo del juego. Una vez reunidos estos items que pide la mazmorra, podrán ingresar. 

La quest cuenta con:

- Solicitud de items de ingreso

- Tiempo de Duración de la mazmorra

- Tiempo de Duración para volver hacer la Mazmorra

Nota: Quizá ya ha estado posteada, pero mi configuración la adapte a mi gusto.

quest Kojuro begin
    state start begin
        when 30123.chat."Mazmorra de Cristal" begin
            say_title_center("Mazmorra de Cristal")
            say("Para entrar a la Mazmorra Necesitas 7 Esferas de Dragon")

            local main_set = select("Mazmorra Dragon Rojo", "Cancelar")

            if main_set == 1 then
                if pc.get_level() >= 90 then
                    if pc.count_item(98881) >= 1 and
                       pc.count_item(98882) >= 1 and
                       pc.count_item(98883) >= 1 and
                       pc.count_item(98884) >= 1 and
                       pc.count_item(98885) >= 1 and
                       pc.count_item(98886) >= 1 and
                       pc.count_item(98887) >= 1 then
                        local current_time = get_global_time()

                        if pc.getqf("mazmorra_dragon_timer") == 0 or current_time > pc.getqf("mazmorra_dragon_timer") then
                            pc.setqf("mazmorra_dragon_timer", current_time + 1800)  -- 30 minutos
                            say("¡Has entregado los items necesarios! Te teletransportaré a la Mazmorra Dragon Rojo.")
                            pc.remove_item(98881, 1)
                            pc.remove_item(98882, 1)
                            pc.remove_item(98883, 1)
                            pc.remove_item(98884, 1)
                            pc.remove_item(98885, 1)
                            pc.remove_item(98886, 1)
                            pc.remove_item(98887, 1)
                            pc.warp(2099200, 2944000)
                            cmdchat("timerstart 1800 mazmorra_dragon " .. pc.get_player_id())
                        else
                            local remaining_time = pc.getqf("mazmorra_dragon_timer") - current_time
                            say("Ya has ingresado recientemente a la Mazmorra Dragon Rojo. Tiempo restante: " .. remaining_time .. " segundos.")
                        end
                    else
                        say("No tienes todos los items necesarios.")
                    end
                else
                    say("Necesitas ser nivel 90 para ir a este Mapa.")
                end
            elseif main_set == 2 then
                say("Has decidido cancelar la operación.")
            end
        end
    end
end
 

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.