summaryrefslogtreecommitdiff
path: root/world/map/npc/026-2/door.txt
blob: 12429a4180d90d8430720f5905b531dc72418a9e (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
026-2,77,92,0|script|#DoorIn|45,0,0
{
    set @Graveyard_Inn_MASK, NIBBLE_0_MASK;
    set @Graveyard_Inn_SHIFT, NIBBLE_0_SHIFT;

    set @reid, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT);

    if (@reid >= 6) goto L_Warp;
    message strcharinfo(0), "The door is locked.";
    end;

L_Warp:
    warp "026-2", 77, 89;
    set @reid, 0;
    end;
}

// TODO replace this with a plain warp
026-2,77,90,0|script|#DoorOut-gyinn|45,0,0
{
    warp "026-2", 77, 93;
    end;
}