summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/quest-debug/functions.txt76
1 files changed, 0 insertions, 76 deletions
diff --git a/npc/functions/quest-debug/functions.txt b/npc/functions/quest-debug/functions.txt
deleted file mode 100644
index 9dd057ad6..000000000
--- a/npc/functions/quest-debug/functions.txt
+++ /dev/null
@@ -1,76 +0,0 @@
-// Evol functions.
-// Author:
-// gumi
-// Description:
-// generic quest debug functions
-
-
-
-// GenericQuestDebug
-// makes a generic quest debug menu for the given quest when the server
-// is in debug mode.
-
-function script GenericQuestDebug {
- if (!debug && !is_admin())
- {
- select
- l("Go back");
-
- @menuret = -0x7FFFFFFF;
- return 1;
- }
-
- mes l("Choose desired quest state:");
-
- deletearray .@vals;
- .@menustr$ = menuimage("actions/abort", l("Do nothing")) + ":";
- .@vals[0] = -0x7FFFFFFF;
- .@cnt = 1;
-
- for (.@f = 1; .@f < getargcount(); .@f += 2)
- {
- if (getarg(.@f) != "")
- {
- .@qv = getarg(.@f + 1);
- .@s$ = menuimage("actions/" + (.@qv ? "edit" : "reset"), "[" + .@qv + "] " + getarg(.@f));
- .@menustr$ += (.@qv < 0 ? getarg(.@f) : .@s$) + ":";
- .@vals[.@cnt] = .@qv;
- ++.@cnt;
- }
- }
-
- if (is_admin())
- {
- .@menustr$ += menuimage("actions/nuke", l("Set state manually"));
- .@vals[.@cnt] = -0x7FFFFFFE;
- }
-
-
- @menu = 255;
- @menuret = -1;
- select(.@menustr$);
- if (@menu == 255)
- return -1;
-
- --@menu;
- if (@menu < 0 || @menu >= getarraysize(.@vals))
- return -1;
-
- @menuret = .@vals[@menu];
-
- switch (@menuret)
- {
- case -0x7FFFFFFE: input @menuret; setq getarg(0,0), @menuret;
- case -0x7FFFFFFF: return 1;
- }
-
- if (@menuret >= 0)
- {
- setq getarg(0,0), @menuret;
- }
- return;
-}
-
-
-
-