Bug quests / lua

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
CRiQ
Nivel 3

Nivel 3
Mesaje: 375
Membru din: 03 Ian 2019, 12:55
Server: BOMBĂ
Regat: Shinsoo
Aprecieri: 217  
Mulţumiri: 465  
Discord: Copiază ID
Medalii

*Problemă/Întrebare:Mai mult intrebare
Tipologie server:pvm
*Resursă folosită: quest de la turci cu razador pe un layer
*ServerFiles utilizat: clean
*Syserr:
Poză:
*Detalii suplimentare:

Salut! De ceva timp ma confrunt cu problema asta pe parte de questuri. Mentionez ca folderul object a fost curatat complet inainte de a da ./qc la lua. Deci a fost un fresh install la quest. Dupa cum se vede si in video, dau ./qc la quest, reload q, chiar si reboot, dar nu se intampla absolut nimic dupa. Pot sa apas mult si bine pe el. Stie cineva cum as putea rezolva? Las si questul aici. (P.S, sunt praf la parte de questuri)

Cod: Selectaţi tot

quest muratingotu_dungeon begin
	state start begin
		function setting()
		return {
				["base"]={["x"] = 3072  , ["y"]= 12032 ,},
				["bossroom_entry_pos"] = {8109,6867},
				["boss_pos"] = {686,637},
				["based"]				=		{["x"] = 550, ["y"]= 536},
				["floor_1"]				=		{["x"] = 87, ["y"] = 73},
				["floor_2"]				=		{["x"] = 256, ["y"] = 1145},
				["floor_3"]				=		{["x"] = 1115, ["y"] = 1076},
				["floor_4"]				=		{["x"] = 703, ["y"] = 385},
				["floor_5"]				=		{["x"] = 1000, ["y"] = 737},
				["final_boss"]		=		{["x"] = 74, ["y"] = 1103},
				["floor7_entry"] = {["x"] = 73, ["y"] = 1156},
				["devil_emperor"] = 2598,
				["devil_emperor_pos"] = {74,1103},
			}
		end

		when login begin
			if (pc.get_map_index() >= 2350000 and pc.get_map_index() < 2359999) then
				if pc.getqf("join_dungsasas") > 0 then
					pc.setqf("join_dungsasas", 0)
					d.zodiac_notice_clear()
					d.zodiac_notice("Merhaba Milat2'ye Özel Direkt Razador Katýnda Baþlamýþ Bulunuyorsunuz !")
					d.setqf2("gir_dungsas","last_exit_time", get_global_time())
					d.setf("level", 1)
					server_loop_timer('murat4', 5, d.get_map_index())
					server_loop_timer("muratingotu_dungeon_end_first", 3, d.get_map_index())
				end
			end

			local idx = pc.get_map_index()
			if idx >= (235 * 10000) and idx < ((235 + 1) * 10000) then
				local level = d.getf("level")
			end

			if idx == 235 then
				pc.setf("gir_dungsas","last_exit_time", get_global_time())
				pc.warp(600400,706700)
			end
		end

		when logout begin
			local idx = pc.get_map_index()
			if idx == 235 or idx >= (235 * 10000) and idx < ((235 + 1) * 10000) then
				pc.setf("murat","dungeon_turn",1)
			end
		end

		when 20394.chat."Razadör Kulesi(Bireysel) " begin
			if party.is_party() then
				say_title_center("Razadör:")
				say_reward_center("Bu zindana grup halinde giremezsin")
				say_reward_center("lütfen önce bulundugun grupdan ayril !")
				return
			end

			say_title_center(mob_name(20394))
			say_center("")
			say_center("")
			say_center("")
			say_center("")
			say_center("")
			say_center("Razadör karanlýk güçlerin ele")
			say_center("Geçirdiði Bir Diyardýr. Giriþ yapabilmek")
			say_center("için 100. seviyenin üzerinde olman gerekiyor.")
			say_center("")
			say_item(item_name(71175),71175, "")
			wait()
			say_title_center(mob_name(20394))
			say_center("")
			say_center("")
			say_center("")
			say_center("")
			say_center("")
			say_center(string.format("%s:", item_name(71175)))
			say_center("Giriþ yaptýðýnda eþya yok olacak. ")
			say_center("")
			say_reward_center("Devam etmek istiyor musun?")
			say_center("")
			local s = select("Evet", "Hayýr")
			if s == 1 then
				if not pc.can_warp() then
					say_title_center(mob_name(20394))
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("Henüz ýþýnlanamazsýn.")
					say_center("")
					return
				end

				if get_time() < pc.getqf("player_amsss_65") then
					say_title_center(mob_name(20394))
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("Soguma süren henüz dolmadi !")
					say_center("Kalan süre: "..dungeon_get_duration(pc.getqf("player_amsss_65") - get_global_time()).."")
					return
				end

				if pc.get_level() < 100 or pc.get_level() > 120 then
					say_title_center(mob_name(20394))
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("Giris yapmak için seviyen yetersiz.")
					say_center(string.format("Minimum Seviye: %d.",100))
					say_center(string.format("Maksimum Seviye: %d.",120))
					return
				end	
				
				if pc.count_item(71175) < 1 then
					say_title_center(mob_name(20394))
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("Envanterinde yeterli miktarda yok:")
					say_reward_center(string.format("%s.", item_name(71175)))
					say_center("")
					return
				end
				if game.get_event_flag("murat_dung_close") == 1 then
					say_title_center(mob_name(20394))
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("")
					say_center("Razador Henüz Aktif Deðil.")
					say_center("")
					return
				else
					pc.setqf("player_amsss_65", get_time()+60*60*1)
					pc.remove_item(71175, 1)
					pc.setqf("join_dungsasas", 1)
					d.new_jump(235, 8112 * 100, 6766 * 100)
				end
			end
		end
		
		when 20394.chat."Süre sýfýrla " with (game.get_event_flag("gir_dungsas_time") == 1) begin
			local select_timer = select("Sýfýrla", "Sýfýrlama")
			if select_timer == 1 then
				pc.setqf("player_amsss_65", 0)
			end
		end

		when muratingotu_dungeon_end_first.server_timer begin
			if d.select(get_server_timer_arg()) then
				local setting = muratingotu_dungeon.setting()
				d.spawn_mob(6091,setting.boss_pos[1],setting.boss_pos[2])
				d.zodiac_notice_clear()
				d.zodiac_notice("Azraili Yok Ederek Bu Savaþý Kazanabilirsin !")
				clear_server_timer("muratingotu_dungeon_end_first",d.get_map_index())
			end	
		end

		when kill with npc.get_race() == 6091 and pc.get_map_index() >= 2350000 and pc.get_map_index() < 2359999 and d.getf("level") == 1 begin
			timer("exitmsh", 1*60)
			d.zodiac_notice_clear()
			d.zodiac_notice("Tebrikler Razadör'ü tamamladýnýz 1 dakika içerisinde dýþarý gönderileceksin.")
		end

		when murat4.server_timer begin
			if d.select(get_server_timer_arg()) then
				d.zodiac_notice_clear()
				d.zodiac_notice("Zindaný tamamlamak için 15 dakika vaktin kaldý.")
				server_loop_timer('murat5', 10*60,d.get_map_index())
				clear_server_timer("murat4",d.get_map_index())
			end
		end
		when murat5.server_timer begin
			if d.select(get_server_timer_arg()) then
				d.zodiac_notice_clear()
				d.zodiac_notice("Zindaný tamamlamak için 5 dakika vaktin kaldý.")
				server_loop_timer('murat6', 4*60,d.get_map_index())
				clear_server_timer("murat5",d.get_map_index())
			end
		end

		when murat6.server_timer begin
			if d.select(get_server_timer_arg()) then
				d.zodiac_notice_clear()
				d.zodiac_notice("Zindaný tamamlamak için 1 dakika vaktin kaldý.")
				server_loop_timer('muratend', 60,d.get_map_index())
				clear_server_timer("murat6",d.get_map_index())
			end
		end
		when muratend.server_timer begin
			if d.select(get_server_timer_arg()) then
				d.zodiac_notice_clear()
				d.zodiac_notice("Zindaný tamamlamakta baþarýsýz oldun. 10 saniye içerisinde dýþarý ýþýnlanýyorsun.")
				server_loop_timer('muratfail', 10,d.get_map_index())
				clear_server_timer("muratend",d.get_map_index())
			end
		end
		when muratfail.server_timer begin
			if d.select(get_server_timer_arg()) then
				clear_server_timer("muratfail",d.get_map_index())
				pc.go_home()
			end
		end

		when exitmsh.timer begin
			d.setqf2("gir_dungsas","last_exit_time", get_global_time())
			pc.go_home()
		end
	end
