diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2013-02-12 23:06:27 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2013-02-12 23:06:27 +0100 |
commit | 627a802f4eeb0872ab84d32ef952ca8884cea795 (patch) | |
tree | b62300599d9f82f986769d0b501d9b18c83123f6 /world/map/npc/013-3/sword_chest.txt | |
parent | 776515d46c6ffe47334537c32fc1b55f26fe47e4 (diff) | |
parent | e0e679a8a695641d1845c28bebe1c7e83c21a39f (diff) | |
download | serverdata-627a802f4eeb0872ab84d32ef952ca8884cea795.tar.gz serverdata-627a802f4eeb0872ab84d32ef952ca8884cea795.tar.bz2 serverdata-627a802f4eeb0872ab84d32ef952ca8884cea795.tar.xz serverdata-627a802f4eeb0872ab84d32ef952ca8884cea795.zip |
Merge branch 'variables'
Several older scripts were changed to use bitmasking for the player variables.
Variables that are or became unused were added to the clear_vars function.
Diffstat (limited to 'world/map/npc/013-3/sword_chest.txt')
-rw-r--r-- | world/map/npc/013-3/sword_chest.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/world/map/npc/013-3/sword_chest.txt b/world/map/npc/013-3/sword_chest.txt index bb89e3f3..8c89b52d 100644 --- a/world/map/npc/013-3/sword_chest.txt +++ b/world/map/npc/013-3/sword_chest.txt @@ -1,14 +1,15 @@ // 013-3.gat,177,22,0|script|Chest|111,{ - if( ChestQuest & 2) goto L_Finished; + callfunc "ClearVariables"; + if (FLAGS & FLAG_HURNSMINE_CHEST) goto L_Finished; mes "[Chest]"; mes "Would you try to open it?"; next; menu - "Yes", L_Yes, - "No", -; + "Yes.", L_Yes, + "No.", -; close; L_Yes: @@ -22,7 +23,7 @@ L_Yes: getitem "ShortSword", 1; mes "[Chest]"; mes "You opened it and found a short sword!"; - set ChestQuest, ChestQuest | 2; + set FLAGS, FLAGS | FLAG_HURNSMINE_CHEST; close; L_Not_Enough: |