diff options
author | Akko Teru <none@null.nil> | 2016-01-14 21:00:21 -0600 |
---|---|---|
committer | Akko Teru <none@null.nil> | 2016-01-14 21:00:21 -0600 |
commit | 5e97cdc447504c45adb69466b3258b3b5f65af71 (patch) | |
tree | d9831453154917971811bb03b6c17c97fe6cd98b | |
parent | 743a780f81d6e879506efa5ea812871e714813a0 (diff) | |
download | serverdata-5e97cdc447504c45adb69466b3258b3b5f65af71.tar.gz serverdata-5e97cdc447504c45adb69466b3258b3b5f65af71.tar.bz2 serverdata-5e97cdc447504c45adb69466b3258b3b5f65af71.tar.xz serverdata-5e97cdc447504c45adb69466b3258b3b5f65af71.zip |
TestMe: npc/functions/villagertalk.txt
Warning: There must be at least 0+13 emotes available for this not to cause problems.
-rw-r--r-- | npc/functions/villagertalk.txt | 51 |
1 files changed, 47 insertions, 4 deletions
diff --git a/npc/functions/villagertalk.txt b/npc/functions/villagertalk.txt index a37bf9b5..1df55c97 100644 --- a/npc/functions/villagertalk.txt +++ b/npc/functions/villagertalk.txt @@ -2,15 +2,35 @@ // Authors: // Reid // Qwerty Dragon +// Contributors: +// Akko Teru // Description: -// Tell a random sentence. +// Tell a random sentence. || There ought to be a law! // Variables: // .@rand = Random number between the number of sentence choice. +// .@darn = Separatly chosen value for silly antics. function script villagertalk { - .@rand = rand(3); - if (.@rand == 0) goodbye; + .@rand = rand(5); + .@darn = rand(42); + if (.@rand == 0) + { + if (rand(2) == 1) + { + wait 1; + emote 6; // "Angel". + goodbye; + } + else + { + wait 1; + emote 13; // "Blah". + goodbye; + } + if (.@darn == 23) npctalk3 l("Stop it!"); + } + if (.@rand == 1) { speech 4, @@ -18,7 +38,30 @@ function script villagertalk { l("Then concentrate your anger upon the trees hereabouts, you will gain experience whilst leveling your sword skill on them."), l("Oh, and a fruit may even fall for you if you are lucky! But stay alert to pick up your drops."); } - if (.@rand == 2) npctalk3 l("It is a sunny day, don't you think?"); + + if (.@rand == 2) + npctalk3 l("It is a sunny day, don't you think?"); + + if (.@rand == 3) + npctalk3 l("Go fly a kite."); + + if (.@rand == 4) + { + npctalk3 l("It's difficult to distinguish good villagers from bad ones; keep your guard up, and stay away from me."); + wait 1; + emote 6; + } + + if ((.@rand == 4) && (.@darn == 2)) + { + npctalk3 l("I just want to live my life in peace."); + } + else if (((.@rand + .@darn) - 2) == 9) + { + zeny rand(10); + emote rand(13); + goodbye; + } return; } |