Jump to content

Recommended Posts

Hello, i have problem with wait() function

part of quest is

 

Spoiler

state kon0037 begin

        when login or levelup or enter begin

            target.pos("__TARGET1__", 614, 118, 21, "los", 0)

        end

 

        when __TARGET1__.target.arrive begin

            target.delete("__TARGET1__")

            say_title("Glos zza portalu: ")

            say("")

            say_reward(pc.get_name().." slyszysz mnie?")

            say_reward("Halo "..pc.get_name().."!")

            say_reward("Jesli mnie slyszysz, uwazaj na staznika!")

            say_reward("Nie jest tym za kogo sie podaje! ")

            wait()         ------ here quest bug itself

            say_reward("Ale..")

            pc.warp_local(21, 55200, 61400)

            --set_state(kon0038)

        end

    end

when it comes to wait() function, after i click continue button, whole intarface fades/froze or whatever i can call it. i have to relog or speak to another npc to pop interface up again.. how to repair it?

Link to comment
https://metin2.dev/topic/29959-wait-function-bug/
Share on other sites

  • 1 year later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

state kon0037 begin

    when login or levelup or enter begin
        target.pos("__TARGET1__", 614, 118, 21, "los", 0)
    end

    when __TARGET1__.target.arrive begin
        target.delete("__TARGET1__")
        say_title("Głos zza portalu:")
        say("")
        say_reward(pc.get_name() .. " słyszysz mnie?")
        say_reward("Halo, " .. pc.get_name() .. "!")
        say_reward("Jeśli mnie słyszysz, uważaj na strażnika!")
        say_reward("Nie jest tym za kogo się podaje!")
        wait() -- Ensure the player reads the messages before warping
        say_reward("Ale...")
        pc.warp_local(21, 55200, 61400)
        -- set_state(kon0038) -- Uncomment this line if you want to transition to another state
    end

end

 

spacer.png

Link to comment
https://metin2.dev/topic/29959-wait-function-bug/#findComment-164668
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.