summaryrefslogtreecommitdiff
path: root/npc/001-2-41
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-41
downloadserverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.gz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.bz2
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.xz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.zip
Initial commit
Diffstat (limited to 'npc/001-2-41')
-rw-r--r--npc/001-2-41/_import.txt5
-rw-r--r--npc/001-2-41/_warps.txt3
-rw-r--r--npc/001-2-41/edouard.txt169
-rw-r--r--npc/001-2-41/mapflags.txt1
4 files changed, 178 insertions, 0 deletions
diff --git a/npc/001-2-41/_import.txt b/npc/001-2-41/_import.txt
new file mode 100644
index 000000000..a8eee7261
--- /dev/null
+++ b/npc/001-2-41/_import.txt
@@ -0,0 +1,5 @@
+// Map 001-2-41: unnamed
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/001-2-41/_warps.txt",
+"npc/001-2-41/edouard.txt",
+"npc/001-2-41/mapflags.txt",
diff --git a/npc/001-2-41/_warps.txt b/npc/001-2-41/_warps.txt
new file mode 100644
index 000000000..7a10c00d4
--- /dev/null
+++ b/npc/001-2-41/_warps.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 001-2-41: unnamed warps
+001-2-41,24,32,0 warp #001-2-41_24_32 0,0,001-2-31,35,32
diff --git a/npc/001-2-41/edouard.txt b/npc/001-2-41/edouard.txt
new file mode 100644
index 000000000..f93d2042a
--- /dev/null
+++ b/npc/001-2-41/edouard.txt
@@ -0,0 +1,169 @@
+// Evol scripts.
+// Authors:
+// Reid
+// Travolta
+// Description:
+// Barber of Aemil
+
+function script EdouardCheckChair {
+
+ getmapxy(.@map$, .@x, .@y, UNITTYPE_PC);
+
+ if ((.@map$ != getarg(0)) || (.@x != getarg(1)) || (.@y != getarg(2)))
+ {
+ doevent "Edouard#001-2-41::OnWrongPlace";
+ }
+ else if (!issit())
+ {
+ doevent "Edouard#001-2-41::OnNotSit";
+ }
+ else
+ {
+ doevent "Edouard#001-2-41::OnChair";
+ }
+
+ close;
+}
+
+001-2-41,29,24,0 script Chair#Chair1-001-2-41 NPC_NO_SPRITE,{
+
+ EdouardCheckChair .map$, .x, .y;
+
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+
+001-2-41,31,24,0 script Chair#Chair2-001-2-41 NPC_NO_SPRITE,{
+
+ EdouardCheckChair .map$, .x, .y;
+
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+
+001-2-41,35,27,0 script Chair#Chair3-001-2-41 NPC_NO_SPRITE,{
+
+ EdouardCheckChair .map$, .x, .y;
+
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+
+001-2-41,35,29,0 script Chair#Chair4-001-2-41 NPC_NO_SPRITE,{
+
+ EdouardCheckChair .map$, .x, .y;
+
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+
+001-2-41,35,35,0 script Chair#Chair5-001-2-41 NPC_NO_SPRITE,{
+
+ EdouardCheckChair .map$, .x, .y;
+
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+
+001-2-41,35,37,0 script Chair#Chair6-001-2-41 NPC_NO_SPRITE,{
+
+ EdouardCheckChair .map$, .x, .y;
+
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+
+001-2-41,30,29,0 script Edouard#001-2-41 NPC_EDOUARD,{
+
+ function tellStory {
+ if (Edouard_StoryTold != 0)
+ {
+ mes "";
+ mesn;
+ }
+ speech S_LAST_NEXT | S_NO_NPC_NAME,
+ l("I am new in this town, just like you."),
+ l("I came here, looking for a better life."),
+ l("And so far, the Merchant Guild helped me find this appartment so I can't complain!"),
+ l("Anyway."),
+ l("I'm a barber, you see. I can change your hairstyle or hair color to your current taste.");
+
+ Edouard_StoryTold = 1;
+
+ return;
+ }
+
+OnWrongPlace:
+ npctalkonce("Sit on the chair, I will come in a second!");
+ close;
+
+OnNotSit:
+ npctalkonce("Please sit.");
+ close;
+
+OnChair:
+ speech S_LAST_NEXT,
+ lg("Hello, young lady.", "Hello, young man.");
+
+ if (Edouard_StoryTold == 0)
+ {
+ tellStory;
+ }
+
+ speech S_LAST_NEXT | S_NO_NPC_NAME,
+ l("What would you like me to do?");
+
+ do
+ {
+ select
+ l("What is my current hairstyle and hair color?"),
+ l("I'd like to get a different style."),
+ l("Can you do something with my color?"),
+ l("What's your story again?"),
+ l("I'm fine for now, thank you.");
+
+ switch (@menu)
+ {
+ case 1:
+ BarberSayStyle 3;
+ break;
+ case 2:
+ BarberChangeStyle;
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("Enjoy your new style.");
+ l("Anything else?");
+ break;
+ case 3:
+ BarberChangeColor;
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("I hope you like this color.");
+ l("Anything else?");
+ break;
+ case 4:
+ tellStory;
+ break;
+ case 5:
+ speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("Feel free to come visit me another time.");
+
+ goodbye;
+ }
+ } while (1);
+
+OnInit:
+ .sex = G_MALE;
+ .distance = 2;
+ end;
+}
diff --git a/npc/001-2-41/mapflags.txt b/npc/001-2-41/mapflags.txt
new file mode 100644
index 000000000..eb1b712b6
--- /dev/null
+++ b/npc/001-2-41/mapflags.txt
@@ -0,0 +1 @@
+001-2-41 mapflag town