From 2f3d2b50848ac65abefaaccf356ef39ee1796e66 Mon Sep 17 00:00:00 2001 From: Reid Date: Sun, 17 Jan 2016 02:35:26 +0100 Subject: Fix errors on villagertalk. --- npc/functions/villagertalk.txt | 43 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/npc/functions/villagertalk.txt b/npc/functions/villagertalk.txt index da90ec90..094d485d 100644 --- a/npc/functions/villagertalk.txt +++ b/npc/functions/villagertalk.txt @@ -16,51 +16,44 @@ function script villagertalk { .@darn = rand(42); if (.@rand == 0) { - if (rand(2) == 1) + if (.@darn < 26) { -// wait 1; -// emote 6; // "Angel". + emotion 102; // ^.^ goodbye; } - else + else if (.@darn > 26) { -// wait 1; -// emote 13; // "Blah". + emotion 107; // -.- goodbye; } - if (.@darn == 23) npctalk3 l("Stop it!"); + else + { + npctalk3 l("Stop it!"); + } } - - if (.@rand == 1) + else if (.@rand == 1) { speech 4, l("Do you feel too weak even to do damage to this areas wishy-washy wildlife?"), 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) + else 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) + } + else if (.@rand == 3) { - 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; + npctalk3 l("Go fly a kite."); } - - if ((.@rand == 4) && (.@darn == 2)) + else if ((.@rand == 4) && (.@darn == 2)) { npctalk3 l("I just want to live my life in peace."); } - else if (((.@rand + .@darn) - 2) == 9) + else if (.@rand == 4) { -// zeny rand(10); -// emote rand(13); - goodbye; + npctalk3 l("It's difficult to distinguish good villagers from bad ones; keep your guard up, and stay away from me."); + emotion 6; } return; -- cgit v1.2.3-70-g09d2