summaryrefslogtreecommitdiff
path: root/world/map/npc/031-1/house.txt
blob: b35d816f47a2041c4953eeed85b7269bb3eb509c (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
// here is based on the queststatus for the rescue Cindy quest, if the player can enter
// player can enter, if Cindy is already saved and the player has been invited, quest status > 2
// author: Jenalya

031-1.gat,95,80,0|script|#Door|45,0,0,{
    set @Q_Nivalis_state_MASK, NIBBLE_5_MASK;
    set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT;

    set @rescue_Cindy, ((QUEST_Nivalis_state & @Q_Nivalis_state_MASK) >> @Q_Nivalis_state_SHIFT);

    if (@rescue_Cindy > 2)
        goto L_Warp;
    message strcharinfo(0), "The door is locked.";

    set @Q_Nivalis_state_MASK, 0;
    set @Q_Nivalis_state_SHIFT, 0;
    set @rescue_Cindy, 0;
    close;

L_Warp:
    warp "031-2.gat", 23, 28;
    end;
}