diff options
Diffstat (limited to 'npc/functions/quest-debug/functions.txt')
-rw-r--r-- | npc/functions/quest-debug/functions.txt | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/npc/functions/quest-debug/functions.txt b/npc/functions/quest-debug/functions.txt index f89adfab7..9dd057ad6 100644 --- a/npc/functions/quest-debug/functions.txt +++ b/npc/functions/quest-debug/functions.txt @@ -14,7 +14,7 @@ function script GenericQuestDebug { if (!debug && !is_admin()) { select - menuimage("actions/back", l("Go back")); + l("Go back"); @menuret = -0x7FFFFFFF; return 1; @@ -73,37 +73,4 @@ function script GenericQuestDebug { -// selectd -// like a normal select() but gives access to quest debug -// -// quest id can either be passed as first argument -// or as the .quest_debug npc variable -function script selectd { - .@menustr$ = rif(debug, menuaction(l("debug"))); - .@count = getargcount(); - .@f = 0; - .@questID = getvariableofnpc(.quest_debug, strnpcinfo(0)); - - if (.@count > 1 && !isstr(getarg(0))) - { - ++.@f; - .@questID = getarg(0); - } - - for (; .@f < .@count; ++.@f) - { - .@menustr$ += ":" + getarg(.@f); - } - - @menu = 255; - select .@menustr$; - - switch (@menu) - { - case -1: - case 255: return -1; - default: @menu -= 1; return @menu; // FIXME: here I would have done `return --@menu;` but hercules prevents this - case 1: callfunc "QuestDebug" + .@questID; closedialog; end; - } -} |