summaryrefslogtreecommitdiff
path: root/npc/functions/quest-debug/031-General_Janus.txt
blob: f97b4fbeb3c628d19dcf75e78275b6b0aca28149 (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
// Janus quest debug
// Author:
//    gumi

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

        GenericQuestDebug General_Janus,
            l("Does not have the quest"), 0,
            l("Talked to Janus"), 1,
            l("Can create party"), 2,
            l("Can create guild"), 3;

        switch (@menuret)
        {
            case 0:
            case 1: skill NV_BASIC, min(6, getskilllv(NV_BASIC)), 0; break;
            case 2:
            case 3: skill NV_BASIC, max(7, getskilllv(NV_BASIC)), 0; break;
            default: if (@menuret < 0) return;
        }

    } while (1);
}