-
Posts
7 -
Joined
-
Last visited
-
Feedback
0%
Source's Achievements
-
Source changed their profile photo
-
@VegaS
-
[Hidden Content] Here's the English version
-
Reset biologist time active control
Source replied to jkhan's topic in Community Support - Questions & Answers
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 -
Reset biologist time active control
Source replied to jkhan's topic in Community Support - Questions & Answers
quest biolog_reset_time begin state start begin when 20094.chat."Reset Time" begin 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 and pc.getqf("collect_timewait") > get_time() 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 and pc.getqf("collect_timewait") <= get_time() then say_title("Reset Time") say(" ") say("You don't need to reset the time...") say("You can already deliver the next item!") 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 end -- when end -- state end -- quest -
First delete flags and then give reward. Intented or unintented disconnection during the speech will bring many exploits. Do that anytime you want to give a reward. First, remove item then add item. First remove flag, then add item.