summaryrefslogtreecommitdiff
path: root/world/map/npc/002-2/troupe_leader.txt
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-01-07 21:04:38 -0600
committerwushin <pasekei@gmail.com>2015-01-07 21:04:38 -0600
commit61c88ec162713b980f30e6e5111c1cfbd9f23d3a (patch)
treecbc5f399ccf8dd226056887a70b9a313f88bee6e /world/map/npc/002-2/troupe_leader.txt
parent2901ba177dea5867cbd52eb2b02a0ef8e1816e15 (diff)
downloadserverdata-61c88ec162713b980f30e6e5111c1cfbd9f23d3a.tar.gz
serverdata-61c88ec162713b980f30e6e5111c1cfbd9f23d3a.tar.bz2
serverdata-61c88ec162713b980f30e6e5111c1cfbd9f23d3a.tar.xz
serverdata-61c88ec162713b980f30e6e5111c1cfbd9f23d3a.zip
Adjust rest of world to Match new tutorial
Diffstat (limited to 'world/map/npc/002-2/troupe_leader.txt')
-rw-r--r--world/map/npc/002-2/troupe_leader.txt65
1 files changed, 65 insertions, 0 deletions
diff --git a/world/map/npc/002-2/troupe_leader.txt b/world/map/npc/002-2/troupe_leader.txt
new file mode 100644
index 00000000..c736899d
--- /dev/null
+++ b/world/map/npc/002-2/troupe_leader.txt
@@ -0,0 +1,65 @@
+//
+
+002-2.gat,81,21,0|script|Troupe Leader|165
+{
+ callfunc "ClearVariables";
+
+ set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
+
+ if (@inspector == 4) goto L_NohMask_Troupe;
+ if (@inspector == 13) goto L_NohMask_Found;
+
+ mes "[Troupe Leader]";
+ mes "\"Hello. I'm the leader of a traveling theater troupe. We'll be staying here in Tulimshar for a while.\"";
+ goto L_Close;
+
+L_NohMask_Troupe:
+ mes "[Troupe Leader]";
+ mes "\"Yes, a mask was stolen from us the last night we were in Hurnscald.\"";
+ next;
+ menu
+ "Any ideas on who might have taken it?", L_NohMask_Idea,
+ "Are you sure one of your troupe members didn't hide it and commit those robberies?", L_NohMask_Accuse,
+ "Hmm...", L_Close;
+
+L_NohMask_Idea:
+ set @inspector, 5;
+ callsub S_Update_Mask;
+ mes "[Troupe Leader]";
+ mes "\"Hm...I did see an old man hang out near the theater after our last show.\"";
+ goto L_Close;
+
+L_NohMask_Accuse:
+ mes "[Troupe Leader]";
+ mes "\"I am absolutely positive. None of my troupe have left the city since we got here. Good day!\"";
+ goto L_Close;
+
+L_NohMask_Found:
+ mes "[Troupe Leader]";
+ mes "\"Thank you for finding the mask. You did such a good job, you should keep it.\"";
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_NohMask_TooMany;
+ mes "[1500 experience points]";
+ getexp 1500, 0;
+ set @inspector, 14;
+ callsub S_Update_Mask;
+ getitem "NohMask", 1;
+ next;
+ mes "[Troupe Leader]";
+ mes "\"We don't need it anymore. We're doing different shows here.\"";
+ goto L_Close;
+
+L_NohMask_TooMany:
+ next;
+ mes "[Troupe Leader]";
+ mes "\"Except, you don't seem to have any room for it. I'll hold onto it for you until you do have room.\"";
+ goto L_Close;
+
+L_Close:
+ set @inspector, 0;
+ close;
+
+S_Update_Mask:
+ set QUEST_Hurnscald, (QUEST_Hurnscald & ~(NIBBLE_3_MASK)) | (@inspector << NIBBLE_3_SHIFT);
+ return;
+}