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
|
// TODO: This script must be auto-generated from db/quests.conf to be of any use
function script GlobalQuestDebug {
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("Custom"), -136;
switch (@menuret)
{
case -1: return;
case -136:
mes "Determine the quest number, as stated in db/quests.conf";
input .@quest;
if (!.@quest) return;
mes "";
mes l("DEBUG: Changing @@ from @@ to something else.", getquestlink(.@quest), getq(.@quest));
mes "";
mes "Determine the new value (numeric only)";
input .@value;
if (.@value < 0) return;
setq .@quest, .@value;
return;
default: return;
}
} 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("Other"),
rif(getarg(0,0), menuimage("actions/back", l("Return to Debug menu")));
switch (@menu)
{
case 1: qDebugGeneral; break;
default: return;
}
} while (1);
}
- script @qdebug 32767,{
end;
OnCall:
if (!debug && !is_trusted())
{
end;
}
GlobalQuestDebug;
closedialog;
end;
OnInit:
bindatcmd "qdebug", "@qdebug::OnCall", 99, 99, 1;
}
|