summaryrefslogtreecommitdiff
path: root/world/map/npc/018-2/receptionist.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2013-02-07 16:27:45 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2013-02-12 23:05:14 +0100
commite6db4af9d0873d1b1b31680d54e5f8452000ea2b (patch)
tree7c8b2df6678625d2decc6095cfd87a207db034a0 /world/map/npc/018-2/receptionist.txt
parentc88ef1cbf878acd5439c3aef1cdac2f68436e0b5 (diff)
downloadserverdata-e6db4af9d0873d1b1b31680d54e5f8452000ea2b.tar.gz
serverdata-e6db4af9d0873d1b1b31680d54e5f8452000ea2b.tar.bz2
serverdata-e6db4af9d0873d1b1b31680d54e5f8452000ea2b.tar.xz
serverdata-e6db4af9d0873d1b1b31680d54e5f8452000ea2b.zip
Variable restructuring: move Inspector quest to nibble 3 of QUEST_Hurnscald.
Diffstat (limited to 'world/map/npc/018-2/receptionist.txt')
-rw-r--r--world/map/npc/018-2/receptionist.txt18
1 files changed, 13 insertions, 5 deletions
diff --git a/world/map/npc/018-2/receptionist.txt b/world/map/npc/018-2/receptionist.txt
index f49f68db..e36fe0c4 100644
--- a/world/map/npc/018-2/receptionist.txt
+++ b/world/map/npc/018-2/receptionist.txt
@@ -1,26 +1,30 @@
//
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)
+ "Thank you, no.", L_Close;
+ 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;
+ goto L_Close;
L_Mine:
mes "[Receptionist]";
@@ -57,4 +61,8 @@ L_Question_End:
mes "\"Do you need anything else?\"";
next;
goto L_Menu;
+
+L_Close:
+ set @inspector, 0;
+ close;
}