Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Rekomendowane odpowiedzi

Opublikowano

Witam szukam jakiegoś działającego Questa na dungeon . Szukałem dużo na MPC ale po wgraniu na serwer okazywało się że nie działa.

Więc jak by ktoś miał działający Dungeon to oczywiście polecą ( LIKE )  ;)

69737149773342596741.png

Opublikowano

DT:

 

 

 

quest deviltower_zone begin
    state start begin
	when login begin
	    if pc.get_map_index() == 66 then
		-- 獶1加, 癳.
		-- 糷计 絛瞅
		-- 1加  88  577  236 737
		-- 2加  91  343  238 504
		-- 3加 104  107  248 269
		if pc.get_x() < 2048+88 or pc.get_y() < 6656+577 or pc.get_x() > 2048+236 or pc.get_y() > 6656+737 then
		    pc.warp((5376+532)*100, (512+596+4)*100, 65)
		end
		pc.set_warp_location(65, 5376+532, 512+596+4)
	    elseif pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then
		pc.set_warp_location(65, 5376+532, 512+596+4)
	    end
	end
	when deviltower_man.chat."Wie縜 Demon體" begin
	    if pc.get_level() < 40 then
		say_koral("Stra縩ik Wie縴 Demon體: ")
		say_cialo(locale.deviltower_man_say_you_cant)
	    else
		say_koral("Stra縩ik Wie縴 Demon體: ")
		say_cialo(locale.deviltower_man_say)
		local s = select(locale.deviltower_enter,locale.deviltower_no_enter)
		if s == 1 then
		    -- warp into!
		    pc.warp(216500,727000)
		end
	    end
	end
	when kill with npc.get_race() == 8015 and pc.get_map_index() == 66 begin
	    timer("devil_stone1_1", 6)
	end
	when devil_stone1_1.timer  begin
		local mapto7= pc.count_item(30302)  -- 防ぃ琌痷艶娥
		pc.remove_item(30302,mapto7)

		local boxto7= pc.count_item(30300)  -- 防ぃ琌ぃ絚
		pc.remove_item(30300,boxto7)

	    d.new_jump_all(66, special.devil_tower[1][1], special.devil_tower[1][2])
	    d.regen_file("data/dungeon/deviltower2_regen.txt")
	    d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[2][1], special.devil_tower[2][2], "data/dungeon/deviltower3_regen.txt")
	end
	--when devil_stone2.kill begin
	--d.jump_all_local(special.devil_tower[2][1], special.devil_tower[2][2])
	--end
	when devil_stone3.kill begin
	    --d.jump_all_local(special.devil_tower[3][1], special.devil_tower[3][2])
	    --d.set_exit_all_at_eliminate(6)
	    --d.set_warp_at_eliminate(6, d.get_map_index(), 100, 100)
	    --d.set_warp_at_eliminate(4, 65, 5376+532, 512+596+4)
	    d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[3][1], special.devil_tower[3][2], "data/dungeon/deviltower4_regen.txt")
	    d.check_eliminated()
	    --d.exit_all()
	end
	function get_4floor_stone_pos()
	    local positions = {
		{368, 629},
		{419, 630},
		{428, 653},
		{422, 679},
		{395, 689},
		{369, 679},
		{361, 658},
	    }
	    for i = 1, 6 do
		local j = number(i, 7)
		if i != j then
		    local t = positions[i];
		    positions[i] = positions[j];
		    positions[j] = t;
		end
	    end
	    --for i = 1, 7 do
	--	positions[i][1] = positions[i][1] * 100
	--	positions[i][2] = positions[i][2] * 100
	 --   end
	    return positions
	end
	when kill with npc.get_race() == 8016 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
	    d.setf("level", 4)
	    -- 瞷秖┣の籹硑痷ホ繷㎝安ホ繷
	    --d.regen_file("data/dungeon/deviltower4_regen.txt")
	    local positions = deviltower_zone.get_4floor_stone_pos()
	    for i = 1, 6 do
		chat(positions[i][1], positions[i][2])
		d.set_unique("fake" .. i , d.spawn_mob(8017, positions[i][1], positions[i][2]))
	    end
	    chat(positions[7][1], positions[7][2])
	    local vid = d.spawn_mob(8017, positions[7][1], positions[7][2])
	    chat(vid)
	    d.set_unique("real", vid)
	    server_loop_timer('devil_stone4_update', 10, pc.get_map_index())
	    server_timer('devil_stone4_fail1', 5*60, pc.get_map_index())

	    d.notice("<Informacja> Brawo, Uda硂 si?Tobie");
	    d.notice("<Informacja> zniszczyc kamien metin!");
	    d.notice("<Informacja> Macie 15 minut zanim zostaniecie wylogowani.");
	    d.notice("<Informacja> Spieszcie si?");
	end

	when devil_stone4_fail1.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 10 minut!")
		server_timer('devil_stone4_fail2', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone4_fail2.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 5 minut!")
		server_timer('devil_stone4_fail', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone4_fail.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Nie uda硂 si? zostaniecie wylogowani! ")
		d.exit_all()
		clear_server_timer('devil_stone4_update', get_server_timer_arg())
	    end
	end

	when devil_stone4_update.server_timer begin
	    if d.select(get_server_timer_arg()) then
		if not d.is_unique_dead("real") then
		    for i = 1, 6 do
			if d.getf("fakedead" .. i) == 0 then
			    if d.unique_get_hp_perc("fake" .. i) < 50 then
				d.purge_unique("fake" .. i)
				d.setf("fakedead" .. i, 1)
				d.notice("<Informacja> To nie ten kamien! ");
			    end
			end
		    end
		else
		    --d.clear_regen()
		    --d.regen_file("data/dungeon/deviltower5_regen.txt")
		    server_timer("devil_stone4_end", 5, get_server_timer_arg())
		    d.notice("<Informacja> Uda硂 si? Zabij wszystkie potwory na nastepnym");
		    d.notice("<Informacja> pietrze, aby zdobyc kamien otwarcia!")
		    clear_server_timer('devil_stone4_fail1', get_server_timer_arg())
		    clear_server_timer('devil_stone4_fail2', get_server_timer_arg())
		    clear_server_timer('devil_stone4_fail', get_server_timer_arg())
		end
	    else
		server_timer('devil_stone4_stop_timer', 1, get_server_timer_arg())
	    end
	end

	when devil_stone4_stop_timer.server_timer begin
	    clear_server_timer('devil_stone4_update', get_server_timer_arg())
	end

	when devil_stone4_end.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.setf("level", 5)
		d.setf("stone_count", 5)
		d.notice("<Informacja> Brawo, jeste?na 5 pi阾rze!")
		d.notice("<Informacja> Aby przej滄 na 6 pietro musisz zabi?")
		d.notice("<Informacja> wszystkie potwory, zdoby?Kamie?Otwarcia ")
		d.notice("<Informacja> i otworzy?piecz阠ie przed ko馽em czasu! ")
		d.jump_all(special.devil_tower[4][1], special.devil_tower[4][2])
		server_timer('devil_stone5_fail1', 5*60, get_server_timer_arg())
		clear_server_timer('devil_stone4_update', get_server_timer_arg())

		-- 5加膥尿瞷
		d.set_regen_file("data/dungeon/deviltower5_regen.txt")

		-- 5加ホ瞷
		d.spawn_mob(20073, 421, 452)
		d.spawn_mob(20073, 380, 460)
		d.spawn_mob(20073, 428, 414)
		d.spawn_mob(20073, 398, 392)
		d.spawn_mob(20073, 359, 426)
	    end
	end
	when devil_stone5_fail1.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 15 minut!")
		server_timer('devil_stone5_fail2', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone5_fail2.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 10 minut!")
		server_timer('devil_stone5_fail3', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone5_fail3.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 5 minut!")
		server_timer('devil_stone5_fail', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone5_fail.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Nie uda硂 si? zostaniecie wylogowani! ")
		d.exit_all()
	    end
	end

	--when devil_stone4.kill begin
	    --d.setf("level", 5)
	    --d.setf("stone_count", 4)
	    --d.clear_regen()
	    --d.regen_file("data/dungeon/deviltower5_regen.txt")
	    --d.jump_all_local(special.devil_tower[4][1], special.devil_tower[4][2])
	--end

	when kill with npc.get_race() == 1062 and pc.in_dungeon() and d.getf("level") == 5 begin
	    local KILL_COUNT_FOR_DROP_KEY = 50
	    --if is_test_server() then
		--KILL_COUNT_FOR_DROP_KEY = 1
	    --end
	    local n =d.getf("count") + 1
	    d.setf("count", n) 
	    if n == KILL_COUNT_FOR_DROP_KEY then
		-- 奔玛巴
		pc.give_item2(50084, 1)
		d.notice("<Informacja> "..pc.get_name().." podni髎?Kamie?Otwarcia. ")
		d.setf("count", 0)
	    end
	end
	when devil_stone5.take with item.vnum == 50084 begin
	    npc.purge()
	    item.remove()
	    d.setf("stone_count", d.getf("stone_count") - 1)
	    if d.getf("stone_count") <= 0 then
		d.setf("level", 6)
		d.clear_regen()
		d.regen_file("data/dungeon/deviltower6_regen.txt")

		d.notice("<Informacja> Brawo uda硂 si? Jeste?na 6 pi阾rze! ")
		d.notice("<Informacja> Zabij wszystkie potwory! ")
		d.jump_all(special.devil_tower[5][1], special.devil_tower[5][2])
		clear_server_timer('devil_stone5_fail1', get_server_timer_arg())
		clear_server_timer('devil_stone5_fail2', get_server_timer_arg())
		clear_server_timer('devil_stone5_fail3', get_server_timer_arg())
		clear_server_timer('devil_stone5_fail', get_server_timer_arg())
	    else
		d.notice("<Informacja> Pozosta砮 piecz阠ie: "..d.getf("stone_count"))
	    end
	end

	when devil_stone6.kill begin
	    -- 肚癳芬竧┮瓜
	    -- 玥秨砞穝芬竧
	    --d.jump_all(special.devil_tower[6][1], special.devil_tower[6][2])
	    d.kill_all()
	   -- d.set_warp_at_eliminate(3*60, 65, 5376+532, 512+596+4)
	    d.check_eliminated()
	    local reward_alchemist = {20074, 20075, 20076}
	    d.spawn_mob(reward_alchemist[number(1,3)], 425, 216);
	    d.setqf("can_refine", 1)
	end

	--------------------------------------
	-- パ秈7加笷8加ぇ玡
	--------------------------------------

	when 20074.chat."Chc?przej滄 dalej." with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 6 begin
		say_koral(""..mob_name(20074).."")
		say_cialo("Zostaniesz przeniesiony")
		say_cialo("na 7 pietro Wie縴 Demon體!")
		say_cialo("Lecz uwa縜j...")
		say_cialo("Tam nie b阣zie tak 砤two jak wczesniej! ")
		wait()
		if pc.level >=75 then
			say_koral("Informacja: ")
			say_cialo("Kazdy z graczy zostanie przeniesiony! ")
			timer("devil_jump_7", 6)
			return
		end
		say_koral("Informacja: ")
		say_cialo("Mozesz przejsc dalej! ")
		say("")
		say("")
		wait()
		pc.warp(590500, 110500)
		return
    end
	when 20075.chat."Chc?przej滄 dalej." with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 6 begin
		say_koral(""..mob_name(20075).."")
		say_cialo("Zostaniesz przeniesiony ")
		say_cialo("na 7 pietro Wie縴 Demon體! ")
		say_cialo("Lecz uwa縜j... ")
		say_cialo("Tam nie b阣zie tak 砤two jak wczesniej! ")
		wait()
		if pc.level >=75 then
			say_koral("Informacja: ")
			say_cialo("Kazdy z graczy zostanie przeniesiony! ")
			timer("devil_jump_7", 6)
			return
		end
		say_koral("Informacja: ")
		say_cialo("Mozesz przejsc dalej! ")
		say("")
		say("")
		wait()
		pc.warp(590500, 110500)
		return
    end
	when 20076.chat."Chc?przej滄 dalej." with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 6 begin
		say_koral(""..mob_name(20076).."")
		say_cialo("Zostaniesz przeniesiony")
		say_cialo("na 7 pietro Wie縴 Demon體!")
		say_cialo("Lecz uwa縜j...")
		say_cialo("Tam nie b阣zie tak 砤two jak wczesniej!")
		wait()
		if pc.level >=75 then
			say_koral("Informacja: ")
			say_cialo("Kazdy z graczy zostanie przeniesiony! ")
			timer("devil_jump_7", 6)
			return
		end
		say_koral("Informacja: ")
		say_cialo("Mozesz przejsc dalej! ")
		say("")
		say("")
		wait()
		pc.warp(590500, 110500)
		return
    end

   when devil_jump_7.timer begin
		d.clear_regen()

		d.spawn_mob(8018, 639, 658)
		d.spawn_mob(8018, 611, 637)
		d.spawn_mob(8018, 596, 674)
		d.spawn_mob(8018, 629, 670)

		d.setf("level", 7)

		d.jump_all(2048+590, 6656+638)
	end
	
	when kill with npc.get_race() == 8018 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		local cont = d.getf("7_stone_kill") + 1
		d.setf("7_stone_kill", cont)

		if cont >= 4 then
			d.setf("7_stone_kill", 0)
			d.set_regen_file("data/dungeon/deviltower7_regen.txt")
		end	
	end

	when kill with npc.get_race() == 8019 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		game.drop_item(30300, 1)
	end

	when 30300.use with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		pc.remove_item("30300", 1)

		local pct = number(1,10)

		if pct == 1 then
			-- 奔痷瓜
			game.drop_item(30302, 1)
			d.clear_regen()
		else
			-- 奔安瓜
			game.drop_item(30301, 1)
			
		end
	end

	when 30302.use with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		-- 肚癳8加
		say_koral("Informacja: ")
		say_cialo("Przeniesiesz si?na 8 pietro! ")
		pc.remove_item("30302", 1)
	    timer("devil_jump_8", 6)
		d.kill_all()
		d.clear_regen()
	end
						
	--------------------------------------------
	-- パ秈8加笷9加ぇ玡
	--------------------------------------------
	when devil_jump_8.timer begin
		d.setf("level", 8)
		d.jump_all(2048+590, 6656+403)
		d.set_regen_file("data/dungeon/deviltower8_regen.txt")
		d.spawn_mob(20366, 640, 460)
		local _count= pc.count_item(30302)-- 防痷艶娥
		pc.remove_item(30302,_count)
		
	end

	when kill with npc.get_race() == 1040 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 8 begin
		local pct1 = number(1, 5)
		if pct1 == 1 then
			local pct2 = number(1, 10)
			if pct2 == 1 then
				-- 奔痷玛巴
				game.drop_item(30304, 1)
			else
				-- 奔安玛巴
				game.drop_item(30303, 1)
			end
		else
			return
		end
	end

	when 20366.take with item.vnum == 30304 begin
		-- 9加秆埃
		d.notice("<Informacja> Zostaniecie przeniesieni na 9 pietro! ")
		npc.purge()
		d.kill_all()
		d.clear_regen()
		item.remove()
		timer("devil_jump_9", 6)
	end

	---------------------------------------------
	-- パ秈9加挡
	---------------------------------------------
	when devil_jump_9.timer begin
		d.setf("level", 9)
		d.jump_all(2048+590, 6656+155)
		d.spawn_mob(1093, 608, 220)
		d.regen_file("data/dungeon/deviltower9_regen.txt")
	end

	when kill with npc.get_race() == 1093 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		d.kill_all()
		d.notice("<Informacja> Zaraz przeniesiecie si?na 10 pi阾ro. ")
		timer("devil_end_jump", 30)
	end

	when devil_end_jump.timer begin
		d.setf("level", 10)
		d.jump_all(2048+590, 6656+155)
		pc.remove_item(30203, pc.count_item(30203))
		d.set_regen_file("data/dungeon/deviltower10_regen.txt")
		d.notice("<Informacja> Zdob筪焎ie 100 Kryszta丑w z Metin體 Zawi渃i, nast阷nie przeka縞ie je na Pomnik Su. ")
		d.notice("<Informacja> Z jednego metina mo縩a zdoby?od 4 do 12 Kryszta丑w! ")
	end
		
	when kill with npc.get_race() == 8040 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		local st = math.random(4, 12)
		if pc.countitem(30203) < 100 then
			pc.give_item2(30203, st)
			d.notice("<Informacja> "..pc.get_name().." otrzyma?zdoby?Kryszta硑! Ilo滄: "..st)
		else
			d.notice("<Informacja> Posiadasz ju?100 Kryszta丑w!")
		end
	end
	when 20361.take with item.vnum == 30203 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		if pc.countitem(30203) < 100 then
			d.notice("<Informacja> Nie posiadasz 100 Kryszta丑w! ")
		else
			d.kill_all()
			pc.remove_item(30203, pc.count_item(30203))
			d.jump_all(2048+590, 6656+403)
			d.regen_file("data/dungeon/deviltower11_regen.txt")
			d.notice("<Informacja> Witajcie na 11 pi阾rze! ")
			d.notice("<Informacja> Waszym ostatnim zadaniem jest zniszczenie Niebieskiej 宮ierci. Powodzenia! ")
		end
	end
	when kill with npc.get_race() == 1095 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		d.kill_all()
		d.notice("<Informacja> Za 60 sekund zostaniecie wyrzuceni z Wie縴! ")
		timer("devil_end_jumpx", 60)
	end
	
	when devil_end_jumpx.timer begin
		d.exit_all()
	end
end
end 

 

 

 

Komnata Smoka:

 

 

 

quest swiatyniasmoka begin
	state start begin
		when 30121.chat."Chcę zabić tego Smoka! " begin
			say_koral("Duch Sura: ")
			if get_time() < game.get_event_flag("klucz") then
				say_cialo("Komnata jest obecnie zajęta. ")
				say_cialo("Spróbuj ponownie później. ")
			elseif get_time() < game.get_event_flag("dostep") then
				say_cialo("Komnata jest obecnie zajęta. ")
				say_cialo("Spróbuj ponownie później. ")
			elseif get_time() > game.get_event_flag("dostep") then
				say_cialo("Jesteś pierwszym, który domaga się dostępu do")
				say_cialo("Świątyni Smoka. Wpuszczę cię, o ile posiadasz")
				say_cialo("wystarczającą ilość Krętych Kluczy. ")
				say_cialo("Pamiętaj również, że moc Kluczy wystarczy jedynie")
				say_cialo("na 30 minut. W przeciągu tego czasu musicie")
				say_cialo("pokonać Smoka!")
				local s = select("Jestem gotowy!", "Anuluj")
				if s == 1 then
							if pc.countitem(30179) < 3 then
								say_koral("Duch Sura:")
								say_cialo("Nie posiadasz 3 sztuk:")
								say_item_vnum(30179)
							elseif pc.countitem(30179) >= 3 then
								say_koral("Duch Sura: ")
								say_cialo("Posiadasz klucze, więc mogę Cię ")
								say_cialo("wpuścić do Świątyni Smoka. ")
								say_cialo("Powodzenia! ")
								wait()
								pc.remove_item(30179, 3)
								pc.setqf("pierwszy", 1)
								game.set_event_flag("klucz", get_time() + 300)
								game.set_event_flag("dostep", get_time() + 1800)
							d.join(2)
						end
					end
				end
			end
		when login with pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 and pc.in_dungeon() begin
			timer("koniec", 1800)
			timer("x3", 1500)
			timer("x2", 1200)
			timer("x", 900)
			timer("xx", 600)
			timer("xxx", 300)
			if pc.getqf("pierwszy") == 1 then
				pc.setqf("pierwszy", 0)
				d.spawn_mob(2493, 182, 174)
				d.spawn_mob(8031, 196, 181)
				d.spawn_mob(8032, 195, 165)
				d.spawn_mob(8033, 173, 163)
				d.spawn_mob(8034, 174, 186)
				d.regen_file("data/dungeon/swiatyniasmoka.txt")
				d.notice("<Informacja> Witaj w Świątyni Smoka!")
				d.notice("<Informacja> Pozostało 30 minut na zniszczenie Beran'a Setaou!")
			else
				notice("<Informacja> Witaj w Świątyni Smoka!")
			end
		end
		when xxx.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 25 minut.")
		end
		when xx.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 20 minut.")
		end
		when x.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 15 minut.")
		end
		when x2.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 10 minut.")
		end
		when x3.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 5 minut.")
		end
		when koniec.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Czas się skończył. Zostaniecie wyrzuceni ze Świątyni Smoka. ")
			d.exit_all()
		end
		when kill with npc.get_race() == 2493 and pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Udało Wam się pokonać Beran'a Setaou! ")
			d.notice("<Informacja> Za 30 sekund zostaniecie wyrzuceni z komnaty smoka. ")
			d.kill_all()
			timer("exitall", 30)
		end
		when exitall.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.exit_all()
		end
		when 30316.use with pc.is_gm() begin
			syschat("test1")
			game.set_event_flag("klucz", get_time() + 1)
			game.set_event_flag("dostep", get_time() + 1)
			syschat("test2")
		end
	end
end 

 

 

727881401622271220780.jpeg
Opublikowano

DT:

 

 

 

quest deviltower_zone begin
    state start begin
	when login begin
	    if pc.get_map_index() == 66 then
		-- 獶1加, 癳.
		-- 糷计 絛瞅
		-- 1加  88  577  236 737
		-- 2加  91  343  238 504
		-- 3加 104  107  248 269
		if pc.get_x() < 2048+88 or pc.get_y() < 6656+577 or pc.get_x() > 2048+236 or pc.get_y() > 6656+737 then
		    pc.warp((5376+532)*100, (512+596+4)*100, 65)
		end
		pc.set_warp_location(65, 5376+532, 512+596+4)
	    elseif pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then
		pc.set_warp_location(65, 5376+532, 512+596+4)
	    end
	end
	when deviltower_man.chat."Wie縜 Demon體" begin
	    if pc.get_level() < 40 then
		say_koral("Stra縩ik Wie縴 Demon體: ")
		say_cialo(locale.deviltower_man_say_you_cant)
	    else
		say_koral("Stra縩ik Wie縴 Demon體: ")
		say_cialo(locale.deviltower_man_say)
		local s = select(locale.deviltower_enter,locale.deviltower_no_enter)
		if s == 1 then
		    -- warp into!
		    pc.warp(216500,727000)
		end
	    end
	end
	when kill with npc.get_race() == 8015 and pc.get_map_index() == 66 begin
	    timer("devil_stone1_1", 6)
	end
	when devil_stone1_1.timer  begin
		local mapto7= pc.count_item(30302)  -- 防ぃ琌痷艶娥
		pc.remove_item(30302,mapto7)

		local boxto7= pc.count_item(30300)  -- 防ぃ琌ぃ絚
		pc.remove_item(30300,boxto7)

	    d.new_jump_all(66, special.devil_tower[1][1], special.devil_tower[1][2])
	    d.regen_file("data/dungeon/deviltower2_regen.txt")
	    d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[2][1], special.devil_tower[2][2], "data/dungeon/deviltower3_regen.txt")
	end
	--when devil_stone2.kill begin
	--d.jump_all_local(special.devil_tower[2][1], special.devil_tower[2][2])
	--end
	when devil_stone3.kill begin
	    --d.jump_all_local(special.devil_tower[3][1], special.devil_tower[3][2])
	    --d.set_exit_all_at_eliminate(6)
	    --d.set_warp_at_eliminate(6, d.get_map_index(), 100, 100)
	    --d.set_warp_at_eliminate(4, 65, 5376+532, 512+596+4)
	    d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[3][1], special.devil_tower[3][2], "data/dungeon/deviltower4_regen.txt")
	    d.check_eliminated()
	    --d.exit_all()
	end
	function get_4floor_stone_pos()
	    local positions = {
		{368, 629},
		{419, 630},
		{428, 653},
		{422, 679},
		{395, 689},
		{369, 679},
		{361, 658},
	    }
	    for i = 1, 6 do
		local j = number(i, 7)
		if i != j then
		    local t = positions[i];
		    positions[i] = positions[j];
		    positions[j] = t;
		end
	    end
	    --for i = 1, 7 do
	--	positions[i][1] = positions[i][1] * 100
	--	positions[i][2] = positions[i][2] * 100
	 --   end
	    return positions
	end
	when kill with npc.get_race() == 8016 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
	    d.setf("level", 4)
	    -- 瞷秖┣の籹硑痷ホ繷㎝安ホ繷
	    --d.regen_file("data/dungeon/deviltower4_regen.txt")
	    local positions = deviltower_zone.get_4floor_stone_pos()
	    for i = 1, 6 do
		chat(positions[i][1], positions[i][2])
		d.set_unique("fake" .. i , d.spawn_mob(8017, positions[i][1], positions[i][2]))
	    end
	    chat(positions[7][1], positions[7][2])
	    local vid = d.spawn_mob(8017, positions[7][1], positions[7][2])
	    chat(vid)
	    d.set_unique("real", vid)
	    server_loop_timer('devil_stone4_update', 10, pc.get_map_index())
	    server_timer('devil_stone4_fail1', 5*60, pc.get_map_index())

	    d.notice("<Informacja> Brawo, Uda硂 si?Tobie");
	    d.notice("<Informacja> zniszczyc kamien metin!");
	    d.notice("<Informacja> Macie 15 minut zanim zostaniecie wylogowani.");
	    d.notice("<Informacja> Spieszcie si?");
	end

	when devil_stone4_fail1.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 10 minut!")
		server_timer('devil_stone4_fail2', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone4_fail2.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 5 minut!")
		server_timer('devil_stone4_fail', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone4_fail.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Nie uda硂 si? zostaniecie wylogowani! ")
		d.exit_all()
		clear_server_timer('devil_stone4_update', get_server_timer_arg())
	    end
	end

	when devil_stone4_update.server_timer begin
	    if d.select(get_server_timer_arg()) then
		if not d.is_unique_dead("real") then
		    for i = 1, 6 do
			if d.getf("fakedead" .. i) == 0 then
			    if d.unique_get_hp_perc("fake" .. i) < 50 then
				d.purge_unique("fake" .. i)
				d.setf("fakedead" .. i, 1)
				d.notice("<Informacja> To nie ten kamien! ");
			    end
			end
		    end
		else
		    --d.clear_regen()
		    --d.regen_file("data/dungeon/deviltower5_regen.txt")
		    server_timer("devil_stone4_end", 5, get_server_timer_arg())
		    d.notice("<Informacja> Uda硂 si? Zabij wszystkie potwory na nastepnym");
		    d.notice("<Informacja> pietrze, aby zdobyc kamien otwarcia!")
		    clear_server_timer('devil_stone4_fail1', get_server_timer_arg())
		    clear_server_timer('devil_stone4_fail2', get_server_timer_arg())
		    clear_server_timer('devil_stone4_fail', get_server_timer_arg())
		end
	    else
		server_timer('devil_stone4_stop_timer', 1, get_server_timer_arg())
	    end
	end

	when devil_stone4_stop_timer.server_timer begin
	    clear_server_timer('devil_stone4_update', get_server_timer_arg())
	end

	when devil_stone4_end.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.setf("level", 5)
		d.setf("stone_count", 5)
		d.notice("<Informacja> Brawo, jeste?na 5 pi阾rze!")
		d.notice("<Informacja> Aby przej滄 na 6 pietro musisz zabi?")
		d.notice("<Informacja> wszystkie potwory, zdoby?Kamie?Otwarcia ")
		d.notice("<Informacja> i otworzy?piecz阠ie przed ko馽em czasu! ")
		d.jump_all(special.devil_tower[4][1], special.devil_tower[4][2])
		server_timer('devil_stone5_fail1', 5*60, get_server_timer_arg())
		clear_server_timer('devil_stone4_update', get_server_timer_arg())

		-- 5加膥尿瞷
		d.set_regen_file("data/dungeon/deviltower5_regen.txt")

		-- 5加ホ瞷
		d.spawn_mob(20073, 421, 452)
		d.spawn_mob(20073, 380, 460)
		d.spawn_mob(20073, 428, 414)
		d.spawn_mob(20073, 398, 392)
		d.spawn_mob(20073, 359, 426)
	    end
	end
	when devil_stone5_fail1.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 15 minut!")
		server_timer('devil_stone5_fail2', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone5_fail2.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 10 minut!")
		server_timer('devil_stone5_fail3', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone5_fail3.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 5 minut!")
		server_timer('devil_stone5_fail', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone5_fail.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Nie uda硂 si? zostaniecie wylogowani! ")
		d.exit_all()
	    end
	end

	--when devil_stone4.kill begin
	    --d.setf("level", 5)
	    --d.setf("stone_count", 4)
	    --d.clear_regen()
	    --d.regen_file("data/dungeon/deviltower5_regen.txt")
	    --d.jump_all_local(special.devil_tower[4][1], special.devil_tower[4][2])
	--end

	when kill with npc.get_race() == 1062 and pc.in_dungeon() and d.getf("level") == 5 begin
	    local KILL_COUNT_FOR_DROP_KEY = 50
	    --if is_test_server() then
		--KILL_COUNT_FOR_DROP_KEY = 1
	    --end
	    local n =d.getf("count") + 1
	    d.setf("count", n) 
	    if n == KILL_COUNT_FOR_DROP_KEY then
		-- 奔玛巴
		pc.give_item2(50084, 1)
		d.notice("<Informacja> "..pc.get_name().." podni髎?Kamie?Otwarcia. ")
		d.setf("count", 0)
	    end
	end
	when devil_stone5.take with item.vnum == 50084 begin
	    npc.purge()
	    item.remove()
	    d.setf("stone_count", d.getf("stone_count") - 1)
	    if d.getf("stone_count") <= 0 then
		d.setf("level", 6)
		d.clear_regen()
		d.regen_file("data/dungeon/deviltower6_regen.txt")

		d.notice("<Informacja> Brawo uda硂 si? Jeste?na 6 pi阾rze! ")
		d.notice("<Informacja> Zabij wszystkie potwory! ")
		d.jump_all(special.devil_tower[5][1], special.devil_tower[5][2])
		clear_server_timer('devil_stone5_fail1', get_server_timer_arg())
		clear_server_timer('devil_stone5_fail2', get_server_timer_arg())
		clear_server_timer('devil_stone5_fail3', get_server_timer_arg())
		clear_server_timer('devil_stone5_fail', get_server_timer_arg())
	    else
		d.notice("<Informacja> Pozosta砮 piecz阠ie: "..d.getf("stone_count"))
	    end
	end

	when devil_stone6.kill begin
	    -- 肚癳芬竧┮瓜
	    -- 玥秨砞穝芬竧
	    --d.jump_all(special.devil_tower[6][1], special.devil_tower[6][2])
	    d.kill_all()
	   -- d.set_warp_at_eliminate(3*60, 65, 5376+532, 512+596+4)
	    d.check_eliminated()
	    local reward_alchemist = {20074, 20075, 20076}
	    d.spawn_mob(reward_alchemist[number(1,3)], 425, 216);
	    d.setqf("can_refine", 1)
	end

	--------------------------------------
	-- パ秈7加笷8加ぇ玡
	--------------------------------------

	when 20074.chat."Chc?przej滄 dalej." with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 6 begin
		say_koral(""..mob_name(20074).."")
		say_cialo("Zostaniesz przeniesiony")
		say_cialo("na 7 pietro Wie縴 Demon體!")
		say_cialo("Lecz uwa縜j...")
		say_cialo("Tam nie b阣zie tak 砤two jak wczesniej! ")
		wait()
		if pc.level >=75 then
			say_koral("Informacja: ")
			say_cialo("Kazdy z graczy zostanie przeniesiony! ")
			timer("devil_jump_7", 6)
			return
		end
		say_koral("Informacja: ")
		say_cialo("Mozesz przejsc dalej! ")
		say("")
		say("")
		wait()
		pc.warp(590500, 110500)
		return
    end
	when 20075.chat."Chc?przej滄 dalej." with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 6 begin
		say_koral(""..mob_name(20075).."")
		say_cialo("Zostaniesz przeniesiony ")
		say_cialo("na 7 pietro Wie縴 Demon體! ")
		say_cialo("Lecz uwa縜j... ")
		say_cialo("Tam nie b阣zie tak 砤two jak wczesniej! ")
		wait()
		if pc.level >=75 then
			say_koral("Informacja: ")
			say_cialo("Kazdy z graczy zostanie przeniesiony! ")
			timer("devil_jump_7", 6)
			return
		end
		say_koral("Informacja: ")
		say_cialo("Mozesz przejsc dalej! ")
		say("")
		say("")
		wait()
		pc.warp(590500, 110500)
		return
    end
	when 20076.chat."Chc?przej滄 dalej." with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 6 begin
		say_koral(""..mob_name(20076).."")
		say_cialo("Zostaniesz przeniesiony")
		say_cialo("na 7 pietro Wie縴 Demon體!")
		say_cialo("Lecz uwa縜j...")
		say_cialo("Tam nie b阣zie tak 砤two jak wczesniej!")
		wait()
		if pc.level >=75 then
			say_koral("Informacja: ")
			say_cialo("Kazdy z graczy zostanie przeniesiony! ")
			timer("devil_jump_7", 6)
			return
		end
		say_koral("Informacja: ")
		say_cialo("Mozesz przejsc dalej! ")
		say("")
		say("")
		wait()
		pc.warp(590500, 110500)
		return
    end

   when devil_jump_7.timer begin
		d.clear_regen()

		d.spawn_mob(8018, 639, 658)
		d.spawn_mob(8018, 611, 637)
		d.spawn_mob(8018, 596, 674)
		d.spawn_mob(8018, 629, 670)

		d.setf("level", 7)

		d.jump_all(2048+590, 6656+638)
	end
	
	when kill with npc.get_race() == 8018 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		local cont = d.getf("7_stone_kill") + 1
		d.setf("7_stone_kill", cont)

		if cont >= 4 then
			d.setf("7_stone_kill", 0)
			d.set_regen_file("data/dungeon/deviltower7_regen.txt")
		end	
	end

	when kill with npc.get_race() == 8019 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		game.drop_item(30300, 1)
	end

	when 30300.use with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		pc.remove_item("30300", 1)

		local pct = number(1,10)

		if pct == 1 then
			-- 奔痷瓜
			game.drop_item(30302, 1)
			d.clear_regen()
		else
			-- 奔安瓜
			game.drop_item(30301, 1)
			
		end
	end

	when 30302.use with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		-- 肚癳8加
		say_koral("Informacja: ")
		say_cialo("Przeniesiesz si?na 8 pietro! ")
		pc.remove_item("30302", 1)
	    timer("devil_jump_8", 6)
		d.kill_all()
		d.clear_regen()
	end
						
	--------------------------------------------
	-- パ秈8加笷9加ぇ玡
	--------------------------------------------
	when devil_jump_8.timer begin
		d.setf("level", 8)
		d.jump_all(2048+590, 6656+403)
		d.set_regen_file("data/dungeon/deviltower8_regen.txt")
		d.spawn_mob(20366, 640, 460)
		local _count= pc.count_item(30302)-- 防痷艶娥
		pc.remove_item(30302,_count)
		
	end

	when kill with npc.get_race() == 1040 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 8 begin
		local pct1 = number(1, 5)
		if pct1 == 1 then
			local pct2 = number(1, 10)
			if pct2 == 1 then
				-- 奔痷玛巴
				game.drop_item(30304, 1)
			else
				-- 奔安玛巴
				game.drop_item(30303, 1)
			end
		else
			return
		end
	end

	when 20366.take with item.vnum == 30304 begin
		-- 9加秆埃
		d.notice("<Informacja> Zostaniecie przeniesieni na 9 pietro! ")
		npc.purge()
		d.kill_all()
		d.clear_regen()
		item.remove()
		timer("devil_jump_9", 6)
	end

	---------------------------------------------
	-- パ秈9加挡
	---------------------------------------------
	when devil_jump_9.timer begin
		d.setf("level", 9)
		d.jump_all(2048+590, 6656+155)
		d.spawn_mob(1093, 608, 220)
		d.regen_file("data/dungeon/deviltower9_regen.txt")
	end

	when kill with npc.get_race() == 1093 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		d.kill_all()
		d.notice("<Informacja> Zaraz przeniesiecie si?na 10 pi阾ro. ")
		timer("devil_end_jump", 30)
	end

	when devil_end_jump.timer begin
		d.setf("level", 10)
		d.jump_all(2048+590, 6656+155)
		pc.remove_item(30203, pc.count_item(30203))
		d.set_regen_file("data/dungeon/deviltower10_regen.txt")
		d.notice("<Informacja> Zdob筪焎ie 100 Kryszta丑w z Metin體 Zawi渃i, nast阷nie przeka縞ie je na Pomnik Su. ")
		d.notice("<Informacja> Z jednego metina mo縩a zdoby?od 4 do 12 Kryszta丑w! ")
	end
		
	when kill with npc.get_race() == 8040 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		local st = math.random(4, 12)
		if pc.countitem(30203) < 100 then
			pc.give_item2(30203, st)
			d.notice("<Informacja> "..pc.get_name().." otrzyma?zdoby?Kryszta硑! Ilo滄: "..st)
		else
			d.notice("<Informacja> Posiadasz ju?100 Kryszta丑w!")
		end
	end
	when 20361.take with item.vnum == 30203 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		if pc.countitem(30203) < 100 then
			d.notice("<Informacja> Nie posiadasz 100 Kryszta丑w! ")
		else
			d.kill_all()
			pc.remove_item(30203, pc.count_item(30203))
			d.jump_all(2048+590, 6656+403)
			d.regen_file("data/dungeon/deviltower11_regen.txt")
			d.notice("<Informacja> Witajcie na 11 pi阾rze! ")
			d.notice("<Informacja> Waszym ostatnim zadaniem jest zniszczenie Niebieskiej 宮ierci. Powodzenia! ")
		end
	end
	when kill with npc.get_race() == 1095 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		d.kill_all()
		d.notice("<Informacja> Za 60 sekund zostaniecie wyrzuceni z Wie縴! ")
		timer("devil_end_jumpx", 60)
	end
	
	when devil_end_jumpx.timer begin
		d.exit_all()
	end
end
end 

 

 

 

Komnata Smoka:

 

 

 

quest swiatyniasmoka begin
	state start begin
		when 30121.chat."Chcę zabić tego Smoka! " begin
			say_koral("Duch Sura: ")
			if get_time() < game.get_event_flag("klucz") then
				say_cialo("Komnata jest obecnie zajęta. ")
				say_cialo("Spróbuj ponownie później. ")
			elseif get_time() < game.get_event_flag("dostep") then
				say_cialo("Komnata jest obecnie zajęta. ")
				say_cialo("Spróbuj ponownie później. ")
			elseif get_time() > game.get_event_flag("dostep") then
				say_cialo("Jesteś pierwszym, który domaga się dostępu do")
				say_cialo("Świątyni Smoka. Wpuszczę cię, o ile posiadasz")
				say_cialo("wystarczającą ilość Krętych Kluczy. ")
				say_cialo("Pamiętaj również, że moc Kluczy wystarczy jedynie")
				say_cialo("na 30 minut. W przeciągu tego czasu musicie")
				say_cialo("pokonać Smoka!")
				local s = select("Jestem gotowy!", "Anuluj")
				if s == 1 then
							if pc.countitem(30179) < 3 then
								say_koral("Duch Sura:")
								say_cialo("Nie posiadasz 3 sztuk:")
								say_item_vnum(30179)
							elseif pc.countitem(30179) >= 3 then
								say_koral("Duch Sura: ")
								say_cialo("Posiadasz klucze, więc mogę Cię ")
								say_cialo("wpuścić do Świątyni Smoka. ")
								say_cialo("Powodzenia! ")
								wait()
								pc.remove_item(30179, 3)
								pc.setqf("pierwszy", 1)
								game.set_event_flag("klucz", get_time() + 300)
								game.set_event_flag("dostep", get_time() + 1800)
							d.join(2)
						end
					end
				end
			end
		when login with pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 and pc.in_dungeon() begin
			timer("koniec", 1800)
			timer("x3", 1500)
			timer("x2", 1200)
			timer("x", 900)
			timer("xx", 600)
			timer("xxx", 300)
			if pc.getqf("pierwszy") == 1 then
				pc.setqf("pierwszy", 0)
				d.spawn_mob(2493, 182, 174)
				d.spawn_mob(8031, 196, 181)
				d.spawn_mob(8032, 195, 165)
				d.spawn_mob(8033, 173, 163)
				d.spawn_mob(8034, 174, 186)
				d.regen_file("data/dungeon/swiatyniasmoka.txt")
				d.notice("<Informacja> Witaj w Świątyni Smoka!")
				d.notice("<Informacja> Pozostało 30 minut na zniszczenie Beran'a Setaou!")
			else
				notice("<Informacja> Witaj w Świątyni Smoka!")
			end
		end
		when xxx.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 25 minut.")
		end
		when xx.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 20 minut.")
		end
		when x.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 15 minut.")
		end
		when x2.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 10 minut.")
		end
		when x3.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 5 minut.")
		end
		when koniec.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Czas się skończył. Zostaniecie wyrzuceni ze Świątyni Smoka. ")
			d.exit_all()
		end
		when kill with npc.get_race() == 2493 and pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Udało Wam się pokonać Beran'a Setaou! ")
			d.notice("<Informacja> Za 30 sekund zostaniecie wyrzuceni z komnaty smoka. ")
			d.kill_all()
			timer("exitall", 30)
		end
		when exitall.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.exit_all()
		end
		when 30316.use with pc.is_gm() begin
			syschat("test1")
			game.set_event_flag("klucz", get_time() + 1)
			game.set_event_flag("dostep", get_time() + 1)
			syschat("test2")
		end
	end
end 

 

 

On chciał jakiś dungeon w Wieży Demonów, a nie wieże demonów... Czytanie ze zrozumieniem - 15%.

Wejdź na naszego FanPage'a i daj lajka, śledź nas na bieżąco!


Nowy serwer metin2, już wkrótce !


 


Link w profilu :)

Opublikowano

On chciał jakiś dungeon w Wieży Demonów, a nie wieże demonów... Czytanie ze zrozumieniem - 15%.

Wieża Demonów również odbywa się w tejże wieży i jest dungeonem :P

 

W DT można dołączyć też WW:

 

 

 

quest wymiar_wladcow begin
	state start begin
		when 20350.chat."Wymiar Władców" with pc.get_level()>=120 and pc.get_level()<=200 begin
					say_title("Strażnik Wymiaru Władców:")
					say("Ta Magiczna moc pozwala Twojej Postaci otworzyć ")
					say("bardzo tajemniczy Wymiar Władców, w którym musisz")
					say("pokonać każdego przeciwnika w najszybszym czasie.")
					say_red("Uwaga!")
					say_red("Aby wejść potrzebujesz 10.000.000 Yang!")
					say_red("i nie możesz byc w grupie!")
					say_reward("Możesz zakupić marmur i użyć go")
					say_reward("na Wymiarze Władców.")
					say("")
					wait()
					if pc.money>=10000000 and not party.is_party() then
					say_title("Strażnik Wymiaru Władców:")
					say("Posiadasz wystarczajacą ilość yang.")
					say("")
					say_reward("Jesteś gotowy?")
					local q=select("Jestem Gotów!", "To nie ten moment...")
						if q==1 then
						say_title("Strażnik Wymiaru Władców:")
						say("Zostaniesz przeniesiony do Wymiaru Władców.")
							pc.setqf("starcik", 1)
							pc.changemoney(-10000000)
							d.join(66)
						end
						end
						end
		when login with pc.in_dungeon() and pc.getqf("starcik") == 1 begin
		notice_in_map("Witaj w Wymiarze Władców...")
		timer("start2", 3)
		pc.setqf("starcik", 0)
		pc.setqf("starcik2", 1)
		affect.remove_good()
		end
		when start2.timer begin
		pc.setqf("starcik2", 1)
		d.new_jump_all(66, 2181, 7335)
		end
		when login with pc.getqf("starcik2") == 1 and pc.in_dungeon() begin
		timer("wymiar_2", 5)
		end
		when wymiar_2.timer begin
		pc.setqf("starcik2", 0)
		notice_in_map("No to zaczynamy! Oto Best Kapitan!")
		mob.spawn(591, 155, 683, 1, 1, 1)
		d.jump_all(2181, 7335)
		pc.setqf("time1", get_time())
		end
		when 591.kill with pc.in_dungeon() begin
		notice_in_map("Best Kapitan został pokonany!")
		timer("wymiar_3", 5)
		end
		when wymiar_3.timer begin
		notice_in_map("No to zaczynamy! Oto Lord Małp!")
		d.jump_all(2181, 7335)
		mob.spawn(5163, 155, 683, 1, 1, 1)
		end
		when 5163.kill with pc.in_dungeon() begin
		notice_in_map("Lord Małp został Pokonany!")
		timer("wymiar_4", 5)
		end
		when wymiar_4.timer begin
		mob.spawn(691, 155, 683, 1, 1, 1)
		notice_in_map("No to zaczynamy! Oto Wódz Orków!")
		d.jump_all(2181, 7335)
		end
		when 691.kill with pc.in_dungeon() begin
		notice_in_map("Wódz Orków został pokonany!")
		timer("wymiar_5", 5)
		end
		when wymiar_5.timer begin
		mob.spawn(2091, 155, 683, 1, 1, 1)
		notice_in_map("No to zaczynamy! Oto Królowa Pajaków!")
		d.jump_all(2181, 7335)
		end
		when 2091.kill with pc.in_dungeon() begin
		notice_in_map("Królowa Pajaków została pokonana!")
		timer("wymiar_6", 5)
		end
		when wymiar_6.timer begin
		mob.spawn(5002, 155, 683, 1, 1, 1)
		notice_in_map("No to zaczynamy! Oto ostatni przeciwnik! Hae-Tae!")
		d.jump_all(2181, 7335)
		end
		when 5002.kill with pc.in_dungeon() begin
		notice_in_map("Pomyslnie ukończyłeś wyzwanie Wymiaru Władców!")
		notice_in_map("Za 10 sekund zostaniesz przeniesiony do Pierwszego Miasta!")
		timer("wymiar_exit", 10)
		pc.remove_polymorph()
		pc.setqf("czas", 1)
		pc.setqf("time2", get_time())
		end
		when wymiar_exit.timer begin
		warp_to_village()
		end
		when login with pc.getqf("czas") == 1 begin
		pc.setqf("czas", 0)
		pc.remove_polymorph()
		local x = pc.getqf("time1")
		local y = pc.getqf("time2")
		local s = pc.setqf("time3", y-x)
		local czas = pc.getqf("time3")
		local nejm = pc.get_name()
		say_title("Wymiar Władców - serwer.pl")
		say("Gratulacje "..nejm.."!")
		say("Twój czas to: "..czas.." sekund.")
		say("")
		say_reward("Walcz o najlepszy czas w Wymiarze Władców!")
		say_reward("Nie daj się konkurencji...")
		say_reward("Mogło być lepiej?")
		notice_all("[serwer.PL] "..pc.get_name().." ukończył Wymiar Władców z czasem "..czas.." Sekund !")
		affect.remove()
		end
		end
		end 

 

 

727881401622271220780.jpeg
Opublikowano

DT:

 

 

 

quest deviltower_zone begin
    state start begin
	when login begin
	    if pc.get_map_index() == 66 then
		-- 獶1加, 癳.
		-- 糷计 絛瞅
		-- 1加  88  577  236 737
		-- 2加  91  343  238 504
		-- 3加 104  107  248 269
		if pc.get_x() < 2048+88 or pc.get_y() < 6656+577 or pc.get_x() > 2048+236 or pc.get_y() > 6656+737 then
		    pc.warp((5376+532)*100, (512+596+4)*100, 65)
		end
		pc.set_warp_location(65, 5376+532, 512+596+4)
	    elseif pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then
		pc.set_warp_location(65, 5376+532, 512+596+4)
	    end
	end
	when deviltower_man.chat."Wie縜 Demon體" begin
	    if pc.get_level() < 40 then
		say_koral("Stra縩ik Wie縴 Demon體: ")
		say_cialo(locale.deviltower_man_say_you_cant)
	    else
		say_koral("Stra縩ik Wie縴 Demon體: ")
		say_cialo(locale.deviltower_man_say)
		local s = select(locale.deviltower_enter,locale.deviltower_no_enter)
		if s == 1 then
		    -- warp into!
		    pc.warp(216500,727000)
		end
	    end
	end
	when kill with npc.get_race() == 8015 and pc.get_map_index() == 66 begin
	    timer("devil_stone1_1", 6)
	end
	when devil_stone1_1.timer  begin
		local mapto7= pc.count_item(30302)  -- 防ぃ琌痷艶娥
		pc.remove_item(30302,mapto7)

		local boxto7= pc.count_item(30300)  -- 防ぃ琌ぃ絚
		pc.remove_item(30300,boxto7)

	    d.new_jump_all(66, special.devil_tower[1][1], special.devil_tower[1][2])
	    d.regen_file("data/dungeon/deviltower2_regen.txt")
	    d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[2][1], special.devil_tower[2][2], "data/dungeon/deviltower3_regen.txt")
	end
	--when devil_stone2.kill begin
	--d.jump_all_local(special.devil_tower[2][1], special.devil_tower[2][2])
	--end
	when devil_stone3.kill begin
	    --d.jump_all_local(special.devil_tower[3][1], special.devil_tower[3][2])
	    --d.set_exit_all_at_eliminate(6)
	    --d.set_warp_at_eliminate(6, d.get_map_index(), 100, 100)
	    --d.set_warp_at_eliminate(4, 65, 5376+532, 512+596+4)
	    d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[3][1], special.devil_tower[3][2], "data/dungeon/deviltower4_regen.txt")
	    d.check_eliminated()
	    --d.exit_all()
	end
	function get_4floor_stone_pos()
	    local positions = {
		{368, 629},
		{419, 630},
		{428, 653},
		{422, 679},
		{395, 689},
		{369, 679},
		{361, 658},
	    }
	    for i = 1, 6 do
		local j = number(i, 7)
		if i != j then
		    local t = positions[i];
		    positions[i] = positions[j];
		    positions[j] = t;
		end
	    end
	    --for i = 1, 7 do
	--	positions[i][1] = positions[i][1] * 100
	--	positions[i][2] = positions[i][2] * 100
	 --   end
	    return positions
	end
	when kill with npc.get_race() == 8016 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
	    d.setf("level", 4)
	    -- 瞷秖┣の籹硑痷ホ繷㎝安ホ繷
	    --d.regen_file("data/dungeon/deviltower4_regen.txt")
	    local positions = deviltower_zone.get_4floor_stone_pos()
	    for i = 1, 6 do
		chat(positions[i][1], positions[i][2])
		d.set_unique("fake" .. i , d.spawn_mob(8017, positions[i][1], positions[i][2]))
	    end
	    chat(positions[7][1], positions[7][2])
	    local vid = d.spawn_mob(8017, positions[7][1], positions[7][2])
	    chat(vid)
	    d.set_unique("real", vid)
	    server_loop_timer('devil_stone4_update', 10, pc.get_map_index())
	    server_timer('devil_stone4_fail1', 5*60, pc.get_map_index())

	    d.notice("<Informacja> Brawo, Uda硂 si?Tobie");
	    d.notice("<Informacja> zniszczyc kamien metin!");
	    d.notice("<Informacja> Macie 15 minut zanim zostaniecie wylogowani.");
	    d.notice("<Informacja> Spieszcie si?");
	end

	when devil_stone4_fail1.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 10 minut!")
		server_timer('devil_stone4_fail2', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone4_fail2.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 5 minut!")
		server_timer('devil_stone4_fail', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone4_fail.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Nie uda硂 si? zostaniecie wylogowani! ")
		d.exit_all()
		clear_server_timer('devil_stone4_update', get_server_timer_arg())
	    end
	end

	when devil_stone4_update.server_timer begin
	    if d.select(get_server_timer_arg()) then
		if not d.is_unique_dead("real") then
		    for i = 1, 6 do
			if d.getf("fakedead" .. i) == 0 then
			    if d.unique_get_hp_perc("fake" .. i) < 50 then
				d.purge_unique("fake" .. i)
				d.setf("fakedead" .. i, 1)
				d.notice("<Informacja> To nie ten kamien! ");
			    end
			end
		    end
		else
		    --d.clear_regen()
		    --d.regen_file("data/dungeon/deviltower5_regen.txt")
		    server_timer("devil_stone4_end", 5, get_server_timer_arg())
		    d.notice("<Informacja> Uda硂 si? Zabij wszystkie potwory na nastepnym");
		    d.notice("<Informacja> pietrze, aby zdobyc kamien otwarcia!")
		    clear_server_timer('devil_stone4_fail1', get_server_timer_arg())
		    clear_server_timer('devil_stone4_fail2', get_server_timer_arg())
		    clear_server_timer('devil_stone4_fail', get_server_timer_arg())
		end
	    else
		server_timer('devil_stone4_stop_timer', 1, get_server_timer_arg())
	    end
	end

	when devil_stone4_stop_timer.server_timer begin
	    clear_server_timer('devil_stone4_update', get_server_timer_arg())
	end

	when devil_stone4_end.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.setf("level", 5)
		d.setf("stone_count", 5)
		d.notice("<Informacja> Brawo, jeste?na 5 pi阾rze!")
		d.notice("<Informacja> Aby przej滄 na 6 pietro musisz zabi?")
		d.notice("<Informacja> wszystkie potwory, zdoby?Kamie?Otwarcia ")
		d.notice("<Informacja> i otworzy?piecz阠ie przed ko馽em czasu! ")
		d.jump_all(special.devil_tower[4][1], special.devil_tower[4][2])
		server_timer('devil_stone5_fail1', 5*60, get_server_timer_arg())
		clear_server_timer('devil_stone4_update', get_server_timer_arg())

		-- 5加膥尿瞷
		d.set_regen_file("data/dungeon/deviltower5_regen.txt")

		-- 5加ホ瞷
		d.spawn_mob(20073, 421, 452)
		d.spawn_mob(20073, 380, 460)
		d.spawn_mob(20073, 428, 414)
		d.spawn_mob(20073, 398, 392)
		d.spawn_mob(20073, 359, 426)
	    end
	end
	when devil_stone5_fail1.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 15 minut!")
		server_timer('devil_stone5_fail2', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone5_fail2.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 10 minut!")
		server_timer('devil_stone5_fail3', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone5_fail3.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Pozosta硂 5 minut!")
		server_timer('devil_stone5_fail', 5*60, get_server_timer_arg())
	    end
	end

	when devil_stone5_fail.server_timer begin
	    if d.select(get_server_timer_arg()) then
		d.notice("<Informacja> Nie uda硂 si? zostaniecie wylogowani! ")
		d.exit_all()
	    end
	end

	--when devil_stone4.kill begin
	    --d.setf("level", 5)
	    --d.setf("stone_count", 4)
	    --d.clear_regen()
	    --d.regen_file("data/dungeon/deviltower5_regen.txt")
	    --d.jump_all_local(special.devil_tower[4][1], special.devil_tower[4][2])
	--end

	when kill with npc.get_race() == 1062 and pc.in_dungeon() and d.getf("level") == 5 begin
	    local KILL_COUNT_FOR_DROP_KEY = 50
	    --if is_test_server() then
		--KILL_COUNT_FOR_DROP_KEY = 1
	    --end
	    local n =d.getf("count") + 1
	    d.setf("count", n) 
	    if n == KILL_COUNT_FOR_DROP_KEY then
		-- 奔玛巴
		pc.give_item2(50084, 1)
		d.notice("<Informacja> "..pc.get_name().." podni髎?Kamie?Otwarcia. ")
		d.setf("count", 0)
	    end
	end
	when devil_stone5.take with item.vnum == 50084 begin
	    npc.purge()
	    item.remove()
	    d.setf("stone_count", d.getf("stone_count") - 1)
	    if d.getf("stone_count") <= 0 then
		d.setf("level", 6)
		d.clear_regen()
		d.regen_file("data/dungeon/deviltower6_regen.txt")

		d.notice("<Informacja> Brawo uda硂 si? Jeste?na 6 pi阾rze! ")
		d.notice("<Informacja> Zabij wszystkie potwory! ")
		d.jump_all(special.devil_tower[5][1], special.devil_tower[5][2])
		clear_server_timer('devil_stone5_fail1', get_server_timer_arg())
		clear_server_timer('devil_stone5_fail2', get_server_timer_arg())
		clear_server_timer('devil_stone5_fail3', get_server_timer_arg())
		clear_server_timer('devil_stone5_fail', get_server_timer_arg())
	    else
		d.notice("<Informacja> Pozosta砮 piecz阠ie: "..d.getf("stone_count"))
	    end
	end

	when devil_stone6.kill begin
	    -- 肚癳芬竧┮瓜
	    -- 玥秨砞穝芬竧
	    --d.jump_all(special.devil_tower[6][1], special.devil_tower[6][2])
	    d.kill_all()
	   -- d.set_warp_at_eliminate(3*60, 65, 5376+532, 512+596+4)
	    d.check_eliminated()
	    local reward_alchemist = {20074, 20075, 20076}
	    d.spawn_mob(reward_alchemist[number(1,3)], 425, 216);
	    d.setqf("can_refine", 1)
	end

	--------------------------------------
	-- パ秈7加笷8加ぇ玡
	--------------------------------------

	when 20074.chat."Chc?przej滄 dalej." with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 6 begin
		say_koral(""..mob_name(20074).."")
		say_cialo("Zostaniesz przeniesiony")
		say_cialo("na 7 pietro Wie縴 Demon體!")
		say_cialo("Lecz uwa縜j...")
		say_cialo("Tam nie b阣zie tak 砤two jak wczesniej! ")
		wait()
		if pc.level >=75 then
			say_koral("Informacja: ")
			say_cialo("Kazdy z graczy zostanie przeniesiony! ")
			timer("devil_jump_7", 6)
			return
		end
		say_koral("Informacja: ")
		say_cialo("Mozesz przejsc dalej! ")
		say("")
		say("")
		wait()
		pc.warp(590500, 110500)
		return
    end
	when 20075.chat."Chc?przej滄 dalej." with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 6 begin
		say_koral(""..mob_name(20075).."")
		say_cialo("Zostaniesz przeniesiony ")
		say_cialo("na 7 pietro Wie縴 Demon體! ")
		say_cialo("Lecz uwa縜j... ")
		say_cialo("Tam nie b阣zie tak 砤two jak wczesniej! ")
		wait()
		if pc.level >=75 then
			say_koral("Informacja: ")
			say_cialo("Kazdy z graczy zostanie przeniesiony! ")
			timer("devil_jump_7", 6)
			return
		end
		say_koral("Informacja: ")
		say_cialo("Mozesz przejsc dalej! ")
		say("")
		say("")
		wait()
		pc.warp(590500, 110500)
		return
    end
	when 20076.chat."Chc?przej滄 dalej." with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 6 begin
		say_koral(""..mob_name(20076).."")
		say_cialo("Zostaniesz przeniesiony")
		say_cialo("na 7 pietro Wie縴 Demon體!")
		say_cialo("Lecz uwa縜j...")
		say_cialo("Tam nie b阣zie tak 砤two jak wczesniej!")
		wait()
		if pc.level >=75 then
			say_koral("Informacja: ")
			say_cialo("Kazdy z graczy zostanie przeniesiony! ")
			timer("devil_jump_7", 6)
			return
		end
		say_koral("Informacja: ")
		say_cialo("Mozesz przejsc dalej! ")
		say("")
		say("")
		wait()
		pc.warp(590500, 110500)
		return
    end

   when devil_jump_7.timer begin
		d.clear_regen()

		d.spawn_mob(8018, 639, 658)
		d.spawn_mob(8018, 611, 637)
		d.spawn_mob(8018, 596, 674)
		d.spawn_mob(8018, 629, 670)

		d.setf("level", 7)

		d.jump_all(2048+590, 6656+638)
	end
	
	when kill with npc.get_race() == 8018 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		local cont = d.getf("7_stone_kill") + 1
		d.setf("7_stone_kill", cont)

		if cont >= 4 then
			d.setf("7_stone_kill", 0)
			d.set_regen_file("data/dungeon/deviltower7_regen.txt")
		end	
	end

	when kill with npc.get_race() == 8019 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		game.drop_item(30300, 1)
	end

	when 30300.use with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		pc.remove_item("30300", 1)

		local pct = number(1,10)

		if pct == 1 then
			-- 奔痷瓜
			game.drop_item(30302, 1)
			d.clear_regen()
		else
			-- 奔安瓜
			game.drop_item(30301, 1)
			
		end
	end

	when 30302.use with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		-- 肚癳8加
		say_koral("Informacja: ")
		say_cialo("Przeniesiesz si?na 8 pietro! ")
		pc.remove_item("30302", 1)
	    timer("devil_jump_8", 6)
		d.kill_all()
		d.clear_regen()
	end
						
	--------------------------------------------
	-- パ秈8加笷9加ぇ玡
	--------------------------------------------
	when devil_jump_8.timer begin
		d.setf("level", 8)
		d.jump_all(2048+590, 6656+403)
		d.set_regen_file("data/dungeon/deviltower8_regen.txt")
		d.spawn_mob(20366, 640, 460)
		local _count= pc.count_item(30302)-- 防痷艶娥
		pc.remove_item(30302,_count)
		
	end

	when kill with npc.get_race() == 1040 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 and d.getf("level") == 8 begin
		local pct1 = number(1, 5)
		if pct1 == 1 then
			local pct2 = number(1, 10)
			if pct2 == 1 then
				-- 奔痷玛巴
				game.drop_item(30304, 1)
			else
				-- 奔安玛巴
				game.drop_item(30303, 1)
			end
		else
			return
		end
	end

	when 20366.take with item.vnum == 30304 begin
		-- 9加秆埃
		d.notice("<Informacja> Zostaniecie przeniesieni na 9 pietro! ")
		npc.purge()
		d.kill_all()
		d.clear_regen()
		item.remove()
		timer("devil_jump_9", 6)
	end

	---------------------------------------------
	-- パ秈9加挡
	---------------------------------------------
	when devil_jump_9.timer begin
		d.setf("level", 9)
		d.jump_all(2048+590, 6656+155)
		d.spawn_mob(1093, 608, 220)
		d.regen_file("data/dungeon/deviltower9_regen.txt")
	end

	when kill with npc.get_race() == 1093 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		d.kill_all()
		d.notice("<Informacja> Zaraz przeniesiecie si?na 10 pi阾ro. ")
		timer("devil_end_jump", 30)
	end

	when devil_end_jump.timer begin
		d.setf("level", 10)
		d.jump_all(2048+590, 6656+155)
		pc.remove_item(30203, pc.count_item(30203))
		d.set_regen_file("data/dungeon/deviltower10_regen.txt")
		d.notice("<Informacja> Zdob筪焎ie 100 Kryszta丑w z Metin體 Zawi渃i, nast阷nie przeka縞ie je na Pomnik Su. ")
		d.notice("<Informacja> Z jednego metina mo縩a zdoby?od 4 do 12 Kryszta丑w! ")
	end
		
	when kill with npc.get_race() == 8040 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		local st = math.random(4, 12)
		if pc.countitem(30203) < 100 then
			pc.give_item2(30203, st)
			d.notice("<Informacja> "..pc.get_name().." otrzyma?zdoby?Kryszta硑! Ilo滄: "..st)
		else
			d.notice("<Informacja> Posiadasz ju?100 Kryszta丑w!")
		end
	end
	when 20361.take with item.vnum == 30203 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		if pc.countitem(30203) < 100 then
			d.notice("<Informacja> Nie posiadasz 100 Kryszta丑w! ")
		else
			d.kill_all()
			pc.remove_item(30203, pc.count_item(30203))
			d.jump_all(2048+590, 6656+403)
			d.regen_file("data/dungeon/deviltower11_regen.txt")
			d.notice("<Informacja> Witajcie na 11 pi阾rze! ")
			d.notice("<Informacja> Waszym ostatnim zadaniem jest zniszczenie Niebieskiej 宮ierci. Powodzenia! ")
		end
	end
	when kill with npc.get_race() == 1095 and pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
		d.kill_all()
		d.notice("<Informacja> Za 60 sekund zostaniecie wyrzuceni z Wie縴! ")
		timer("devil_end_jumpx", 60)
	end
	
	when devil_end_jumpx.timer begin
		d.exit_all()
	end
end
end 

 

 

 

Komnata Smoka:

 

 

 

quest swiatyniasmoka begin
	state start begin
		when 30121.chat."Chcę zabić tego Smoka! " begin
			say_koral("Duch Sura: ")
			if get_time() < game.get_event_flag("klucz") then
				say_cialo("Komnata jest obecnie zajęta. ")
				say_cialo("Spróbuj ponownie później. ")
			elseif get_time() < game.get_event_flag("dostep") then
				say_cialo("Komnata jest obecnie zajęta. ")
				say_cialo("Spróbuj ponownie później. ")
			elseif get_time() > game.get_event_flag("dostep") then
				say_cialo("Jesteś pierwszym, który domaga się dostępu do")
				say_cialo("Świątyni Smoka. Wpuszczę cię, o ile posiadasz")
				say_cialo("wystarczającą ilość Krętych Kluczy. ")
				say_cialo("Pamiętaj również, że moc Kluczy wystarczy jedynie")
				say_cialo("na 30 minut. W przeciągu tego czasu musicie")
				say_cialo("pokonać Smoka!")
				local s = select("Jestem gotowy!", "Anuluj")
				if s == 1 then
							if pc.countitem(30179) < 3 then
								say_koral("Duch Sura:")
								say_cialo("Nie posiadasz 3 sztuk:")
								say_item_vnum(30179)
							elseif pc.countitem(30179) >= 3 then
								say_koral("Duch Sura: ")
								say_cialo("Posiadasz klucze, więc mogę Cię ")
								say_cialo("wpuścić do Świątyni Smoka. ")
								say_cialo("Powodzenia! ")
								wait()
								pc.remove_item(30179, 3)
								pc.setqf("pierwszy", 1)
								game.set_event_flag("klucz", get_time() + 300)
								game.set_event_flag("dostep", get_time() + 1800)
							d.join(2)
						end
					end
				end
			end
		when login with pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 and pc.in_dungeon() begin
			timer("koniec", 1800)
			timer("x3", 1500)
			timer("x2", 1200)
			timer("x", 900)
			timer("xx", 600)
			timer("xxx", 300)
			if pc.getqf("pierwszy") == 1 then
				pc.setqf("pierwszy", 0)
				d.spawn_mob(2493, 182, 174)
				d.spawn_mob(8031, 196, 181)
				d.spawn_mob(8032, 195, 165)
				d.spawn_mob(8033, 173, 163)
				d.spawn_mob(8034, 174, 186)
				d.regen_file("data/dungeon/swiatyniasmoka.txt")
				d.notice("<Informacja> Witaj w Świątyni Smoka!")
				d.notice("<Informacja> Pozostało 30 minut na zniszczenie Beran'a Setaou!")
			else
				notice("<Informacja> Witaj w Świątyni Smoka!")
			end
		end
		when xxx.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 25 minut.")
		end
		when xx.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 20 minut.")
		end
		when x.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 15 minut.")
		end
		when x2.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 10 minut.")
		end
		when x3.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Pozostało 5 minut.")
		end
		when koniec.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Czas się skończył. Zostaniecie wyrzuceni ze Świątyni Smoka. ")
			d.exit_all()
		end
		when kill with npc.get_race() == 2493 and pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.notice("<Informacja> Udało Wam się pokonać Beran'a Setaou! ")
			d.notice("<Informacja> Za 30 sekund zostaniecie wyrzuceni z komnaty smoka. ")
			d.kill_all()
			timer("exitall", 30)
		end
		when exitall.timer with pc.in_dungeon() and pc.get_map_index() >= 20000 and pc.get_map_index() < 30000 begin
			d.exit_all()
		end
		when 30316.use with pc.is_gm() begin
			syschat("test1")
			game.set_event_flag("klucz", get_time() + 1)
			game.set_event_flag("dostep", get_time() + 1)
			syschat("test2")
		end
	end
end 

 

 

Komnata Smoka wogóle nie działa.

SS:

 

 

20859350307827662025.png

 

 

 

A po wgraniu WW , wogole tak jak by jej nie bylo ;x

Nic nie ma u NPC.

69737149773342596741.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...