diff options
author | Alige <aligetmw@hotmail.fr> | 2013-07-10 09:48:57 +0200 |
---|---|---|
committer | Alige <aligetmw@hotmail.fr> | 2013-07-10 09:52:41 +0200 |
commit | 88389c2cb20247d641417889d98fc7493d336463 (patch) | |
tree | dbf4fc99bcead42bd142a77e0915d83063037b42 /npc/functions | |
parent | 0c6df6d490c4f0cfa027d5fe1a9998294b35bcb3 (diff) | |
download | serverdata-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')
-rw-r--r-- | npc/functions/asleep.txt | 19 | ||||
-rw-r--r-- | npc/functions/goodbye.txt | 4 |
2 files changed, 21 insertions, 2 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; +} diff --git a/npc/functions/goodbye.txt b/npc/functions/goodbye.txt index e5895422..fe382c0e 100644 --- a/npc/functions/goodbye.txt +++ b/npc/functions/goodbye.txt @@ -2,9 +2,9 @@ // Author: // Reid // Description: -// Tell a random goodbye. +// Tell a random goodbye sentence. // Variables: -// @rand = Random number between the number of "good bye" choice. +// @rand = Random number between the number of "goodbye" choice. function script GoodBye { closedialog; |