summaryrefslogtreecommitdiff
path: root/npc/commands/debug-quest.txt
blob: 889c988d45b8245e75f409089e9772c5d397fe04 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
function	script	GlobalQuestDebug	{

    function qDebugShip {
        function qDebugGugli {
            do
            {
                clear;
                setnpcdialogtitle l("Quest debug") + " - " + l("Prologue") + " - Gugli";
                mes l("This menu gives access to quest debug menus for @@ quest subquests.", "Gugli");
                next;
                mes l("Please select a quest:");

                menuint
                    menuimage("actions/back", l("Go back")), -1,
                    l("Gugli (main quest)"), ShipQuests_Gugli,
                    "Ale", ShipQuests_Ale,
                    "Astapolos", ShipQuests_Astapolos,
                    "Gulukan", ShipQuests_Gulukan,
                    "Jalad", ShipQuests_Jalad,
                    "Q'Muller", ShipQuests_QMuller,
                    "Tibbo", ShipQuests_Tibbo;

                switch (@menuret)
                {
                    case -1: return;
                    default: callfunc "QuestDebug" + @menuret;
                }
            } while (1);
        }

        do
        {
            clear;
            setnpcdialogtitle l("Quest debug") + " - " + l("Prologue");
            mes l("This menu gives access to quest debug menus for @@ quests.", l("Prologue"));
            next;
            mes l("Please select a quest:");

            menuint
                menuimage("actions/back", l("Go back")), -1,
                "Julia", ShipQuests_Julia,
                "Arpan", ShipQuests_Arpan,
                "Alige", ShipQuests_Alige,
                "Peter", ShipQuests_Peter,
                "Nard", ShipQuests_Nard,
                l("Knife"), ShipQuests_Knife,
                l("Money"), ShipQuests_ArpanMoney,
                l("Door"), ShipQuests_Door,
                "Couwan", ShipQuests_Couwan,
                l("Treasure Chest"), ShipQuests_TreasureChest,
                "Gugli", ShipQuests_Gugli,
                "Gado", ShipQuests_ChefGado;

            switch (@menuret)
            {
                case 16: qDebugGugli; break;
                case -1: return;
                default: callfunc "QuestDebug" + @menuret;
            }
        } while (1);
    }

    function qDebugArtis {
        do
        {
            clear;
            setnpcdialogtitle l("Quest debug") + " - " + l("Artis");
            mes l("This menu gives access to quest debug menus for @@ quests.", "Artis");
            next;
            mes l("Please select a quest:");

            menuint
                menuimage("actions/back", l("Go back")), -1,
                l("Lazy Brother"), ArtisQuests_LazyBrother,
                l("Urchin"), ArtisQuests_Urchin,
                l("Catching a piou"), ArtisQuests_CatchPiou,
                "Eugene (" + l("fisherman") + ")", ArtisQuests_Fishman,
                "Q'Onan", ArtisQuests_QOnan,
                "Enora", ArtisQuests_Enora,
                "Fexil", ArtisQuests_Fexil,
                "Lloyd", ArtisQuests_Lloyd,
                l("Mona's dad"), ArtisQuests_MonaDad,
                l("Artis legion progress"), Artis_Legion_Progress;

            switch (@menuret)
            {
                case -1: return;
                default: callfunc "QuestDebug" + @menuret;
            }
        } while (1);
    }

    function qDebugGeneral {
        do
        {
            clear;
            setnpcdialogtitle l("Quest debug") + " - " + l("Other");
            mes l("This menu gives access to quest debug menus for @@ quests.", strtolower(l("Other")));
            next;
            mes l("Please select a quest:");

            menuint
                menuimage("actions/back", l("Go back")), -1,
                l("Cookies"), General_Cookies,
                "Rumly", General_Rumly,
                l("Narrator"), General_Narrator,
                "Janus", General_Janus;

            switch (@menuret)
            {
                case -1: return;
                default: callfunc "QuestDebug" + @menuret;
            }
        } while (1);
    }

    do
    {
        clear;
        setnpcdialogtitle l("Quest debug");
        mes l("This menu gives access to all quest debug menus.");
        next;
        mes l("Please select a category:");

        select
            l("Prologue"),
            "Artis",
            l("Other"),
            rif(getarg(0,0), menuimage("actions/back", l("Return to Debug menu")));

        switch (@menu)
        {
            case 1: qDebugShip; break;
            case 2: qDebugArtis; break;
            case 3: qDebugGeneral; break;
            case 4: return;
        }
    } while (1);
}



-	script	@qdebug	32767,{
    end;

OnCall:
    if (!debug && !is_trusted())
    {
        end;
    }
    GlobalQuestDebug;
    closedialog;
    end;

OnInit:
    bindatcmd "qdebug", "@qdebug::OnCall", 0, 99, 0;
}