summaryrefslogtreecommitdiff
path: root/npc/002-3/doors.txt
blob: 82a005a0835ba09ce75dccc49fb2b64bbe213490 (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
48
49
50
51
52
53
54
55
56
57
// TMW2 Scripts.
// Author:
//    Jesusalva
// Description:
//    Nard's ship Doors NPCs.

002-3,30,28,0	script	AreaNPC#doors4	NPC_HIDDEN,0,0,{

OnTouch:
    if (LOCATION$ == "Candor") {
        warp "005-1", 42, 107;
        close;
    }
    if (LOCATION$ == "Tulim") {
        warp "003-1", 81, 68;
        close;
    }

    setcamnpc "Julia";
    mesn "Julia";
    mesq l("The captain has locked the door, you should go see him.");
    next;

    mesn "Narrator";
    mesc l("Captain Nard is in the room to your right.");
    next;
    restorecam;

    close;


}

002-3,44,28,0	script	AreaNPC#doors5	NPC_HIDDEN,0,0,{

OnTouch:
    .@julia = getq(ShipQuests_Julia);
    if (.@julia >= 2) goto L_Warp;
    close;

L_Warp:
    if (LOCATION$ == "") 
        warp "002-4", 20, 27;
    else
        warp "002-4@"+LOCATION$, 20, 27;
    close;
}

002-3,42,25,0	script	AreaNPC#002-3d	NPC_HIDDEN,0,0,{

OnTouch:
    if (LOCATION$ == "") 
        warp "002-1", 72, 29;
    else
        warp "002-1@"+LOCATION$, 72, 29;
    close;
}