From b771141707e400648c76fc3bf3843d67a841922c Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Fri, 30 Dec 2011 00:45:14 +0100 Subject: Handle quests on 019-1 in flags instead of one player variable for each. Added those player variables to the function ClearVariables. --- world/map/npc/functions/clear_vars.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'world/map/npc/functions/clear_vars.txt') diff --git a/world/map/npc/functions/clear_vars.txt b/world/map/npc/functions/clear_vars.txt index eed42a44..14794c95 100644 --- a/world/map/npc/functions/clear_vars.txt +++ b/world/map/npc/functions/clear_vars.txt @@ -96,12 +96,22 @@ function|script|ClearVariables|{ //These lines are needed to migrate stuff from variables to flags - if (Open_Underground_Palace_Barrier) set FLAGS, FLAGS | FLAG_OPENED_UNDERGROUND; + if (Open_Underground_Palace_Barrier) + set FLAGS, FLAGS | FLAG_OPENED_UNDERGROUND; set Open_Underground_Palace_Barrier, 0; - if (Naem_Quest_Done) set FLAGS, FLAGS | FLAG_GOT_NAEM_GLOVES; + if (Naem_Quest_Done) + set FLAGS, FLAGS | FLAG_GOT_NAEM_GLOVES; set Naem_Quest_Done, 0; + if (ChristmasQuest) + set FLAGS, FLAGS | FLAG_SNOWMAN; + set ChristmasQuest, 0; + + if (ChristmasQuest2) + set FLAGS, FLAGS | FLAG_SANTAS_HELPER; + set ChristmasQuest2, 0; + if (#BankAccount < 0) goto FixBank; -- cgit v1.2.3-60-g2f50