diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-12-30 00:45:14 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-12-30 13:47:02 +0100 |
commit | b771141707e400648c76fc3bf3843d67a841922c (patch) | |
tree | 57c92717d0a7d6459d6aa8f419b67a0401538f0c /world/map/npc/019-1 | |
parent | 6de0d5218433ad03a2569b2350dd6ac5cafddca6 (diff) | |
download | serverdata-b771141707e400648c76fc3bf3843d67a841922c.tar.gz serverdata-b771141707e400648c76fc3bf3843d67a841922c.tar.bz2 serverdata-b771141707e400648c76fc3bf3843d67a841922c.tar.xz serverdata-b771141707e400648c76fc3bf3843d67a841922c.zip |
Handle quests on 019-1 in flags instead of one player variable for each. Added those player variables to the function ClearVariables.
Diffstat (limited to 'world/map/npc/019-1')
-rw-r--r-- | world/map/npc/019-1/santa_helper.txt | 6 | ||||
-rw-r--r-- | world/map/npc/019-1/snowman.txt | 6 |
2 files changed, 6 insertions, 6 deletions
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: diff --git a/world/map/npc/019-1/snowman.txt b/world/map/npc/019-1/snowman.txt index 08513eae..529a7a50 100644 --- a/world/map/npc/019-1/snowman.txt +++ b/world/map/npc/019-1/snowman.txt @@ -2,8 +2,8 @@ // quest made seasonal and adapted to new scripting standards by Jenalya 019-1.gat,77,44,0|script|Snowman|129,{ - if( ChristmasQuest == 1) goto L_Done; - + callfunc "ClearVariables"; + if (FLAGS & FLAG_SNOWMAN) goto L_Done; if ($@month == 12 || $@month == 1 || $@month == 2) goto L_Quest; mes "A beautiful snowman. It looks almost alive."; @@ -52,7 +52,7 @@ L_Sure: mes "[Snowman]"; mes "\"Here you go, enjoy your new hat!\""; getitem "SantaHat", 1; - set ChristmasQuest, 1; + set FLAGS, FLAGS | FLAG_SNOWMAN; goto L_Close; L_Need: |