Jump to content

Recommended Posts

Hi all!

Snow dungeon quest in 6. floor not work.

		when 8058.kill with snow_dungeon.is_nemeres_dungeon() == true and d.getf("level") == 62 begin
			local set = snow_dungeon.get_settings()
			local next_jump_time = set.NextJumpTime
			d.clear_regen()
			d.kill_all()
			d.regen_file("data/dungeon/ice_dungeon/zone_7.txt")
			local v_MQv = set.MobVnum_level_7
			local c = set.SzelCords_level_7
			local n = number(1,table.getn(c))
			d.spawn_mob(v_MQv, c[n][1], c[n][2])
			d.notice("The "..mob_name(8058).." kill. Go to the next level")
			server_timer("Jp_7",10,d.get_map_index())
		end

I kill the Stone but the system not going to next level.

 

THX the Help.

snow_dungeon1.quest

 

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

  • Premium
when 8058.kill with snow_dungeon.is_nemeres_dungeon() == true and d.getf("level") == 62 begin

to

when 8058.kill with snow_dungeon.is_nemeres_dungeon() == true and d.getf("level") == 6 begin

 

 

 

if d.count_monster() == 0 then

works good only from loop.

  • Love 1
Link to comment
https://metin2.dev/topic/22324-snow-dungeon-quest/#findComment-121491
Share on other sites

Edited quest:

		when 8058.kill with snow_dungeon.is_nemeres_dungeon() == true and d.getf("level") == 6 begin
			local set = snow_dungeon.get_settings()
			local next_jump_time = set.NextJumpTime
			d.clear_regen()
			d.kill_all()
			d.regen_file("data/dungeon/ice_dungeon/zone_7.txt")
			local v_MQv = set.MobVnum_level_7
			local c = set.SzelCords_level_7
			local n = number(1,table.getn(c))
			d.spawn_mob(v_MQv, c[n][1], c[n][2])
			d.notice("A "..mob_name(8058).." sikeresen elpusztítva. Hamarosan a következő szintre léptek.")
			server_timer("Jp_7",10,d.get_map_index())
		end
		when snow_dungeon_loop.server_timer begin
			if d.select(get_server_timer_arg()) then
				if d.getf("level") == 1 or d.getf("level") == 3 or d.getf("level") == 4 or d.getf("level") == 7 then
					if d.count_monster() <= 0 then
						d.notice("Minden szörnyet legyőzetek, hamarosan a következő szintre léptek.")
						server_timer("Jp_".. d.getf("level") + 1,10,d.get_map_index())
						d.clear_regen()
						if d.getf("level") == 1 or d.getf("level") == 4 or d.getf("level") == 7 then
							d.set_regen_file("data/dungeon/ice_dungeon/zone_".. d.getf("level")+1 ..".txt")
						elseif d.getf("level") == 3 then
							d.regen_file("data/dungeon/ice_dungeon/zone_".. d.getf("level")+1 ..".txt")
						end
					end
				elseif d.getf("level") == 6 then
					if d.count_monster() <= 0 then
						d.notice("Minden szörnyet legyőztetek, a "..mob_name(8058).." megjelent.")
						d.setf("level", 62)
						d.clear_regen()
						d.regen_file("data/dungeon/ice_dungeon/zone_6.txt")
						d.spawn_mob(8058,570,649)
					end
				end
				if d.getf("end_time") <= get_time() then
					d.notice("Sajnos a rendelkezésre álló idő lejárt!")
					d.notice("Egy perc múlva ki lesztek teleportálva!")
					d.setf("finished", 1)
					clear_server_timer("snow_dungeon_loop", get_server_timer_arg())
					d.clear_regen()
					d.purge()
					server_timer("exit_timer", 60, d.get_map_index())
					return
				end
				
				local time_left = d.getf("end_time") - get_time()
				
				local divider = 5
				
				if time_left < 5*60 then divider = 1 end
				
				local modulo = time_left - math.floor(time_left/(divider*60))*60*divider
				if modulo == 0 then
					local minLeft = math.floor(time_left/60)
					d.notice("Hátralévő idő: "..minLeft.." perc!")
				end
			end
		end

But not working.

Not goint to the next level.

(Warning:The metin stone mob proto (8058) not the real dungeon stone. Damage all charachters. )

The problem maybe the wrong mob proto?

 

THX the answer!

Link to comment
https://metin2.dev/topic/22324-snow-dungeon-quest/#findComment-121500
Share on other sites

  • 2 weeks later...
