Problema run Jotun

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

Nivel 1
Mesaje: 55
Membru din: 16 Oct 2018, 19:00
Server: Legacy2
Regat: Shinsoo
Aprecieri: 11  
Mulţumiri: 6  
Medalii

*Problemă: In quest este trecut 5 minute sa poti intra iar dar dupa ce faci prima data runul iti apare ca mai poiti intra peste 4555555 minute
Tipologie server:
*Resursă folosită:
*ServerFiles utilizat:
*Syserr:
Poză: http://prntscr.com/n8q5qh
*Detalii suplimentare:
quest enchanted_forest_zone begin
    state start begin
		function setting()
			return
			{
				["map_index"] = 210,
				["ticket_vnum"] = 30613,
				["dungeon_entry_pos"] = {7824, 15021},
				["boss1"] = 6408,
				["boss2"] = 6418,
				["spawn"] = {70, 941},
			}
		end
		
		function make_dungeon(ld_vid, channel)
			local setting = enchanted_forest_zone.setting()
			local event_flag = string.format("frt_dungeon_status_%d", channel)
			game.set_event_flag(event_flag, get_time() + 60 * 30)
			
			d.new_jump_party(setting.map_index, setting.dungeon_entry_pos[1], setting.dungeon_entry_pos[2])
			d.setf("frt_party_leader_pid", ld_vid)
			party.setf("frt_dungeon_index", d.get_map_index())
			
			d.spawn_mob(setting.boss1, setting.spawn[1], setting.spawn[2])
			clear_server_timer("frt_2h_left_timer", get_server_timer_arg())
			clear_server_timer("frt_exit_timer", get_server_timer_arg())
			server_timer("frt_2h_left_timer", 60 * 120, d.get_map_index())
		end
		
		when login begin
			local idx = pc.get_map_index()
			local setting = enchanted_forest_zone.setting()
			if idx >= (setting.map_index * 10000) and idx < (setting.map_index * 10000 + 10000) then
				pc.setf("enchanted_forest", "limit_activity", 0)
				if pc.getqf("dungeon_enter") > 0 then
					pc.setqf("dungeon_enter", 0)
					return
				end
				
				pc.warp(816700, 1505000)
			end
		end
		
		when logout begin
			local idx = pc.get_map_index()
			local setting = enchanted_forest_zone.setting()
			if idx >= (setting.map_index * 10000) and idx < (setting.map_index * 10000 + 10000) then
				pc.setqf("exit_time_logout", get_global_time() + 5 * 60)
				if pc.getqf("dungeon_enter") > 0 then
					pc.setqf("dungeon_enter", 0)
				end
				
				pc.setf("enchanted_forest", "limit_activity", get_time() + 10 * 60)
			end
		end
		
		when 6408.kill with pc.in_dungeon() begin
			local setting = enchanted_forest_zone.setting()
			d.spawn_mob(setting.boss2, setting.spawn[1], setting.spawn[2])
		end
		
		when 6418.kill with pc.in_dungeon() begin
			local setting = enchanted_forest_zone.setting()
			d.set_warp_location(202, 12779, 17347)
			
			d.notice("Felicitari, ai readus pacea in Padurea Fermecata!")
			d.notice("Incurand vei fi teleortat.")
			
			server_timer("frt_exit_timer", 30, d.get_map_index())
		end
		
		when frt_2h_left_timer.server_timer begin
			if d.select(get_server_timer_arg()) then
				d.set_warp_location(202, 12779, 17347)
				d.notice("Timpul a expirat.")
				
				server_timer("frt_exit_timer", 3, get_server_timer_arg())
			end
		end
		
		when frt_exit_timer.server_timer begin
			if d.select(get_server_timer_arg()) then
				clear_server_timer("frt_exit_timer", get_server_timer_arg())
				clear_server_timer("frt_2h_left_timer", get_server_timer_arg())
				d.setf("frt_party_leader_pid", 0)
				d.exit_all()
			end
		end
		
		when 20412.chat."Camera lui Bagjanamu" begin
			local setting = enchanted_forest_zone.setting()
			
			say_title(mob_name(20412))
			say("")
			say("Vrei sa lupti impotriva lui Bagjanamu?")
			local agree = select("Da", "Nu")
			if agree == 1 then
				say_title(mob_name(20412))
				say("")
				if not party.is_party() then
					say("Pentru a intra in camera trebuie sa faci parte")
					say("dintr-o breasla.")
					return
				end
				
				local party_check = 0
				if d.find(party.getf("frt_dungeon_index")) then
					party_check = (d.getf_from_map_index("frt_party_leader_pid", party.getf("frt_dungeon_index")) == party.get_leader_pid())
				end
				
				if d.find(party.getf("frt_dungeon_index")) and party_check then
					if get_global_time() > pc.getqf("exit_time_logout") then
						say("De neacceptat, te-ai intors prea tarziu")
						say("limita pentru a intra inapoi in dungeon este de")
						say("5 minute.")
						return
					end
					
					pc.setf("enchanted_forest_zone", "dungeon_enter", 1)
					say("Vei fi teleportat la grupa ta.")
					say("")
					wait()
					pc.warp(setting.dungeon_entry_pos[1] * 100, setting.dungeon_entry_pos[2] * 100, party.getf("frt_dungeon_index"))
				end
				
				local event_flag = string.format("frt_dungeon_status_%d", pc.get_channel_id())
				if game.get_event_flag(event_flag) > get_time() then
					local next_time = (game.get_event_flag(event_flag) - get_time())
					say("Momentan intrarile sunt inchise.")
					if next_time < 60 then
						say(string.format("Incearca in %d sec.", tonumber(next_time)))
					else
						say(string.format("Incearca in %d min.", tonumber(next_time / 60)))
					end
					
					return
				end
				
				if not party.is_leader() then
					say("Pentru a accesa aceasta camera trebuie sa fii")
					say("liderul grupei.")
					return
				end
				
				if party.get_near_count() < 2 then
					say("Pentru a accesa camera grupul tau trebuie sa aiba")
					say("minim 2 membrii.")
					return
				end
				
				local pids = {party.get_member_pids()}
				local ticketCheck = true
				local notEnoughTicketMembers = {}
				
				for i, pid in next, pids, nil do
					q.begin_other_pc_block(pid)
					if pc.count_item(setting.ticket_vnum) < 1 then
						table.insert(notEnoughTicketMembers, pc.get_name())
						ticketCheck = false
					end
					
					q.end_other_pc_block()
				end
				
				if not ticketCheck then
					say("Pentru a primi acces in camera, toti membrii")
					say(string.format("grupei trebuie sa aiba %s.", item_name(setting.ticket_vnum)))
					say("")
					say("Membrii fara ticket:")
					for i, name in next, notEnoughLevelMembers, nil do
						say("- "..name.."")
					end
					
					return
				end
				
				for i, pid in next, pids, nil do
					q.begin_other_pc_block(pid)
					pc.remove_item(setting.ticket_vnum, 1)
					pc.setf("enchanted_forest_zone", "dungeon_enter", 1)
					q.end_other_pc_block()
				end
				
				say("Dupa ce continui toti membrii grupei")
				say("vor fi teleportati in camera.")
				wait()
				enchanted_forest_zone.make_dungeon(party.get_leader_pid(), pc.get_channel_id())
			end
		end
	end
