summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/001-2-29/_import.txt1
-rw-r--r--npc/001-2-31/_warps.txt1
-rw-r--r--npc/001-2-41/_import.txt4
-rw-r--r--npc/001-2-41/_warps.txt2
-rw-r--r--npc/001-2-41/edouard.txt (renamed from npc/001-2-29/edouard.txt)98
-rw-r--r--npc/001-2-41/mapflags.txt1
-rw-r--r--npc/_import.txt1
7 files changed, 104 insertions, 4 deletions
diff --git a/npc/001-2-29/_import.txt b/npc/001-2-29/_import.txt
index 576e384f..6c0280cc 100644
--- a/npc/001-2-29/_import.txt
+++ b/npc/001-2-29/_import.txt
@@ -1,5 +1,4 @@
// Map 001-2-29: Artis, Red Plush Inn, First Floor
npc: npc/001-2-29/_warps.txt
-npc: npc/001-2-29/edouard.txt
npc: npc/001-2-29/mapflags.txt
npc: npc/001-2-29/savepoint.txt
diff --git a/npc/001-2-31/_warps.txt b/npc/001-2-31/_warps.txt
index b04452d3..e085d649 100644
--- a/npc/001-2-31/_warps.txt
+++ b/npc/001-2-31/_warps.txt
@@ -1,2 +1,3 @@
// Map 001-2-31:
001-2-31,32,40,0 warp ToArtis#001-2-31 0,0,001-1,49,97
+001-2-31,36,32,0 warp ToBarber#001-2-31 0,0,001-2-41,25,32
diff --git a/npc/001-2-41/_import.txt b/npc/001-2-41/_import.txt
new file mode 100644
index 00000000..22042e39
--- /dev/null
+++ b/npc/001-2-41/_import.txt
@@ -0,0 +1,4 @@
+// Map 001-2-41:
+npc: npc/001-2-41/_warps.txt
+npc: npc/001-2-41/mapflags.txt
+npc: npc/001-2-41/edouard.txt
diff --git a/npc/001-2-41/_warps.txt b/npc/001-2-41/_warps.txt
new file mode 100644
index 00000000..48ff7b05
--- /dev/null
+++ b/npc/001-2-41/_warps.txt
@@ -0,0 +1,2 @@
+// Map 001-2-41:
+001-2-41,24,32,0 warp ToHall#001-2-41 0,0,001-2-31,35,32
diff --git a/npc/001-2-29/edouard.txt b/npc/001-2-41/edouard.txt
index 2cd948df..aba5367c 100644
--- a/npc/001-2-29/edouard.txt
+++ b/npc/001-2-41/edouard.txt
@@ -3,9 +3,89 @@
// Reid
// Travolta
// Description:
-// Barber of Aemil, should be placed on the 29th indoor but it's still a WIP
+// Barber of Aemil
-001-2-29,37,31,0 script Edouard#001-2-29 NPC_EDOUARD,{
+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,23,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,23,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)
@@ -16,7 +96,8 @@
speech 12,
l("I am new in this town, just like you are."),
l("I came here, looking for a better life."),
- l("I still didn't find a cheap building to open my own business, so for now I will stay in this inn."),
+ l("And so far, the Merchant Guild helped me to find this appartment so I don't complain!"),
+ l("Anyway."),
l("I'm a barber, you see. I can change your hair style or color to your liking.");
Edouard_StoryTold = 1;
@@ -24,11 +105,22 @@
return;
}
+OnWrongPlace:
+ npctalkonce ("Sit on the chair I will come in a second!");
+ close;
+
+OnNotSit:
+ npctalkonce ("Please sit.");
+ close;
+
+OnChair:
speech 4,
lg("Hello, young lady.", "Hello, young man.");
if (Edouard_StoryTold == 0)
+ {
tellStory;
+ }
speech 12,
l("What would you like me to do?");
diff --git a/npc/001-2-41/mapflags.txt b/npc/001-2-41/mapflags.txt
new file mode 100644
index 00000000..eb1b712b
--- /dev/null
+++ b/npc/001-2-41/mapflags.txt
@@ -0,0 +1 @@
+001-2-41 mapflag town
diff --git a/npc/_import.txt b/npc/_import.txt
index d3509117..0f66b8c0 100644
--- a/npc/_import.txt
+++ b/npc/_import.txt
@@ -49,5 +49,6 @@ import: npc/001-2-37/_import.txt
import: npc/001-2-38/_import.txt
import: npc/001-2-39/_import.txt
import: npc/001-2-40/_import.txt
+import: npc/001-2-41/_import.txt
import: npc/test/_import.txt
import: npc/testbg/_import.txt