summaryrefslogtreecommitdiff
path: root/npc/000-2-0/doors.txt
blob: ee792c53fffbfb81a17ad4249b3d1b93027fb3e4 (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
58
59
60
61
62
63
64
65
66
67
// Evol scripts.
// Author:
//    Reid
// Description:
//    Doors NPCs.
//    The third value of the .@nard variable has been removed for the beta2, it'll then be re-added for the Aurora release.
// Variable:
//    0 ShipQUests_Nard
//    1 ShipQuests_Julia
// Values:
//    00   Introduction of the box and Nard. This is displayed when the player never spoke to Nard or his box.
//    01   Nard spoke and gave access to the outdoor of the ship.
//    02   Completed the quest.
//    03   Opened the chest and finished the introduction.
//    10   Has not talked to Julia
//    11   Need to see Julia
//    12   Has been registered by Julia

000-2-0,20,28,0	script	AreaNPC#doors1	32767,0,0,{

OnTouch:
    .@nard = getq(ShipQuests_Nard);
    if (.@nard > 0 && countitemcolor("JohanneKey") > 0) goto L_Key;
//  if (.@nard == 2) goto L_GotoNard;
//  if (.@nard == 3) goto L_End;

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

    mesn "Narrator";
    mes col(l("Captain Nard is in the room to your right."), 9);
    restorecam;

    close;

L_Key:
    warp "000-1", 93, 100;
    close;

L_GotoNard:
    setcamnpc "Julia";
    mesn "Julia";
    mesq l("The captain is waiting for you! Hurry up.");
    next;
    restorecam;

    close;

L_End:
    npctalk3 l("This door is locked.");

    close;
}

000-2-0,33,28,0	script	AreaNPC#doors2	32767,0,0,{

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

L_Warp:
    warp "000-2-3", 20, 27;
    close;
}