end
Ultima oară modificat 07 Apr 2019, 19:59 de către Legacy2, modificat de 2 ori în total.
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

game.set_event_flag(event_flag, get_time() + 60 * 30)
Rescrie ca
game.set_event_flag(event_flag, (get_time() + 1800))
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
Legacy2
Nivel 1

Nivel 1
Mesaje: 55
Membru din: 16 Oct 2018, 19:00
Server: Legacy2
Regat: Shinsoo
Aprecieri: 11  
Mulţumiri: 6  
Medalii

[RaffaeL] scrie:
game.set_event_flag(event_flag, get_time() + 60 * 30)
Rescrie ca
game.set_event_flag(event_flag, (get_time() + 1800))
am facut ce ai zis tu acolo si tot asa arata http://prntscr.com/n97abs

trebuie sa verific si in asta
quest enchanted_forest begin
state start begin
when logout with pc.get_map_index() == 210 begin
pc.setf("enchanted_forest_zone", "dungeon_enter", 1)
pc.setqf("limit_activity", get_time() + 10 * 60)
end

when login with pc.get_map_index() == 210 begin
if get_time() >= pc.getqf("limit_activity") and pc.getqf("limit_activity") > 0 then
pc.warp(1277900, 1734700)
else
pc.setqf("limit_activity", 0)
end
end
end
end
Avatar utilizator
Penguin
Nivel 3

