summaryrefslogtreecommitdiff
path: root/npc/001-2-0
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
committerSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
commit20df2abc1aca00d6aa5dc78347133890f36b32f3 (patch)
tree4ad4a8bb8b0605473a702e314799a4626347721a /npc/001-2-0
downloadserverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.gz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.bz2
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.xz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.zip
Initial commit
Diffstat (limited to 'npc/001-2-0')
-rw-r--r--npc/001-2-0/_import.txt6
-rw-r--r--npc/001-2-0/_warps.txt4
-rw-r--r--npc/001-2-0/mapflags.txt1
-rw-r--r--npc/001-2-0/resa.txt80
-rw-r--r--npc/001-2-0/shop.txt35
5 files changed, 126 insertions, 0 deletions
diff --git a/npc/001-2-0/_import.txt b/npc/001-2-0/_import.txt
new file mode 100644
index 000000000..2fb6a2627
--- /dev/null
+++ b/npc/001-2-0/_import.txt
@@ -0,0 +1,6 @@
+// Map 001-2-0: Light Armor Shop
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/001-2-0/_warps.txt",
+"npc/001-2-0/mapflags.txt",
+"npc/001-2-0/resa.txt",
+"npc/001-2-0/shop.txt",
diff --git a/npc/001-2-0/_warps.txt b/npc/001-2-0/_warps.txt
new file mode 100644
index 000000000..c81b7fa6b
--- /dev/null
+++ b/npc/001-2-0/_warps.txt
@@ -0,0 +1,4 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 001-2-0: Light Armor Shop warps
+001-2-0,30,35,0 warp #001-2-0_30_35 0,0,001-1,51,66
+001-2-0,37,46,0 warp #001-2-0_37_46 0,0,001-1,55,72
diff --git a/npc/001-2-0/mapflags.txt b/npc/001-2-0/mapflags.txt
new file mode 100644
index 000000000..a1781431f
--- /dev/null
+++ b/npc/001-2-0/mapflags.txt
@@ -0,0 +1 @@
+001-2-0 mapflag town
diff --git a/npc/001-2-0/resa.txt b/npc/001-2-0/resa.txt
new file mode 100644
index 000000000..1530c8617
--- /dev/null
+++ b/npc/001-2-0/resa.txt
@@ -0,0 +1,80 @@
+// Evol scripts.
+// Author:
+// Reid
+// Description:
+// Light Armor shop keeper.
+// Variables:
+// ArtisQuests_Enora
+// Values:
+// 0 Default.
+// 1 BlackSmith quest delivered.
+// 2 Chelios Quest given.
+// 3 Chelios Quest done.
+// 4 BlackSmith gave the sword.
+// 5 Light Armor Shop quest delivered.
+// 6 Light Armor Shop gave the cloths.
+
+001-2-0,37,28,0 script Resa NPC_ELVEN_FEMALE_ARMOR_SHOP,{
+
+ function explain_craft {
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("Did you see Don the blacksmith? He might know how you could improve your metal equipment."),
+ l("Nevertheless, you can craft some cards that you can then attach to your equipment."),
+ l("We sell a brimmed hat, you can craft a feather card and attach it to this hat to obtain an enhanced version of it!");
+
+ return;
+ }
+
+ function enora_quest {
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("I thought that she would never come to pick it up!"),
+ l("Here it is, a fashionable @@.", getitemlink(ArtisTankTop, CamelCottonDye)),
+ l("I asked Calypsan to dye this tank top, now it has an unique look!");
+
+ narrator S_LAST_NEXT, l("You pick up the package.");
+
+ setq ArtisQuests_Enora, 6;
+
+ return;
+ }
+
+ speech S_LAST_NEXT,
+ l("Welcome to my office."),
+ l("What would you like today?");
+
+ do
+ {
+ .@enora = getq(ArtisQuests_Enora);
+ select
+ rif(.@enora == 5, lg("I came to retrieve a package for Enora.")),
+ menuaction(l("Trade")),
+ l("How can I improve my equipment?"),
+ menuaction(l("Quit"));
+
+ switch (@menu)
+ {
+ case 1:
+ enora_quest;
+ closedialog;
+ goodbye;
+ close;
+ case 2:
+ closedialog;
+ shop "Store#001-2-0";
+ close;
+ case 3:
+ explain_craft;
+ break;
+ case 4:
+ closedialog;
+ goodbye;
+ close;
+ }
+ } while (1);
+
+
+OnInit:
+ .sex = G_FEMALE;
+ .distance = 2;
+ end;
+}
diff --git a/npc/001-2-0/shop.txt b/npc/001-2-0/shop.txt
new file mode 100644
index 000000000..9fe97b17e
--- /dev/null
+++ b/npc/001-2-0/shop.txt
@@ -0,0 +1,35 @@
+// Evol scripts.
+// Authors:
+// 4144
+// Reid
+// Description:
+// Light armor shop.
+
+001-2-0,37,29,0 trader Store#001-2-0 NPC_NO_SPRITE,{
+// The ArtisTankTop should be store at x: 39 or 40, y: 31.
+// 38,35 is server's location of where client displays a black torso gear on display. (using @where for server).
+// 35,27 is some shelves and a cabinet at 4 tiles from where player select it.
+// 39,27 is where to put store that sells only fabric. (the cloth shelf).
+OnInit:
+ tradertype(NST_MARKET);
+
+ sellitem ArtisTankTop, -1, 50;
+ sellitem VneckJumper, -1, 30;
+ sellitem BrownTrousers, -1, 30;
+ sellitem BrimmedHat, -1, 35;
+
+ .sex = G_OTHER;
+ .distance = 2;
+ end;
+
+OnClock0000:
+ restoreshopitem ArtisTankTop, 30;
+ restoreshopitem VneckJumper, 12;
+ restoreshopitem BrownTrousers, 15;
+ restoreshopitem BrimmedHat, 10;
+OnClock1200:
+ restoreshopitem ArtisTankTop, 25;
+ restoreshopitem VneckJumper, 10;
+ restoreshopitem BrownTrousers, 10;
+ restoreshopitem BrimmedHat, 20;
+}