summaryrefslogtreecommitdiff
path: root/npc/functions/quest-debug/050-HurnscaldQuests_Hinnak.txt
blob: 31183eb854014e501d09c79b26d808d924f31fd6 (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
// Hinnak quest debug
// Author:
//    gumi

function	script	QuestDebug50	{
    do
    {
        clear;
        setnpcdialogtitle l("Quest debug");
        mes "HurnscaldQuests_Hinnak";
        mes "---";
        mes l("Quest state: @@, @@",
            getq(HurnscaldQuests_Hinnak),
            getq2(HurnscaldQuests_Hinnak));
        next;

        GenericQuestDebug HurnscaldQuests_Hinnak,
            l("Cannot do the quest"), 0,
            l("Can do the quest"), 1,
            l("Hinnak asked for help"), 2,
            l("Helped Hinnak"), 3;

        switch (@menuret)
        {
            case 0:
            case 1:
            case 2: setq HurnscaldQuests_Hinnak, getq(HurnscaldQuests_Hinnak), 0; break;
            default: if (@menuret < 0) return;
        }

    } while (1);
}