summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
authorbh28 <bernard@bh28.net>2013-04-06 16:41:17 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2013-05-27 18:57:23 +0200
commitad6ada10b18c4d8bbd2951ba99dfaeab4b621349 (patch)
tree35933ffeb5b5172622900f13023a0138bc0cd124 /world/map
parentb65fb0f06e9eb680a3ad5ed3c51a87fd13ecdda8 (diff)
downloadserverdata-ad6ada10b18c4d8bbd2951ba99dfaeab4b621349.tar.gz
serverdata-ad6ada10b18c4d8bbd2951ba99dfaeab4b621349.tar.bz2
serverdata-ad6ada10b18c4d8bbd2951ba99dfaeab4b621349.tar.xz
serverdata-ad6ada10b18c4d8bbd2951ba99dfaeab4b621349.zip
Add NPC Hetchel(376) to 021-1
Diffstat (limited to 'world/map')
-rw-r--r--world/map/npc/021-1/_import.txt1
-rw-r--r--world/map/npc/021-1/hetchel.txt109
2 files changed, 110 insertions, 0 deletions
diff --git a/world/map/npc/021-1/_import.txt b/world/map/npc/021-1/_import.txt
index 1ec734c5..9fa30a77 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/banu.txt
npc: npc/021-1/eurni.txt
npc: npc/021-1/gate_guards.txt
+npc: npc/021-1/hetchel.txt
npc: npc/021-1/hideandseek.txt
npc: npc/021-1/imec.txt
npc: npc/021-1/inac.txt
diff --git a/world/map/npc/021-1/hetchel.txt b/world/map/npc/021-1/hetchel.txt
new file mode 100644
index 00000000..9ccc8e9f
--- /dev/null
+++ b/world/map/npc/021-1/hetchel.txt
@@ -0,0 +1,109 @@
+// Hetchel the Silk Weaver
+// Hetchel is referred to by Lora Tay.
+// She weaves and sells standard double elbow square silk sheets.
+// She could also sell, dyed sheets, Silk robes from Lora Tay.
+// (6000 with cocoons, 40000 (?) with no cocoons).
+//
+// Hetchel's workshop is actually under repair, Shé'll be back in 021-2 when workers have finished their job.
+//
+// @SHEET_COCOONS_NR : Number of cocoons required per sheet.
+// Might ne calculated from @ROBE_COCOONS_NR/@ROBE_SHEETS_NR
+// Actually: 150∕6 = 25
+// @SHEET_ZENY : Money to pay per sheet: A sixth of 10000-2*500-6000
+
+021-1.gat,120,39,0|script|Hetchel|376,{
+ set @SHEET_COCOONS_NR, 25;
+ set @SHEET_ZENY, 500;
+ mes "[Hetchel the weaver]";
+ mes "\"Hello I am Hetchel, I weave fine textiles, what can I do for you?\"";
+ next;
+
+L_main_menu:
+ menu
+ "Sorry to bother, I'm new to this country, just visting.", L_end,
+ "I am looking for silk sheets, Lora Tay told me that I could find some in this market. Can you help?", -;
+// "Do you have any silk robe I could buy?", L_robe,
+// "Goodbye.", L_end;
+ next;
+ mes "[Hetchel the Weaver]";
+ mes "\"Sure but you need to provide raw materials.";
+ mes "I'll need " + @SHEET_COCOONS_NR +" silk cocoons per sheet, ";
+ mes "and also " + @SHEET_ZENY +" GP per sheet for my work.\"";
+ next;
+ if (countitem("SilkCocoon") == 0)
+ goto L_sheet_no_cocoon;
+
+L_sheet_menu:
+ menu
+ "I have what you asked for.", -,
+ "Sorry I didn't pay attention enough, what do you need?", L_how_many_cocoons,
+ "Oops! Sorry, I'll come back soon with them.", L_end;
+ next;
+
+L_sheet:
+ if (countitem("SilkCocoon") < @SHEET_COCOONS_NR)
+ goto L_sheet_missing_cocoons;
+ if (Zeny < @SHEET_ZENY)
+ goto L_sheet_missing_Zeny;
+ getinventorylist;
+ if (@inventorylist_count == 100 && countitem("SilkCocoon") > @SHEET_COCOONS_NR)
+ goto L_TooMany;
+ set Zeny, Zeny - @SHEET_ZENY;
+ delitem "SilkCocoon", @SHEET_COCOONS_NR;
+ getitem "Silksheet", 1;
+ mes "[Hetchel the Weaver]";
+ mes "\"Thank you, I hope the sheets will fit your needs.\"";
+ emotion EMOTE_HAPPY;
+ goto L_end;
+
+L_sheet_missing_cocoons:
+ mes "[Hetchel the Weaver]";
+ mes "\"I'm sorry, but I need " + @SHEET_COCOONS_NR + ", not " + countitem("SilkCocoon") + ".";
+ goto L_end;
+
+L_sheet_missing_Zeny:
+ mes "[Hetchel the Weaver]";
+ mes "\"No, no no. The way this works is that you give me the GP first and I give you the sheets afterwards.";
+ mes "You're " + (@SHEET_ZENY - Zeny) + " GP short, so come back when you can afford the sheet!\"";
+ goto L_end;
+
+L_how_many_cocoons:
+ mes "[Hetchel the Weaver]";
+ mes "\"I need an average of " + @SHEET_COCOONS_NR + " cocoons per sheet";
+ mes "and also " + @SHEET_ZENY + " GP per sheet for my work.\"";
+ next;
+ goto L_sheet_menu;
+
+L_sheet_no_cocoon:
+ mes "[Hetchel the Weaver]";
+ mes "\"You don't have any cocoon? I'm sorry I can't do anything for you.\"";
+ menu
+ "I'll seek for them.", L_end,
+ "Where can I get cocoons?", -;
+ next;
+ mes "[Hetchel the Weaver]";
+ mes "\"Silk cocoons come from Silkworms. Silkworms live in the woodland area around Hurnscald.";
+ mes "Silkworms like especially woods and dark areas. You can go there by ferry.\"";
+ goto L_end;
+
+//L_robe:
+// mes "[Hetchel the Weaver]";
+// mes "\"I am not a seamstress but I have a few silk robes from Lora Tay left.";
+// mes "It is not your size as Lora made them for me, but Tondar was kind enough";
+// mes "to cast a spell on it, so that it will fit to you as soon as you wear it.";
+// mes "However his prices are not that low.\"";
+// next;
+//
+//L_robe_menu:
+// goto L_main_menu;
+
+L_TooMany:
+ mes "[Hetchel the Weaver]";
+ mes "\"Your bag hasn't room enough. Store some things and come back.\"";
+
+L_end:
+ set @SHEET_COCOONS_NR, 0;
+ set @SHEET_ZENY, 0;
+ close;
+}
+