Jump to content

Recommended Posts

quest my_dungeon begin
    state start begin
        when 20094.chat."Entra nel Dungeon" begin
            say_title("Guardiano del Dungeon:")
            say("Vuoi entrare nel dungeon misterioso?")
            local s = select("Entra", "Annulla")
            if s == 1 then
                d.new_jump_all(381, 3840,9216) 
                d.setf("dungeon_active", 1)
            end
        end

        when login with d.getf("dungeon_active") == 1 begin
            d.spawn_mob(692, 121, 325) 
        end

        when 692.kill with d.getf("dungeon_active") == 1 begin
            say("Hai sconfitto il boss del dungeon!")
            say("Complimenti, ora puoi uscire.")
            d.setf("dungeon_active", 0)
			d.set_warp_location(41,9216,2048)
            d.exit_all()
        end
    end
end

hi im trying to make a dungeon quest very simple 

i need a dungeon who spawn a mob then another then another then end same coordinate for every boss also i wanted to make it work for party

the problem here are two:

first one mob doesnt spawn also tried with regen and nothing

second one when warp tp me every np in map 41 are under ground and only relog fix it 

what im doing wrong 

plz help me 

Link to comment
https://metin2.dev/topic/33729-dungeon-quest-bug/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Active Member
On 5/12/2025 at 12:53 PM, mrscale said:
quest my_dungeon begin
    state start begin
        when 20094.chat."Entra nel Dungeon" begin
            say_title("Guardiano del Dungeon:")
            say("Vuoi entrare nel dungeon misterioso?")
            local s = select("Entra", "Annulla")
            if s == 1 then
                d.new_jump_all(381, 3840,9216) 
                d.setf("dungeon_active", 1)
            end
        end

        when login with d.getf("dungeon_active") == 1 begin
            d.spawn_mob(692, 121, 325) 
        end

        when 692.kill with d.getf("dungeon_active") == 1 begin
            say("Hai sconfitto il boss del dungeon!")
            say("Complimenti, ora puoi uscire.")
            d.setf("dungeon_active", 0)
			d.set_warp_location(41,9216,2048)
            d.exit_all()
        end
    end
end

hi im trying to make a dungeon quest very simple 

i need a dungeon who spawn a mob then another then another then end same coordinate for every boss also i wanted to make it work for party

the problem here are two:

first one mob doesnt spawn also tried with regen and nothing

second one when warp tp me every np in map 41 are under ground and only relog fix it 

what im doing wrong 

plz help me 

quest my_dungeon begin
    state start begin

        when 20094.chat."Enter the Dungeon" begin
            say_title("Dungeon Guardian:")
            say("Do you want to enter the mysterious dungeon?")
            local s = select("Enter", "Cancel")
            if s == 1 then
                d.join(381) -- uses dungeon index, defined in index file
                d.setf("stage", 1)
                d.setf("dungeon_active", 1)
            end
        end

        when login with d.getf("dungeon_active") == 1 begin
            if d.getf("stage") == 1 then
                d.spawn_mob(692, 121, 325) -- First boss
            end
        end

        when 692.kill with d.getf("dungeon_active") == 1 and d.getf("stage") == 1 begin
            d.setf("stage", 2)
            timer("spawn_second_boss", 3)
        end

        when spawn_second_boss.timer begin
            d.spawn_mob(693, 121, 325) -- Second boss
        end

        when 693.kill with d.getf("dungeon_active") == 1 and d.getf("stage") == 2 begin
            d.setf("stage", 3)
            timer("spawn_third_boss", 3)
        end

        when spawn_third_boss.timer begin
            d.spawn_mob(694, 121, 325) -- Final boss
        end

        when 694.kill with d.getf("dungeon_active") == 1 and d.getf("stage") == 3 begin
            say("You have defeated the final boss!")
            say("Congratulations, you may now leave the dungeon.")
            d.setf("dungeon_active", 0)
            d.setf("stage", 0)
            d.set_warp_location(41, 9216, 2048) -- Safe exit point
            timer("exit_dungeon", 5)
        end

        when exit_dungeon.timer begin
            d.exit_all()
        end

    end
end

Check this code
 

Link to comment
https://metin2.dev/topic/33729-dungeon-quest-bug/#findComment-170756
Share on other sites

  • Solution
8 hours ago, Kuqsal said:
quest my_dungeon begin
    state start begin

        when 20094.chat."Enter the Dungeon" begin
            say_title("Dungeon Guardian:")
            say("Do you want to enter the mysterious dungeon?")
            local s = select("Enter", "Cancel")
            if s == 1 then
                d.join(381) -- uses dungeon index, defined in index file
                d.setf("stage", 1)
                d.setf("dungeon_active", 1)
            end
        end

        when login with d.getf("dungeon_active") == 1 begin
            if d.getf("stage") == 1 then
                d.spawn_mob(692, 121, 325) -- First boss
            end
        end

        when 692.kill with d.getf("dungeon_active") == 1 and d.getf("stage") == 1 begin
            d.setf("stage", 2)
            timer("spawn_second_boss", 3)
        end

        when spawn_second_boss.timer begin
            d.spawn_mob(693, 121, 325) -- Second boss
        end

        when 693.kill with d.getf("dungeon_active") == 1 and d.getf("stage") == 2 begin
            d.setf("stage", 3)
            timer("spawn_third_boss", 3)
        end

        when spawn_third_boss.timer begin
            d.spawn_mob(694, 121, 325) -- Final boss
        end

        when 694.kill with d.getf("dungeon_active") == 1 and d.getf("stage") == 3 begin
            say("You have defeated the final boss!")
            say("Congratulations, you may now leave the dungeon.")
            d.setf("dungeon_active", 0)
            d.setf("stage", 0)
            d.set_warp_location(41, 9216, 2048) -- Safe exit point
            timer("exit_dungeon", 5)
        end

        when exit_dungeon.timer begin
            d.exit_all()
        end

    end
end

Check this code
 

thanks for the answer, i-ve tried with your code but as usual when i get the in dungeon the first boss doesnt appear(change also vnum) but if i summon it and kill it the others one spawn....

Link to comment
https://metin2.dev/topic/33729-dungeon-quest-bug/#findComment-170761
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.