Fixed it in my first post. This should work now
Or you can use this version, which is more simple:
quest biolog_reset_time begin
state start begin
when 20094.chat."Reset Time" begin
if pc.getqf("collect_timewait") > get_time() then
say_title("Reset Time")
say(" ")
say("Do you want to reset the time?")
say(" ")
local s = option("Yes","No")
if s == 1 and pc.count_item(70001) >= 1 then
pc.setqf("collect_timewait", 0)
pc.remove_item(70001, 1)
say_title("Reset Time")
say(" ")
say("Okay, done!")
say(" ")
return
elseif s == 1 and pc.count_item(70001) < 1 then
say_title("Reset Time")
say(" ")
say("You don't have "..item_name(70001).." !")
say("Come back when you have it...")
say(" ")
return
else
say_title("Reset Time")
say(" ")
say("Okay! See you later...")
say(" ")
return
end -- if
else
say_title("Reset Time")
say(" ")
say("You don't need to reset the time...")
say("You can already deliver the next item!")
say(" ")
return
end -- if2
end -- when
end -- state
end -- quest