summaryrefslogtreecommitdiff
path: root/world/map/npc/027-3/locked_doors.txt
blob: b2ec87790fdba74bc7e740b42a751efbe8f4b46c (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Locked Doors

027-3.gat,22,29,0|script|#CLockDoor1|35,0,0
{
    if (countitem("CryptKey") < 5)
        goto L_NoKeys;
    mes "Open the Locked Door?";
    menu
        "Yes.", L_Open,
        "No.", L_Close;

L_Open:
    delitem "CryptKey", 5;
    warp "027-3.gat",22,26;
    goto L_Close;

L_NoKeys:
    message strcharinfo(0), "This door is locked.";
    end;

L_Close:
    close;
}

027-3.gat,22,27,0|script|#CInsideDoor1|35,0,0
{
    mes "Open the Door?";
    menu
        "Yes.", L_Open,
        "No.", L_Close;

L_Open:
    warp "027-3.gat",22,30;
    message strcharinfo(0), "This door slams shut and locks itself behind you.";
    goto L_Close;

L_Close:
    close;
}

027-3.gat,37,29,0|script|#CLockDoor2|35,0,0
{
    if (countitem("CryptKey") < 5)
        goto L_NoKeys;
    mes "Open the Locked Door?";
    menu
        "Yes.", L_Open,
        "No.", L_Close;

L_Open:
    delitem "CryptKey", 5;
    warp "027-3.gat",37,26;
    goto L_Close;

L_NoKeys:
    message strcharinfo(0), "This door is locked.";
    end;

L_Close:
    close;
}

027-3.gat,37,27,0|script|#CInsideDoor2|35,0,0
{
    mes "Open the Door?";
    menu
        "Yes.", L_Open,
        "No.", L_Close;

L_Open:
    warp "027-3.gat",37,30;
    message strcharinfo(0), "This door slams shut and locks itself behind you.";
    goto L_Close;

L_Close:
    close;
}

027-3.gat,128,29,0|script|#CLockDoor3|35,0,0
{
    if (countitem("CryptKey") < 5)
        goto L_NoKeys;
    mes "Open the Locked Door?";
    menu
        "Yes.", L_Open,
        "No.", L_Close;

L_Open:
    delitem "CryptKey", 5;
    warp "027-3.gat",128,26;
    goto L_Close;

L_NoKeys:
    message strcharinfo(0), "This door is locked.";
    end;

L_Close:
    close;
}

027-3.gat,128,27,0|script|#CInsideDoor3|35,0,0
{
    mes "Open the Door?";
    menu
        "Yes.", L_Open,
        "No.", L_Close;

L_Open:
    warp "027-3.gat",128,30;
    message strcharinfo(0), "This door slams shut and locks itself behind you.";
    goto L_Close;

L_Close:
    close;
}

027-3.gat,22,22,0|script|Crypt#1|35,0,0
{
    // Coords X: 117,104,110,118;
    // Coords Y:  53, 87, 53,87;
    end;
}
027-3.gat,35,22,0|script|Crypt#2|35,0,0
{
    // Coords X: 105,118,118,122;
    // Coords Y:  58, 77, 72, 58
    end;
}