summaryrefslogblamecommitdiff
path: root/npc/020-7-1/oskari.txt
blob: 903c58aa1d33875567ae9de5f0bfbae32fbfd13b (plain) (tree)
1
2
3
4
5
6





                 

























                                                                                            

                                                               





                                              
                                    










































                                                                                                                                                                     




































                                                                                                                                                                      
















                                                                         

       

































                                                                            




                  
// TMW2 scripts.
// Authors:
//    Jesusalva
//    TMW Org.
// Description:
//    Helper boss
//
// NivalisQuest_BlueSage STRUCTURE
//  FIELD 1:
//      INVESTIGATION
//      1 - STBY OUTSIDE
//      2 - ACCESS GRANTED
//      3 - QUEST ASSIGNED BY PEETU - talk to Oskari (and others)
//      4 - Oskari is OK with peetu, but wanna hear from others. He also sends you
//          to ask what Peetu happened
//      5 - Adultered ingredients seems the cause, report to Elias
//      6 - Elias is now worried about a visitor. Ask people about and report.
//      7 - If everyone found the visitor, confirm Elias the worries
//      8 - Elias sent you to Oskari to inform the issue. Blue Sage probably knew all along.
//      will not advance unless everyone thinks Peetu is good.
//      9 - Oskari accepts the cause. Tells to report Peetu that it probably was
//          a saboutage, to check if the Silk Cocoon really was there.
//      10 - Peetu confirmed the saboutage. Report to Blue Sage.
//      11 - Blue Sage accepted the evidence, and explains about other sages issues.
//          It's not known who or what is behind this. He excuses for making you waste
//          your time. He asks you to return to him later, as he needs to write letters.
//      12 - QUEST COMPLETE - You collected your reward
//          Also picked up a letter for Frostia Mayor, about the incident (Main Story).
//  FIELD 2:
//      Bitwise (BS_QVISITOR)
//  FIELD 3:
//      Bitwise (BS_QHELPER)

020-7-1,122,29,0	script	Oskari	NPC_BLUESAGEWORKER_FB,{
    function pIdle;

    function pPeetu; // Peetu sent you to them
    function pElias; // Elias sent you to them
    function pComplete;

    .@q=getq(NivalisQuest_BlueSage);
    switch (.@q) {
        case 2:
            pIdle();
            break;
        case 3:
            pPeetu();
            break;
        case 4:
        case 5:
        case 6:
        case 7:
            pIdle();
            break;
        case 8:
            pElias();
            break;
        case 9:
        case 10:
        case 11:
            pIdle();
            break;
        case 12:
            pComplete();
            break;
        default:
            warp "Save", 0, 0;
            percentheal -100, -100;
            end;
            break;
    }
    close;


// Here we begin
function pIdle {
    mesn;
    mesq l("You have to excuse me, as you might have heard we're having some trouble at the moment and I, as Chief of Nikolai's household staff, have a lot to do.");
    close;
}

// Here we begin
function pPeetu {
    mesn;
    mesq l("You have to excuse me, as you might have heard we're having some trouble at the moment and I, as Chief of Nikolai's household staff, have a lot to do.");
    next;
    select
        l("Ok, see you."),
        l("Peetu asked me to talk to you about his mishap.");
    mes "";
    if (@menu == 1)
        close;
    mesn;
    mesq l("So, what did he said?");
    next;
    mesn strcharinfo(0);
    mesq l("He is blaming himself and is afraid of losing his job.");
    next;
    mesn;
    mesq l("Well... Can't say I'm surprised. He is very perfectionist. Putting on himself the blame is something he would do.");
    next;
    mesn;
    mesq l("Well, all humans does mistakes... Wait, he is an elf. So, everyone commit mistakes. Anyway...");
    next;
    mesc l("@@ stops, and keep silent for a while, thinking, before continuing.", .name$);
    next;
    mesn;
    mesq l("You know, he is very experienced and reliable. He might look and act like a kid, but he is at least a century old.");
    next;
    mesn;
    mesq l("This whole situation is very disquieting, not to say suspicious. There might be something more to it that we're not seeing.");
    next;
    mesn;
    mesq l("It might be just my gut instict, but... Would you be willing to talk with Peetu and the other helpers, investigating what actually happened?");
    next;
    mesn;
    mesq l("The whole team is very distressed, too. Could you take the opportunity to see if the team is putting the blame on Peetu? Thanks in advance.");
    next;
    mesn;
    mesq l("Please tell Peetu I do not plan in firing him, it should calm him down. And please carry out an investigation, don't disrupt my work until you're done.");
    setq1 NivalisQuest_BlueSage, 4;
    close;
}

// Here we begin
function pElias {
    mesn;
    mesq l("ERROR ELIAS");
    close;
}

// Here we begin
function pComplete {
    mesn;
    mesq l("Thanks again for your investigations. It was a great help.");
    close;
}


OnInit:
    initpath "move", 122, 29,
             "dir", UP, 0,
             "wait", 15, 0,
             "dir", LEFT, 0,
             "move", 56, 29,
             "wait", 3, 0,
             "dir", RIGHT, 0,
             "wait", 7, 0,
             "dir", LEFT, 0,
             "wait", 7, 0,
             "dir", DOWN, 0,
             "move", 55, 48,
             "wait", 3, 0,
             "dir", RIGHT, 0,
             "wait", 10, 0,
             "dir", DOWN, 0,
             "wait", 10, 0,
             "dir", LEFT, 0,
             "wait", 3, 0,
             "move", 26, 46,
             "dir", UP, 0,
             "wait", 4, 0,
             "dir", RIGHT, 0,
             "wait", 4, 0,
             "dir", DOWN, 0,
             "wait", 2, 0,
             "move", 25, 77,
             "wait", 3, 0,
             "dir", RIGHT, 0,
             "wait", 10, 0;
            // And go back to Peetu, which is very far away, 'cause I'm lazy
    initialmove;
    initnpctimer;

    .sex=G_FEMALE;
    .distance=5;
    end;
}