summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2015-12-28 00:18:55 +0100
committerReid <reidyaro@gmail.com>2015-12-28 00:18:55 +0100
commitda12d1428be557570aee340744ded32c2ca752ed (patch)
tree5994cd7979f932049c72a88984a951aaeea1a93d /npc
parentd2b3fe749ca86ac33c3db516445259995230c8b5 (diff)
downloadserverdata-da12d1428be557570aee340744ded32c2ca752ed.tar.gz
serverdata-da12d1428be557570aee340744ded32c2ca752ed.tar.bz2
serverdata-da12d1428be557570aee340744ded32c2ca752ed.tar.xz
serverdata-da12d1428be557570aee340744ded32c2ca752ed.zip
Add sailortalk function that display random dialogues for sailors.
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/sailortalk.txt36
-rw-r--r--npc/scripts.conf1
2 files changed, 37 insertions, 0 deletions
diff --git a/npc/functions/sailortalk.txt b/npc/functions/sailortalk.txt
new file mode 100644
index 00000000..363f7c6b
--- /dev/null
+++ b/npc/functions/sailortalk.txt
@@ -0,0 +1,36 @@
+// Evol functions.
+// Author:
+// Reid
+// Description:
+// Tell a random sentence.
+// Variables:
+// .@rand = Random number between the number of sentence choice.
+
+function script sailortalk {
+
+ .@rand = rand(8);
+ if (.@rand == 0) goodbye;
+ if (.@rand == 1)
+ {
+ speech 4,
+ l("These purple mushrooms, are called @@. There are plenty of 'em on this island!", getitemlink(515)),
+ l("It's a kind of mushroom that tastes like a marshmallow and looks like a plush! @@, get it?", getitemlink(515)),
+ l("These funny fungi are mushrooming all around this island. Just pick some @@s and have a try.", getitemlink(515));
+ }
+ if (.@rand == 2) npctalk3 l("Good to hear from you!");
+ if (.@rand == 3) npctalk3 l("So finally someone has came to visit me?");
+ if (.@rand == 4)
+ {
+ speech 4,
+ l("A sunny and hot day,"),
+ l("a quiet place,"),
+ l("a ground!"),
+ l("What else do you need?");
+ }
+ if (.@rand == 5) npctalk3 l("A-hoy matey!");
+ if (.@rand == 6) npctalk3 l("We are glad captain Nard has let you join the crew!");
+ if (.@rand == 7) npctalk3 l("Howdy?");
+
+ closedialog;
+ close;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 5fe4a843..b7dbd7fe 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -18,6 +18,7 @@ npc: npc/functions/inventoryplace.txt
npc: npc/functions/npcmove.txt
npc: npc/functions/masks.txt
npc: npc/functions/sailordialogue.txt
+npc: npc/functions/sailortalk.txt
npc: npc/functions/savepoint.txt
npc: npc/functions/shops.txt
npc: npc/functions/npcmovegraph.txt