end


Afișează semnătura
Avatar utilizator
Alichen.
Nivel 1

Nivel 1
Mesaje: 51
Membru din: 22 Iun 2021, 22:55
Regat: Chunjo
Aprecieri: 69  
Mulţumiri: 438  
Discord: Copiază ID
Medalii

Ia questu' dintr.un svf pvm, cred ca e în elysium
Pentru acest mesaj, Alichen. for the post:
CRiQ
Avatar utilizator
[Mafia83]
Membru Club

Membru Club
Mesaje: 777
Membru din: 24 Feb 2016, 20:32
Server: Metin2KGB
Regat: Jinno
Aprecieri: 279  
Mulţumiri: 2287  
Discord: Copiază ID
 Contact:
Medalii

Ar fi mai multe variante la problema ta.
1. Verifica daca ai adaugat indexul mapei respective in ch1/core1/config.txt/map_allow.
2. Verifica sa ai bagate toate functiile in quest_function
3. Incearca alt quest din alt svf uite aici unul pe care il folosesc eu.
Aici ai questul gardianului de la intrare.

Cod: Selectaţi tot

quest intrare_porti begin
	state start begin
		when 20350.chat."Intrare Portile Iadului" begin
			say_title("Paznic Portile Iadului")
			say("")
         	       say("Dumnezeul tuturor demonilor, Sung Mahi este trezit") 
	       	say("aproape de sfârsitul omenirii! Cu toate acestea,") 
	       	say("puterea sa distructivă din privirea ochilor este") 
	       	say("slăbită.Dar supusii lui nu se vor odihni până ") 
	       	say("când stăpânul lor va creste în mărime completă ") 
	       	say("a acestei lumi!") 
			say("")
			say_reward("Vrei să încerci?")
			say("")
			local a = select("Da", "Nu")
			if a == 1 then
			if pc.get_level() >= 95 and pc.get_level() <= 120 then
			say_title("Paznic Portile Iadului")
			say("")
      		       say("Urmasul său credincios Razador, conducător de foc,") 
         	       say("are sarcina de a elibera legendarul Dragon Rosu din") 
        	       say("temnita lui, dacă va reusi, el deschide calea lui") 
    	              say("Sung Mahi la putere.") 
      		       say("") 				
			say("")
			wait()
			pc.warp(742400,614400)
			elseif a == 2 then
			say_title("Paznic Portile Iadului")
			say("")
			say("Deci.. esti sigur? Vrei să mergi...")
			else
			say_title("Paznic Portile Iadului")
			say("")
			say(" Îmi pare rău "..pc.get_name()..", nivelul tău nu este")
			say("destul de mare pentru harta cu metine, ai nevoie de 95.")
			end
		end
	end
