summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-02-23 01:32:20 +0100
committerReid <reidyaro@gmail.com>2016-02-23 01:32:20 +0100
commit6e2d1533c05f37e67e9b46d206970701532eb971 (patch)
tree82eac76fa0d7a0653f6d34a260843a883412833e /npc
parenteb84293fb48026d5ac725ba7bc317edc27c5d140 (diff)
downloadserverdata-6e2d1533c05f37e67e9b46d206970701532eb971.tar.gz
serverdata-6e2d1533c05f37e67e9b46d206970701532eb971.tar.bz2
serverdata-6e2d1533c05f37e67e9b46d206970701532eb971.tar.xz
serverdata-6e2d1533c05f37e67e9b46d206970701532eb971.zip
Add moubootalk function.
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/moubootalk.txt26
-rw-r--r--npc/scripts.conf1
2 files changed, 27 insertions, 0 deletions
diff --git a/npc/functions/moubootalk.txt b/npc/functions/moubootalk.txt
new file mode 100644
index 00000000..0d6fb539
--- /dev/null
+++ b/npc/functions/moubootalk.txt
@@ -0,0 +1,26 @@
+// Evol functions.
+// Author:
+// Reid
+// Description:
+// Tell a random sentence.
+// Variables:
+// .@rand = Random number between the number of sentence choice.
+
+function script moubootalk {
+ switch (rand (4))
+ {
+ case 0:
+ npctalk3 l("Moooooo!");
+ break;
+ case 1:
+ npctalk3 l("Moo!");
+ break;
+ case 2:
+ npctalk3 l("Moooooooooooo!");
+ break;
+ case 3:
+ npctalk3 l("Moooo!");
+ break;
+ }
+ return;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 4c50f812..d7d0935c 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -25,6 +25,7 @@ npc: npc/functions/shops.txt
npc: npc/functions/villagertalk.txt
npc: npc/functions/npcmovegraph.txt
npc: npc/functions/fishing.txt
+npc: npc/functions/moubootalk.txt
// Maps specific scripts
import: npc/_import.txt