On 12/7/2019 at 8:59 AM, Rick said:

Edited quest:


		when 8058.kill with snow_dungeon.is_nemeres_dungeon() == true and d.getf("level") == 6 begin
			local set = snow_dungeon.get_settings()
			local next_jump_time = set.NextJumpTime
			d.clear_regen()
			d.kill_all()
			d.regen_file("data/dungeon/ice_dungeon/zone_7.txt")
			local v_MQv = set.MobVnum_level_7
			local c = set.SzelCords_level_7
			local n = number(1,table.getn(c))
			d.spawn_mob(v_MQv, c[n][1], c[n][2])
			d.notice("A "..mob_name(8058).." sikeresen elpusztítva. Hamarosan a következő szintre léptek.")
			server_timer("Jp_7",10,d.get_map_index())
		end

		when snow_dungeon_loop.server_timer begin
			if d.select(get_server_timer_arg()) then
				if d.getf("level") == 1 or d.getf("level") == 3 or d.getf("level") == 4 or d.getf("level") == 7 then
					if d.count_monster() <= 0 then
						d.notice("Minden szörnyet legyőzetek, hamarosan a következő szintre léptek.")
						server_timer("Jp_".. d.getf("level") + 1,10,d.get_map_index())
						d.clear_regen()
						if d.getf("level") == 1 or d.getf("level") == 4 or d.getf("level") == 7 then
							d.set_regen_file("data/dungeon/ice_dungeon/zone_".. d.getf("level")+1 ..".txt")
						elseif d.getf("level") == 3 then
							d.regen_file("data/dungeon/ice_dungeon/zone_".. d.getf("level")+1 ..".txt")
						end
					end
				elseif d.getf("level") == 6 then
					if d.count_monster() <= 0 then
						d.notice("Minden szörnyet legyőztetek, a "..mob_name(8058).." megjelent.")
						d.setf("level", 62)
						d.clear_regen()
						d.regen_file("data/dungeon/ice_dungeon/zone_6.txt")
						d.spawn_mob(8058,570,649)
					end
				end
				if d.getf("end_time") <= get_time() then
					d.notice("Sajnos a rendelkezésre álló idő lejárt!")
					d.notice("Egy perc múlva ki lesztek teleportálva!")
					d.setf("finished", 1)
					clear_server_timer("snow_dungeon_loop", get_server_timer_arg())
					d.clear_regen()
					d.purge()
					server_timer("exit_timer", 60, d.get_map_index())
					return
				end
				
				local time_left = d.getf("end_time") - get_time()
				
				local divider = 5
				
				if time_left < 5*60 then divider = 1 end
				
				local modulo = time_left - math.floor(time_left/(divider*60))*60*divider
				if modulo == 0 then
					local minLeft = math.floor(time_left/60)
					d.notice("Hátralévő idő: "..minLeft.." perc!")
				end
			end
		end

But not working.

Not goint to the next level.

(Warning:The metin stone mob proto (8058) not the real dungeon stone. Damage all charachters. )

The problem maybe the wrong mob proto?

 

THX the answer!

You are setting the level to 62 here:

d.setf("level", 62)

 

Don't know if you still have the problem but yeah ?

 

if does not work, post full quest, can't download your file.

It's all lies

Link to comment
https://metin2.dev/topic/22324-snow-dungeon-quest/#findComment-121798
Share on other sites

This quest work. The problem mob proto.. the metin stone!

But the new problem is 20399(Totem)

Totem is npc... and can't attack.

I can't find my source the stone attack only shaman character.(20399)

6.floor fix :

mob_proto txt:

8058    ???    KING    STONE    MELEE    100        NOMOVE    0        STUN,SLOW,CURSE,TERROR    0        0    0    0    100    0    0    0    1200000    5    1    0    0    51    100    6055    6060    0    2000    150    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0


9.floor fix:

20399    ???    KING    STONE    MELEE    100        NOMOVE    0        STUN,SLOW,CURSE,TERROR    0        0    0    0    100    0    0    0    1200000    5    1    0    0    51    100    6055    6060    0    2000    150    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

 

But 9.floor the totem npc.. not mob.. and I cant' find the id in source.

Other forum find this :

IceMetin_racelimit			= {WARRIOR_M,WARRIOR_W,NINJA_W,NINJA_M,SURA_M,SURA_W}
-- 20399

)

Link to comment
https://metin2.dev/topic/22324-snow-dungeon-quest/#findComment-121988
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.