end
end
Iar aici ai run-ul.

Cod: Selectaţi tot

quest blazingpurgatory begin 
    state start begin 
        when 20385.click with pc.get_map_index() == 76 begin
            notice("Prima sarcină a fost îndeplinită,veti fi teleportati la următorul etaj.")
            timer("first", 6)
        end
        when first.timer with pc.get_map_index() == 76 begin
            d.new_jump_all(76, 7759 , 6518)    -- state koords, ohne 00
            d.spawn_mob(6051, 347 , 358)    -- normale koords
        end
        when 6051.kill begin
            d.setf("metin", 0)
            d.spawn_mob(8029, 271 , 208)
            d.spawn_mob(8029, 481 , 167)
            d.spawn_mob(8029, 517 , 349)
            d.spawn_mob(8029, 514 , 496)
            d.spawn_mob(8029, 240 , 477)
            d.spawn_mob(8029, 182 , 351)
            d.notice(" Sarcina voastră este sa distrugeti cele 6 metine,ascunse în cele 6 insule ! ")
        end
        when 8029.kill begin
        local count = d.getf("metin") + 1
        if count <= 6 then
            d.notice(" Ati distrus "..count.." pietre Metin. ")
            d.setf("metin", count)
                if count == 6 then
                    d.notice(" Sarcina voastră a fost împlinită. ")
                    timer("boss", 10)
                    chat(" 10 secunde rămase,veti fi urcati imediat la următorul etaj. ")
                end
            end
        end
        when boss.timer begin
            d.jump_all(8110, 6859)    -- base koords + normale koords
            timer("kristall", 5)
        end
        when kristall.timer begin
            d.notice(" Ultima voastră sarcină este să distrugeti x2 Metine ale Furiei. ")
            d.regen_file("data/dungeon/blazingp.txt")
            d.setf("kristall", 0)
        end
        when 8034.kill begin
            local count_k = d.getf("kristall") + 1
            if count_k <= 2 then
                d.setf("kristall", count_k)
                d.notice(" Ati distrus "..count_k.." pietre Metin. ")
                if count_k == 2 then
                    timer("spawn", 2)
                    d.notice(" Sarcina voastră a fost împlinită,Razador îsi va face aparitia imediat. ")
                end
            end
        end
        when spawn.timer begin
            d.spawn_mob(6091, 685, 639)    -- normale koords
			d.spawn_mob(9012, 684, 605)    -- normale koords
        end
        when 6091.kill with pc.get_map_index() == 76 begin
			timer("razador_boss_end", 60) 
        end
    when razador_boss_end.timer begin
		warp_all_to_village( pc.get_map_index() , 3 )
	end
    end
