summaryrefslogblamecommitdiff
path: root/npc/functions/villagertalk.txt
blob: da90ec9002e7682e78e9552ea0b81d6683c7e61c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                  
           
          
                   

                
               
                                                         

                                                                   
                                                       


                                         





                         

                                  



                    

                                  




                                                 






                                                                                                                                           









                                                                                                                             

                  







                                                            

                         

                


           
// Evol functions.
// Authors:
//    Reid
//    Qwerty Dragon
// Contributors:
//    Akko Teru
// Description:
//    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(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,
            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)
        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;
}