summaryrefslogtreecommitdiff
path: root/npc/functions/asleep.txt
diff options
context:
space:
mode:
authorAlige <aligetmw@hotmail.fr>2013-07-10 09:48:57 +0200
committerAlige <aligetmw@hotmail.fr>2013-07-10 09:52:41 +0200
commit88389c2cb20247d641417889d98fc7493d336463 (patch)
treedbf4fc99bcead42bd142a77e0915d83063037b42 /npc/functions/asleep.txt
parent0c6df6d490c4f0cfa027d5fe1a9998294b35bcb3 (diff)
downloadserverdata-88389c2cb20247d641417889d98fc7493d336463.tar.gz
serverdata-88389c2cb20247d641417889d98fc7493d336463.tar.bz2
serverdata-88389c2cb20247d641417889d98fc7493d336463.tar.xz
serverdata-88389c2cb20247d641417889d98fc7493d336463.zip
Updated npctalk strings and added an asleep script, doing basically the same thing as the goodbye script.
Diffstat (limited to 'npc/functions/asleep.txt')
-rw-r--r--npc/functions/asleep.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/npc/functions/asleep.txt b/npc/functions/asleep.txt
new file mode 100644
index 00000000..b1d81b5b
--- /dev/null
+++ b/npc/functions/asleep.txt
@@ -0,0 +1,19 @@
+// Evol functions.
+// Authors:
+// Alige
+// Reid
+// Description:
+// Tell a random sleeping sound.
+// Variables:
+// @rand = Random number between the number of "sleeping" choice.
+
+function script Asleep {
+ closedialog;
+
+ set @rand, rand(2);
+ if (@rand == 0) npctalk3 l("Zzzzzzzzz...");
+ if (@rand == 1) npctalk3 l("Rrrr... Pchhhh...");
+ if (@rand == 2) npctalk3 l("Ggrmm... Grmmmm...");
+
+ close;
+}