summaryrefslogtreecommitdiff
path: root/npc/001-1/rowboat.txt
blob: c600f5533e421246a1e0b28e8489443ac11693e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Evol scripts.
// Author:
//    Micksha, Toams
// Description:
//    The rowboat, picking up the player on small beach in order to bring it to Koga.
// TODO:
// Check if the player who wants to enter the boat is the same as the one who called for the boat. 
// Make the rowboat move back to the cave if the player doesnt enter in time.

001-1,193,26,0	script	#Rowboat	NPC_ROWBOAT_STAND_WE,{
    speech S_LAST_BLANK_LINE | S_LAST_NEXT,
        l("Oh, hi."),
        l("In case you don't have a commendatory letter from you-know-whom, I am just sitting here and observe the whales."),
        l("Perhaps, and only perhaps, if you bring me the latter, I can bring you to a ship that will perhaps, and only perhaps, be able to bring you to Woodland."),
        l("Do you have this commendatory letter?");
        closeclientdialog();
        if (askyesno() == 1) {
           slide_or_warp("001-1", 204, 62);
           movenpc("#Rowboat", 193, 26);
           setmount 1;

    close;
    }

OnMoveToBeach:
    firstmove;
end;

OnTimer1000:
    dographmovestep;

OnInit:
    .sex = G_MALE;
    .distance = 3;
    .speed = 175;

    initmovegraph "Cave",  193, 26,
                  "CP1",   202, 27,
                  "CP2",   213, 58,
                  "Beach", 203, 64;

    setmovegraphcmd "Cave",   "CP1",      1,  "dir 4",
                    "CP1",    "CP2",      1,  "dir 4",
                    "CP2",    "Beach",    1,  "dir 4";
    firstmove;
    initnpctimer;
}