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/018-2/receptionist.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/018-2/receptionist.txt')
-rw-r--r-- | world/map/npc/018-2/receptionist.txt | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/world/map/npc/018-2/receptionist.txt b/world/map/npc/018-2/receptionist.txt index f49f68db..5f03c4b1 100644 --- a/world/map/npc/018-2/receptionist.txt +++ b/world/map/npc/018-2/receptionist.txt @@ -1,26 +1,28 @@ // 018-2.gat,50,24,0|script|Receptionist|108,{ + callfunc "ClearVariables"; + + set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT); + mes "[Receptionist]"; mes "\"Welcome to the mining camp!"; mes "Do you need anything?\""; next; L_Menu: - if (Inspector == 10) + if (@inspector == 10) menu "Why was a mine setup here?", L_Mine, "Can I go into the mine?", L_Enter, "Did the company build this building?", L_Building, "Did you hear a commotion here the other night?", L_NohMask, - "Thank you, no.", -; - if (Inspector != 10) - menu - "Why was a mine setup here?", L_Mine, - "Can I go into the mine?", L_Enter, - "Did the company build this building?", L_Building, - "Thank you, no.", -; - close; + "Thank you, no.", L_Close; + menu + "Why was a mine setup here?", L_Mine, + "Can I go into the mine?", L_Enter, + "Did the company build this building?", L_Building, + "Thank you, no.", L_Close; L_Mine: mes "[Receptionist]"; @@ -57,4 +59,8 @@ L_Question_End: mes "\"Do you need anything else?\""; next; goto L_Menu; + +L_Close: + set @inspector, 0; + close; } |