summaryrefslogtreecommitdiff
path: root/world/map/npc/033-1/debug.txt
blob: d062ae55b874beddf0a766c619eb6f4e78e9b8d2 (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
// A debug NPC for barbarian quest

033-1.gat,70,32,0|script|Kimarr Debug|218,{

    menu
        "Reset all records", -,
        "Reset quest",L_Reset,
        "Set Fluffy Hunting done", L_Fluffy,
        "Close", L_Close;

    cleararray $Record_Fluffy_Kills, 0, MAX_HIGH_SCORES;
    cleararray $Record_Fluffy_Name$, "", MAX_HIGH_SCORES;
    cleararray $Record_Fluffy_Date$, "", MAX_HIGH_SCORES;

L_Fluffy:
    set @Q_Barbarians_MASK, NIBBLE_0_MASK;
    set @Q_Barbarians_SHIFT, NIBBLE_0_SHIFT;
    set @state, 3;
    callsub S_Update_Mask;
    wolvern_count
    close;

L_Reset:
    set @Q_Barbarians_MASK, NIBBLE_0_MASK;
    set @Q_Barbarians_SHIFT, NIBBLE_0_SHIFT;
    set @state, 0;
    callsub S_Update_Mask;
    set wolvern_count, 0;
    close;

S_Update_Mask:
    set QUEST_Barbarians,
        (QUEST_Barbarians & ~(@Q_Barbarians_MASK))
            | (@state << @Q_Barbarians_SHIFT);
    return;

L_Close:
    close;
}