summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2012-01-11 22:07:25 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2012-03-20 14:00:16 +0100
commita17deb2caa22e77de223b3745f151f30a7b8bd62 (patch)
treef3956779eab42335652c4081c73de4def5a65cac
parent93c4205253dde28f195dd874b32b9ce0ecf4c4f2 (diff)
downloadserverdata-a17deb2caa22e77de223b3745f151f30a7b8bd62.tar.gz
serverdata-a17deb2caa22e77de223b3745f151f30a7b8bd62.tar.bz2
serverdata-a17deb2caa22e77de223b3745f151f30a7b8bd62.tar.xz
serverdata-a17deb2caa22e77de223b3745f151f30a7b8bd62.zip
Adding quest 'Shopkeeper's License' in North Tulimshar.
-rw-r--r--world/map/npc/021-1/_import.txt1
-rw-r--r--world/map/npc/021-1/imec.txt111
-rw-r--r--world/map/npc/021-1/north_shops.txt13
-rw-r--r--world/map/npc/021-2/_import.txt1
-rw-r--r--world/map/npc/021-2/yanis.txt26
5 files changed, 139 insertions, 13 deletions
diff --git a/world/map/npc/021-1/_import.txt b/world/map/npc/021-1/_import.txt
index 05207753..f4fd502b 100644
--- a/world/map/npc/021-1/_import.txt
+++ b/world/map/npc/021-1/_import.txt
@@ -7,6 +7,7 @@ npc: npc/021-1/bakery.txt
npc: npc/021-1/eurni.txt
npc: npc/021-1/gate_guards.txt
npc: npc/021-1/hideandseek.txt
+npc: npc/021-1/imec.txt
npc: npc/021-1/inac.txt
npc: npc/021-1/mapflags.txt
npc: npc/021-1/north_shops.txt
diff --git a/world/map/npc/021-1/imec.txt b/world/map/npc/021-1/imec.txt
new file mode 100644
index 00000000..df5b74df
--- /dev/null
+++ b/world/map/npc/021-1/imec.txt
@@ -0,0 +1,111 @@
+// Merchant got his shop shot down due to selling poison and asks the player for some errand
+// after finishing this, daily quest with scorpion stingers
+// Using bit 8 and 9 of QUEST_NorthTulimshar (first half of nibble 2)
+// author: Jenalya
+
+-|script|#ImecShopConfig|-1,{
+OnInit:
+ set $@ImecShopNT_MASK, 0x300;
+ set $@ImecShopNT_SHIFT, 8;
+ end;
+}
+
+021-1.gat,128,36,0|script|Imec|162,{
+
+ set @state, ((QUEST_NorthTulimshar & $@ImecShopNT_MASK) >> $@ImecShopNT_SHIFT);
+ set @money, 500;
+
+ if (@state >= 3) goto L_Stingers;
+ if (@state == 2) goto L_Return;
+ if (@state == 1) goto L_Bring;
+
+ mes "[Imec]";
+ mes "\"The Wizard's Council shut down my shop!";
+ mes "They said I was selling illegal things, but what's so illegal about poison?\"";
+ next;
+ mes "\"Anyways, I hope to get a merchant's permit again... One of these days...\"";
+ mes "He looks at you.";
+ next;
+ mes "[Imec]";
+ mes "\"You can do some errand for me. I just finished writing a petition to the Council about my shop.";
+ mes "If you bring it to the government building near the bazaar, I'll give you a small reward.\"";
+L_Offer:
+ menu
+ "What is in that government building and where is it?",L_Explain,
+ "Ok, sounds good.",-,
+ "No!",L_Close;
+ mes "[Imec]";
+ mes "\"Very good. Here is the paper.\"";
+ mes "Imec gives you a sealed letter. You put it away in a pocket seperated from your inventory, so it won't get lost.";
+ set @state, 1;
+ callsub S_Update_Mask;
+ goto L_Close;
+
+L_Explain:
+ mes "[Imec]";
+ mes "\"Follow the road to the south past the bakery, then go west when you reach the town walls. It's right before the gate to the bazaar.\"";
+ next;
+ mes "\"In the building there are several offices. If you want to join or form a party, you have to pay your taxes there first.\"";
+ next;
+ mes "\"So, will you bring my petition to the office in that building?\"";
+ if (@state == 0)
+ goto L_Offer;
+ goto L_Close;
+
+L_Bring:
+ mes "[Imec]";
+ mes "\"What are you waiting for? Bring my petition to the government building.\"";
+ menu
+ "Where is it again?",L_Explain,
+ "I'm on my way.",L_Close;
+
+L_Return:
+ mes "[Imec]";
+ mes "\"Ah, you're back.\"";
+ mes "You hand the letter of acknowledgement over to Imec.";
+ next;
+ mes "[Imec]";
+ mes "\"Very well. I'm sure I'll be able to open my shop again soon.\"";
+ next;
+ mes "It seems Imec doesn't notice you anymore.";
+ menu
+ "You mentioned a reward.",-;
+ mes "[Imec]";
+ mes "\"What? Ah, right. Here, have this.\"";
+ set Zeny, Zeny + @money;
+ set @state, 3;
+ callsub S_Update_Mask;
+ next;
+ mes "\"Actually, you could be of further help for me.\"";
+ next;
+L_Stingers:
+ mes "[Imec]";
+ set @dq_level, 10;
+ set @dq_cost, 3;
+ set @dq_count, 3;
+ set @dq_name$, "ScorpionStinger";
+ set @dq_friendly_name$, "Scorpion Stingers";
+ set @dq_money, 200;
+ set @dq_exp, 40;
+
+ callfunc "DailyQuest";
+ goto L_Close;
+
+L_Close:
+ set @money, 0;
+ set @state, 0;
+
+ set @dq_level, 0;
+ set @dq_cost, 0;
+ set @dq_count, 0;
+ set @dq_name$, "";
+ set @dq_friendly_name$, "";
+ set @dq_money, 0;
+ set @dq_exp, 0;
+ set @dq_return, 0;
+ close;
+
+S_Update_Mask:
+ set QUEST_NorthTulimshar, (QUEST_NorthTulimshar & ~($@ImecShopNT_MASK)) | (@state << $@ImecShopNT_SHIFT);
+ return;
+}
diff --git a/world/map/npc/021-1/north_shops.txt b/world/map/npc/021-1/north_shops.txt
index 6511bc42..c02141d3 100644
--- a/world/map/npc/021-1/north_shops.txt
+++ b/world/map/npc/021-1/north_shops.txt
@@ -5,19 +5,6 @@
// Some clothing
021-1.gat,136,38,0|shop|Inar|108,CottonShirt :-1,CottonShorts :-1,WhiteCottonBoots :-1,DesertShirt :-1,SilkRobe :-5,DesertHat :-4
-// Some general stuff
-021-1.gat,128,36,0|script|Imec|162,{
- set @npcname$, "Imec";
- mes "[" + @npcname$ + "]";
- mes "\"The Wizard's Council shut down my shop!\"";
- next;
- mes "\"They said I was selling illegal things, but what's so illegal about poison?\"";
- next;
- mes "\"Anyways, I hope to get a merchant's permit again...One of these days..\"";
- close;
-}
-
-
// A snobby store that won't sell to the player
021-1.gat,138,29,0|script|Latoy|106,{
mes "[Latoy]";
diff --git a/world/map/npc/021-2/_import.txt b/world/map/npc/021-2/_import.txt
index f7bb7eb1..592a9a3f 100644
--- a/world/map/npc/021-2/_import.txt
+++ b/world/map/npc/021-2/_import.txt
@@ -10,3 +10,4 @@ npc: npc/021-2/inya.txt
npc: npc/021-2/jhedia.txt
npc: npc/021-2/mapflags.txt
npc: npc/021-2/workshop.txt
+npc: npc/021-2/yanis.txt
diff --git a/world/map/npc/021-2/yanis.txt b/world/map/npc/021-2/yanis.txt
new file mode 100644
index 00000000..0add08cf
--- /dev/null
+++ b/world/map/npc/021-2/yanis.txt
@@ -0,0 +1,26 @@
+021-2.gat,33,17,0|script|Yanis|107,{
+
+ set @state, ((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)
+ menu
+ "Nothing right now.",L_Close;
+ menu
+ "Imec asked me to bring this petition.",-,
+ "Nothing right now.",L_Close;
+ 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);
+ goto L_Close;
+
+L_Close:
+ set @state, 0;
+ close;
+}