summaryrefslogtreecommitdiff
path: root/world/map/npc/018-2/books.txt
blob: 90c4d0901d09a20383f49272ffbff357faef23e1 (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
//

018-2.gat,112,19,0|script|#Bookcase38|400,0,1
{
    callfunc "ClearVariables";

    set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);

    if (@inspector == 11) goto L_NohMask;
    mes "Looking over the bookcase, you find nothing strange or out of order.";
    goto L_Close;

L_NohMask:
    mes "Looking over the bookcase closely, you find a book is upside down.";
    next;
    mes "The book has been hollowed out. Inside is a theater mask and a note that you cannot even begin to read.";
    next;
    set @inspector, 12;
    set QUEST_Hurnscald, (QUEST_Hurnscald & ~(NIBBLE_3_MASK)) | (@inspector << NIBBLE_3_SHIFT);
    goto L_Close;

L_Close:
    set @inspector, 0;
    close;
}