summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-01-17 02:35:26 +0100
committerReid <reidyaro@gmail.com>2016-01-17 02:39:48 +0100
commit2f3d2b50848ac65abefaaccf356ef39ee1796e66 (patch)
treece27d7402469de46874cd286e72bc47b0b3a99ce
parent150bff5ebcf8118bbcc48d0db9fab73f01cedc7d (diff)
downloadserverdata-2f3d2b50848ac65abefaaccf356ef39ee1796e66.tar.gz
serverdata-2f3d2b50848ac65abefaaccf356ef39ee1796e66.tar.bz2
serverdata-2f3d2b50848ac65abefaaccf356ef39ee1796e66.tar.xz
serverdata-2f3d2b50848ac65abefaaccf356ef39ee1796e66.zip
Fix errors on villagertalk.
-rw-r--r--npc/functions/villagertalk.txt43
1 files 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;