diff options
author | Akko Teru <none@null.nil> | 2016-01-18 01:00:25 -0600 |
---|---|---|
committer | Akko Teru <none@null.nil> | 2016-01-18 01:00:25 -0600 |
commit | d7555706564dbc1e184246b05aa9fa589d047f50 (patch) | |
tree | c3a572a268d241b996f537853b97c6c25792eac7 | |
parent | 9f6387eb8dfd96af51bb8634a4eab8f0187c7dbe (diff) | |
download | serverdata-d7555706564dbc1e184246b05aa9fa589d047f50.tar.gz serverdata-d7555706564dbc1e184246b05aa9fa589d047f50.tar.bz2 serverdata-d7555706564dbc1e184246b05aa9fa589d047f50.tar.xz serverdata-d7555706564dbc1e184246b05aa9fa589d047f50.zip |
"Fix" villagertalk function, barely.
-rw-r--r-- | npc/functions/villagertalk.txt | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/npc/functions/villagertalk.txt b/npc/functions/villagertalk.txt index 1df55c97..4bbdf6a2 100644 --- a/npc/functions/villagertalk.txt +++ b/npc/functions/villagertalk.txt @@ -5,32 +5,22 @@ // Contributors: // Akko Teru // Description: -// Tell a random sentence. || There ought to be a law! +// Tell a random sentence. // Variables: // .@rand = Random number between the number of sentence choice. -// .@darn = Separatly chosen value for silly antics. function script villagertalk { .@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!"); + emotion 6; // "Angel". + goodbye; } + if (rand(42) == 23) + npctalk3 l("Stop it!"); // This could happen just before another talk function. + if (.@rand == 1) { speech 4, @@ -48,18 +38,19 @@ function script villagertalk { 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; + //wait 1; + emotion 6; } - if ((.@rand == 4) && (.@darn == 2)) + if ((.@rand == 4) && (rand(42) == 0)) { npctalk3 l("I just want to live my life in peace."); } - else if (((.@rand + .@darn) - 2) == 9) + + if (rand(42) == 0) { - zeny rand(10); - emote rand(13); + Zeny = Zeny + rand(10); + emotion rand(13); goodbye; } |