Pagina 1 din 1

🟩 QUEST: Recompensă la prima omorâre din zi (Daily First Kill)

Scris: Dum Feb 01, 2026 10:35 am
de ProFight3D

Cod: Selectaţi tot

quest daily_first_kill begin
	state start begin
		function today()
			return math.floor(get_time() / 86400)
		end

		when login begin
			local t = daily_first_kill.today()
			if pc.getqf("dfk_day") != t then
				pc.setqf("dfk_day", t)
				pc.setqf("dfk_done", 0)
			end
		end

		when kill begin
			if pc.getqf("dfk_done") == 1 then return end

			pc.setqf("dfk_done", 1)
			pc.give_item2(80017, 1) -- schimba reward
			syschat("[Daily] Prima omorare azi: ai primit recompensa!")
		end
	end
end