diff options
-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; } |