end
Verifica sa ai si fisierele in : data/dungeon/blazingp.txt pentru a-ti spawna mobii, metinele.
Daca te-am ajutat lasa un thx. ;)
Pentru acest mesaj, [Mafia83] for the post:
CRiQ
Avatar utilizator
zenyon
Nivel 1

Nivel 1
Mesaje: 64
Membru din: 20 Noi 2017, 22:49
Regat: Chunjo
Aprecieri: 18  
Mulţumiri: 13  
  Rezolvări prob.: 1
Discord: Copiază ID
Medalii

Fa grupa cu cineva si incearca dupa sa intri,quest ul este bun
Avatar utilizator
CRiQ
Nivel 3

Nivel 3
Mesaje: 375
Membru din: 03 Ian 2019, 12:55
Server: BOMBĂ
Regat: Shinsoo
Aprecieri: 217  
Mulţumiri: 465  
Discord: Copiază ID
Medalii

t/c. Uitasem de librarii


Afișează semnătura
Avatar utilizator
Fubuki.Atsuya
Nivel 9

Nivel 9
Mesaje: 1968
Membru din: 22 Iun 2015, 21:13
Server: OldLegion2
Regat: Shinsoo
Aprecieri: 455  
Mulţumiri: 815  
  Rezolvări prob.: 2
Discord: Copiază ID
Medalii

T/C
Mutat în probleme rezolvate.
Închis
Răspunsuri
5
Vizualizări
523
Răspunsuri
11
Vizualizări
259
Răspunsuri
0
Vizualizări
220
Răspunsuri
12
Vizualizări
1555

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 24 vizitatori