diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-05-31 16:55:31 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-05-31 16:55:31 -0300 |
commit | 10f9b232849b89085bbeb24cf2983177e4e9fcd0 (patch) | |
tree | 8c331b936bb0b43f3b65fb1e03399df6ca6dbe71 /npc/functions | |
parent | 02f9f13bda976e9afd38436ef56c2a81d09ef9fe (diff) | |
download | serverdata-10f9b232849b89085bbeb24cf2983177e4e9fcd0.tar.gz serverdata-10f9b232849b89085bbeb24cf2983177e4e9fcd0.tar.bz2 serverdata-10f9b232849b89085bbeb24cf2983177e4e9fcd0.tar.xz serverdata-10f9b232849b89085bbeb24cf2983177e4e9fcd0.zip |
Remove now entirely unused file
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/quest-debug/functions.txt | 76 |
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; -} - - - - |