diff options
author | gumi <mekolat@users.noreply.github.com> | 2016-08-18 18:45:01 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2016-09-02 20:16:53 -0400 |
commit | 5d7c9eb8b6f3175d7eb5afe28eb85519d1d2cd2d (patch) | |
tree | f917e542caacec1361a237b2ee25ef184dcbcc9b /npc/commands/debug-preset.txt | |
parent | 3aaf8002319cdebd93f2292e6d18cb727c532550 (diff) | |
download | serverdata-5d7c9eb8b6f3175d7eb5afe28eb85519d1d2cd2d.tar.gz serverdata-5d7c9eb8b6f3175d7eb5afe28eb85519d1d2cd2d.tar.bz2 serverdata-5d7c9eb8b6f3175d7eb5afe28eb85519d1d2cd2d.tar.xz serverdata-5d7c9eb8b6f3175d7eb5afe28eb85519d1d2cd2d.zip |
last minute changes
Diffstat (limited to 'npc/commands/debug-preset.txt')
-rw-r--r-- | npc/commands/debug-preset.txt | 40 |
1 files changed, 7 insertions, 33 deletions
diff --git a/npc/commands/debug-preset.txt b/npc/commands/debug-preset.txt index 1012c71c..7b7b94fe 100644 --- a/npc/commands/debug-preset.txt +++ b/npc/commands/debug-preset.txt @@ -23,6 +23,11 @@ function script DoRoutine { clearitem; } + if (compare(.@routine$[0], "e")) + { + nude; + } + if (compare(.@routine$[0], "k")) { resetskill; @@ -91,40 +96,10 @@ function script DoRoutine { } } } -} -function script DebugPresets { - - if (getarg(0, "m") != "m") - { - DoRoutine getarg(0); - end; - } - - clear; - setnpcdialogtitle l("Debug Presets"); - mes l("This menu allows you to select debug presets."); - mes ""; - mes l("What preset do you want to use?"); - next; - // TODO: create presets and add them to a hash table, then dynamically build this menu - menuint - menuimage("actions/abort", l("Abort")), 1, - l("New player"), 2, - rif(getarg(0,"") == "m", menuimage("actions/back", l("Return to Debug menu"))), 1, - menuimage("actions/exit", l("Close")), 3; - - switch (@menuret) - { - case 1: return; - case 2: DoRoutine "-tksxq z w000-0"; break; - } - - closedialog; + return; } - - - script @pre 32767,{ end; @@ -137,8 +112,7 @@ OnCall: { .@atcmd_parameters$[0] = implode(.@atcmd_parameters$[0], " "); } - DebugPresets strip(.@atcmd_parameters$[0]); - closedialog; + DoRoutine strip(.@atcmd_parameters$[0]); end; OnInit: |