Quest with time

04/15/2021 10:00 Scorpion945#1
Hi guys, I have a problem with a timed quest, the quest is filled in correctly but when I start the mission it gives me time out, is there any error?

HTML Code:
	quest prova2 begin
 
	state start begin when login or levelup with pc.level >= 100 or pc.setqf("time_limit", get_time() + 30 * 60) begin 
		set_state("sicomincia")
	end 
end 
	state sicomincia begin 
	when letter begin 
		send_letter("Parla con il comandante") 
	end
	
	when button or info begin
		say_title("Missione:")
		say("Ehi avventuriero![ENTER]Il comandante ti cerca,[ENTER]sembra che tu sia stato selezionato per una missione importante!") 
	end 
	
	when 20355.chat."Sono pronto a uccidere." begin
		say_title("Comandante") 
		say("Salve avventuriero, uccidi 50 player e sarai degno della mia maxi ricompensa.")
		set_state("killa") 
	end 
end 

	state killa begin
	when letter begin
		send_letter("Uccidi 50 giocatori!")
		q.set_clock("time_left", pc.getqf("time_limit") - get_time())
	end 

	when button or info begin
	say_title("Missione:")
	say("Uccidi 50 pg!")
	say("finora hai ucciso " .. pc.getqf("time_limit")) 
	say("Sbrigati!") 
end 
	
	when 102.kill begin 
		if pc.getf("prova2","limit_time") >= get_time() then 
			chat("Hai ucciso tutti i pg!") 
			chat("Ritorna!") 
			set_state("ritorna") 
		end 
	end 
end	
	state ritorna begin 
	
	when 20355.chat."Grazie Mille" begin 
		say_title("Comandante") 
		say("Grazie avventuriero![ENTER]Ecco a te un forziere della morte![ENTER]Ecco a te 1.000.000.000 di yang![ENTER]Ecco a te 1.000.000.000 di exp!") 
		say_reward("Hai ricevuto 1000000000 yang!") 
		pc.changegold(1000000000)
		if pc.job == 0 then
		pc.give_item2(50082, 1)
		elseif pc.job == 1 then
		pc.give_item2(50082, 1) 
		elseif pc.job == 2 then
		pc.give_item2(50082, 1) 
		elseif pc.job == 3 then
		pc.give_item2(50082, 1) 
	end 
		pc.give_exp2(1000000000) 
		pc.delqf("time_limit") 
		
		set_state("__COMPLETE__") 
	end 
end 
		state __COMPLETE__ begin 
	end 
end
04/15/2021 15:07 Endless.#2
Try:
Code:
pc.setqf("time_limit", 0)
where you set after chat with 20355


€:
Here is a Part from my Bio Quest. The "duration" Quest Flag works same like yours.
Code:
					pc.setqf("collect_count",0)
					pc.setqf("drink_drug",0)  
					pc.setqf("duration",0)

With Best Regards, Endless :)