summaryrefslogtreecommitdiff
path: root/npc/functions/hello.txt
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-06-20 03:21:22 +0200
committerReid <reidyaro@gmail.com>2016-06-20 03:27:31 +0200
commitec77ba63547aaa399c2feedd3b506371515afcd0 (patch)
tree78451a91515b7b82734fc0b00b9c59c56bafd424 /npc/functions/hello.txt
parent32736a72197fff2942df58f88971925ea9f46d56 (diff)
downloadserverdata-ec77ba63547aaa399c2feedd3b506371515afcd0.tar.gz
serverdata-ec77ba63547aaa399c2feedd3b506371515afcd0.tar.bz2
serverdata-ec77ba63547aaa399c2feedd3b506371515afcd0.tar.xz
serverdata-ec77ba63547aaa399c2feedd3b506371515afcd0.zip
Add a hello script function.
Diffstat (limited to 'npc/functions/hello.txt')
-rw-r--r--npc/functions/hello.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/npc/functions/hello.txt b/npc/functions/hello.txt
new file mode 100644
index 00000000..162a953e
--- /dev/null
+++ b/npc/functions/hello.txt
@@ -0,0 +1,23 @@
+// Evol functions.
+// Authors:
+// Reid
+// Description:
+// Tell a random greeting sentence.
+
+function script hello {
+
+ switch (rand(2))
+ {
+ case 0:
+ npctalk3 l("Heya!");
+ break;
+ case 1:
+ npctalk3 l("Hi.");
+ break;
+ case 2:
+ npctalk3 l("Nice day to you.");
+ break;
+ }
+
+ return;
+}