summaryrefslogtreecommitdiff
path: root/world/map/npc/021-2/yanis.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2012-02-07 14:44:46 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2012-03-20 14:00:16 +0100
commitdc2d7158f90ace751fa08def872299e0514dded0 (patch)
tree23efd1d83a0a3f6e76ebdc5ad547c7a80d1992e6 /world/map/npc/021-2/yanis.txt
parentb1baac74bfa63bf69d83e0438e0b85823c302298 (diff)
downloadserverdata-dc2d7158f90ace751fa08def872299e0514dded0.tar.gz
serverdata-dc2d7158f90ace751fa08def872299e0514dded0.tar.bz2
serverdata-dc2d7158f90ace751fa08def872299e0514dded0.tar.xz
serverdata-dc2d7158f90ace751fa08def872299e0514dded0.zip
North Tulimshar: quest about businessman who wants to open a shop in Tulimshar
Diffstat (limited to 'world/map/npc/021-2/yanis.txt')
-rw-r--r--world/map/npc/021-2/yanis.txt27
1 files changed, 20 insertions, 7 deletions
diff --git a/world/map/npc/021-2/yanis.txt b/world/map/npc/021-2/yanis.txt
index 0add08cf..6b47b599 100644
--- a/world/map/npc/021-2/yanis.txt
+++ b/world/map/npc/021-2/yanis.txt
@@ -1,26 +1,39 @@
+// Government official taking care about shop licenses
+// involved in quest given by 021-1/imec.txt and 021-2/kylian.txt
+
021-2.gat,33,17,0|script|Yanis|107,{
- set @state, ((QUEST_NorthTulimshar & $@ImecShopNT_MASK) >> $@ImecShopNT_SHIFT);
+ set QUEST_NorthTulimshar, QUEST_NorthTulimshar | $@knowYanisNT;
+ set @kylian, ((QUEST_NorthTulimshar & $@businessmanNT_MASK) >> $@businessmanNT_SHIFT);
+ set @imec, ((QUEST_NorthTulimshar & $@ImecShopNT_MASK) >> $@ImecShopNT_SHIFT);
mes "[Yanis]";
mes "\"Welcome. I'm handling issues with trading licenses for the shop owners in Tulimshar. Can I help you?\"";
- if (@state != 1)
+ if (@imec != 1)
menu
- "Nothing right now.",L_Close;
+ "Nothing right now.",L_BeforeClose;
menu
"Imec asked me to bring this petition.",-,
- "Nothing right now.",L_Close;
+ "Nothing right now.",L_BeforeClose;
mes "[Yanis]";
mes "\"Imec? I see. Give it to me.\"";
mes "Yanis has a disapprovingly look on his face. He takes the letter and writes something on another paper.";
next;
mes "[Yanis]";
mes "\"Here you have a letter of acknowledgement. You can bring that back to Imec. We will have a look at his case.\"";
- set @state, 2;
- set QUEST_NorthTulimshar, (QUEST_NorthTulimshar & ~($@ImecShopNT_MASK)) | (@state << $@ImecShopNT_SHIFT);
+ set @imec, 2;
+ set QUEST_NorthTulimshar, (QUEST_NorthTulimshar & ~($@ImecShopNT_MASK)) | (@imec << $@ImecShopNT_SHIFT);
+ goto L_BeforeClose;
+
+L_BeforeClose:
+ if (@kylian != 3)
+ goto L_Close;
+ next;
+ mes "You think that this is the person Kylian needs to talk to. You should tell him.";
goto L_Close;
L_Close:
- set @state, 0;
+ set @imec, 0;
+ set @kylian, 0;
close;
}