Jump to content

Recommended Posts

hello devs, i have a problem...

 

My Quest timer is not working :

 

        when 2493.kill with pc.get_map_index(97*10000) begin
            local drop = number(1,10)
            if drop <= 3 then
                game.drop_item_with_ownership(71123)
            elseif drop >= 4 and drop <= 8 then
                game.drop_item_with_ownership(71129)
            elseif drop >= 9 then
                game.drop_item_with_ownership(71123)
                game.drop_item_with_ownership(71129)
            end
            game.set_event_flag("reopen", get_time()+30*60)
            notice_all("Die Gruppe von "..pc.get_name().." hat den Blauen Drachen getötet")
            game.set_event_flag("metinkills", 0)
            game.set_event_flag("dragontemple_block",1)
            server_timer("skipia_boss_end", 60,pc.get_map_index())
        end

        when skipia_boss_end.server_timer begin
            if d.select(get_server_timer_arg()) then
                d.exit_all()
            end
        end
    end
end

 

i got the notice, but the timer is not working.. the players are not warped out from the map..

 

whats wrong :/

Link to comment
https://metin2.dev/topic/5148-times-is-not-working/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium
        when 2493.kill with pc.get_map_index() == 97*10000 begin
            local drop = number(1,10)
            if drop <= 3 then
                game.drop_item_with_ownership(71123)
            elseif drop >= 4 and drop <= 8 then
                game.drop_item_with_ownership(71129)
            elseif drop >= 9 then
                game.drop_item_with_ownership(71123)
                game.drop_item_with_ownership(71129)
            end
            game.set_event_flag("reopen", get_time()+30*60)
            notice_all("Die Gruppe von "..pc.get_name().." hat den Blauen Drachen getötet")
            game.set_event_flag("metinkills", 0)
            game.set_event_flag("dragontemple_block",1)
            server_timer("skipia_boss_end", 60,d.get_map_index())
        end
 
        when skipia_boss_end.server_timer begin
            if d.select(get_server_timer_arg()) then
                d.exit_all()
                clear_server_timer ("skipia_boss_end", d.get_map_index())
            end
        end
    end
end

+ Make Sure That You Are In Dungon , Becous If This dragon_lair quest , he is not use dungon

If you're going to do something, then do it right.

Link to comment
https://metin2.dev/topic/5148-times-is-not-working/#findComment-32472
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.