diff options
author | Reid <reidyaro@gmail.com> | 2016-02-23 01:32:20 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-02-23 01:32:20 +0100 |
commit | 6e2d1533c05f37e67e9b46d206970701532eb971 (patch) | |
tree | 82eac76fa0d7a0653f6d34a260843a883412833e | |
parent | eb84293fb48026d5ac725ba7bc317edc27c5d140 (diff) | |
download | serverdata-6e2d1533c05f37e67e9b46d206970701532eb971.tar.gz serverdata-6e2d1533c05f37e67e9b46d206970701532eb971.tar.bz2 serverdata-6e2d1533c05f37e67e9b46d206970701532eb971.tar.xz serverdata-6e2d1533c05f37e67e9b46d206970701532eb971.zip |
Add moubootalk function.
-rw-r--r-- | npc/functions/moubootalk.txt | 26 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
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 |