Nivel 3
Mesaje: 307
Membru din: 29 Apr 2017, 01:35
Server: None
Regat: Jinno
Aprecieri: 145  
Mulţumiri: 86  
Medalii

Legacy2 scrie:
[RaffaeL] scrie:
game.set_event_flag(event_flag, get_time() + 60 * 30)
Rescrie ca
game.set_event_flag(event_flag, (get_time() + 1800))
am facut ce ai zis tu acolo si tot asa arata http://prntscr.com/n97abs

trebuie sa verific si in asta
quest enchanted_forest begin
state start begin
when logout with pc.get_map_index() == 210 begin
pc.setf("enchanted_forest_zone", "dungeon_enter", 1)
pc.setqf("limit_activity", get_time() + 10 * 60)
end

when login with pc.get_map_index() == 210 begin
if get_time() >= pc.getqf("limit_activity") and pc.getqf("limit_activity") > 0 then
pc.warp(1277900, 1734700)
else
pc.setqf("limit_activity", 0)
end
end
end
end
incearca asa:
quest enchanted_forest begin
state start begin
when logout with pc.get_map_index() == 210 begin
pc.setf("enchanted_forest_zone", "dungeon_enter", 1)
pc.setqf("limit_activity", get_time() + 600)
end

when login with pc.get_map_index() == 210 begin
if get_time() >= pc.getqf("limit_activity") and pc.getqf("limit_activity") > 0 then
pc.warp(1277900, 1734700)
else
pc.setqf("limit_activity", 0)
end
end
end
end
Avatar utilizator
Legacy2
Nivel 1

Nivel 1
Mesaje: 55
Membru din: 16 Oct 2018, 19:00
Server: Legacy2
Regat: Shinsoo
Aprecieri: 11  
Mulţumiri: 6  
Medalii

Nici o schimbare

[ Postat de pe Android ] Imagine
Avatar utilizator
Legacy2
Nivel 1

Nivel 1
Mesaje: 55
Membru din: 16 Oct 2018, 19:00
Server: Legacy2
Regat: Shinsoo
Aprecieri: 11  
Mulţumiri: 6  
Medalii

Rezolvat.

[ Postat de pe Android ] Imagine
Avatar utilizator
FRANCIS
Administrator Adjunct

Administrator Adjunct
Mesaje: 7879
Membru din: 06 Noi 2015, 19:52
Regat: Chunjo
Aprecieri: 334  
Mulţumiri: 54528  
Discord: Copiază ID
Medalii

Legacy2 scrie:Rezolvat.

[ Postat de pe Android ] Imagine
rezolvarea fiind ?
If you talk to a man in a language he understands, that goes to his head. If you talk to him in his own language, that goes to his heart.
Imagine
ENJOY
Imagine
Afișează semnătura
Avatar utilizator
Legacy2
Nivel 1

Nivel 1
Mesaje: 55
Membru din: 16 Oct 2018, 19:00
Server: Legacy2
Regat: Shinsoo
Aprecieri: 11  
Mulţumiri: 6  
Medalii

CASTIGLIONE scrie:
Legacy2 scrie:Rezolvat.

[ Postat de pe Android ] Imagine
rezolvarea fiind ?
Am dat emty la tabelul quest din navigat.

[ Postat de pe Android ] Imagine
Avatar utilizator
Reme
Deţinător Server

Deţinător Server
Mesaje: 1308
Membru din: 09 Mar 2014, 20:00
Server: www.dm2.ro
Regat: Jinno
Aprecieri: 213  
Mulţumiri: 1932  
Discord: Copiază ID
 Contact:
Medalii

problema rezolvata
topic closed
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
3138
Răspunsuri
3
Vizualizări
442
Răspunsuri
0
Vizualizări
501
Răspunsuri
1
Vizualizări
1358

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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