Problema QUEST

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
Iamandi Mihai
Nivel 1

Nivel 1
Mesaje: 148
Membru din: 04 Mar 2016, 15:17
Server: WF 2
Regat: Shinsoo
Aprecieri: 308  
Mulţumiri: 7  
Discord: https://discord.com/invite/DXe" id="input798169" style="display:none;">Copiază ID
 Contact:
Medalii

*Problemă/Întrebare: Cum pot face d.new jump si timer in aceasta mapa din acest quest?
Tipologie server(PvM / PvP): PVM
*Resursă folosită: *Link exclusiv J4M* -
*ServerFiles utilizat: -
*Syserr: -
Poză: -
*Detalii suplimentare:
Quest

Cod: Selectaţi tot

quest special_mina begin
	state start begin	
		when 20015.chat."test" with pc.get_map_index()== 111 begin
			say("test")
			say("")
			if select("Enter", "Exit") == 2 then return end
				d.new_jump(111, 3004500, 4957200)
				pc.setqf("duration",get_time()+ 60 * 2) 
		end
		when login or enter with pc.in_dungeon() and pc.get_map_index() >= 1110000 and pc.get_map_index() < 1119999 begin
			notice_in_map("test")
			d.regen_file("")
		end
		
		when login or enter with pc.in_dungeon() and pc.get_map_index() >= 1110000 and pc.get_map_index() < 1119999 begin 
			loop_timer("check", 1)
		end
		
		when check.timer begin
			if get_time() > pc.getqf("duration") then
				warp_to_village()
			end
		end
	end
end
Ma teleporteaza in harta cu d new jump, regenul porneste dar cand expira timpul nu ma da in oras, stiu ca trebuie ceva modificat la pc.setqf sau jos la loop_timer, daca ma poate ajuta cineva. Multumesc !
Avatar utilizator
alinjuve23
Nivel 2

Nivel 2
Mesaje: 239
Membru din: 23 Apr 2015, 17:10
Aprecieri: 451  
Mulţumiri: 21  
Medalii

Nu am testat.

Cod: Selectaţi tot

quest special_mina begin
	state start begin	
		when 20015.chat."test" with pc.get_map_index()== 111 begin
			say("test")
			say("vrei sa intri in temnita?")
			local a=seleect("Da", "Nu")
			if 1==a then
				d.new_jump(111, 3004500, 4957200)
				d.regen_file("data/dungeon/test.txt")
			else
				return
			end
		end
		
		when login with pc.in_dungeon() and pc.get_map_index() >= 1110000 and pc.get_map_index() < 1119999 begin 
			timer("timp_ramas", 1800)
			chat("Ai la dispozitie 30 de minute")
		end
		
		when logout with pc.in_dungeon() and pc.get_map_index() >= 1110000 and pc.get_map_index() < 1119999 begin
			warp_to_village()
		end

		when 101.kill with pc.in_dungeon() begin
			d.kill_all() -- daca ai mai multi mobi in regen si omori doar bossul sa moara si restul.
			chat("Felicitari, ai terminat temnita")
			chat("In 30 de secunde vei fi teleportat")
			cleartimer("timp_ramas")
			timer("exit", 30)
		
		when timp_ramas.timer begin
			d.kill_all()
			chat("Ai esuat, in 10 secunde vei fi teleportat")
			timer("exit", 10)
		end

		when exit.timer begin
			warp_to_village()
		end
	end
end
Închis
Răspunsuri
6
Vizualizări
400
Răspunsuri
4
Vizualizări
218
Răspunsuri
4
Vizualizări
409
Răspunsuri
3
Vizualizări
735

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

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