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/019-1/santa_helper.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'world/map/npc/019-1/santa_helper.txt') diff --git a/world/map/npc/019-1/santa_helper.txt b/world/map/npc/019-1/santa_helper.txt index 9c148407..f7d1f36e 100644 --- a/world/map/npc/019-1/santa_helper.txt +++ b/world/map/npc/019-1/santa_helper.txt @@ -2,8 +2,8 @@ // quest made seasonal and adapted to new scripting standards by Jenalya 019-1.gat,74,75,0|script|Santa's Helper|105,{ - if (ChristmasQuest2 == 1) goto L_Done; - + callfunc "ClearVariables"; + if (FLAGS & FLAG_SANTAS_HELPER) goto L_Done; if ($@month == 12) goto L_Quest; mes "[Santa's Helper]"; @@ -54,7 +54,7 @@ L_Y: delitem "BluePresentBox", @blue_amount; delitem "GreenPresentBox", @green_amount; getitem "TurtleneckSweater", 1; - set ChristmasQuest2,1; + set FLAGS, FLAGS | FLAG_SANTAS_HELPER; goto L_Close; L_R: -- cgit v1.2.3-60-g2f50