diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-26 18:55:45 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-26 18:55:45 -0200 |
commit | 2176003493ac8b85a52e8e4c88d68a2786fe33b9 (patch) | |
tree | 0cd266943d0978e65a35c03ae3fa6d5b8a9ff294 /npc | |
parent | e8e4ee91d1b7ff7943d38d0ee1997440e2961818 (diff) | |
download | serverdata-2176003493ac8b85a52e8e4c88d68a2786fe33b9.tar.gz serverdata-2176003493ac8b85a52e8e4c88d68a2786fe33b9.tar.bz2 serverdata-2176003493ac8b85a52e8e4c88d68a2786fe33b9.tar.xz serverdata-2176003493ac8b85a52e8e4c88d68a2786fe33b9.zip |
Remove skill debug command
Diffstat (limited to 'npc')
-rw-r--r-- | npc/commands/debug-skill.txt | 84 | ||||
-rw-r--r-- | npc/commands/debug.txt | 14 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
3 files changed, 6 insertions, 93 deletions
diff --git a/npc/commands/debug-skill.txt b/npc/commands/debug-skill.txt deleted file mode 100644 index 6692ad812..000000000 --- a/npc/commands/debug-skill.txt +++ /dev/null @@ -1,84 +0,0 @@ -// Evol Script -// Author: Gumi, Monwarez - -function script GlobalSkillDebug { - - function modifySkill { - - function setSkill { - clear; - mes l("Enter desired skill level:"); - input .@y; - skill getarg(0,1), max(0, min(10, .@y)), 0; - return; - } - - setnpcdialogtitle l("Skill Debug - Modify Skill"); - .@k = getarg(0,1); - .@v = getskilllv(.@k); - select - menuimage("actions/abort", l("Abort")), - rif(.@v > 0, menuimage("actions/remove", l("Remove this skill"))), - rif(.@v < 10, menuimage("actions/raise", l("Raise this skill"))), - rif(.@v > 0, menuimage("actions/lower", l("Lower this skill"))), - menuimage("actions/edit", l("Set the level manually")), - menuimage("actions/back", l("Return to skill debug menu")); - - switch (@menu) - { - case 2: skill .@k, 0, 0; break; - case 3: skill .@k, min(10, .@v + 1), 0; break; - case 4: skill .@k, max(0, .@v - 1), 0; break; - case 5: setSkill .@k; break; - } - - return; - } - - do - { - clear; - setnpcdialogtitle l("Skill Debug"); - mes l("This menu allows you to change your skills."); - mes ""; - - mes "---"; - // FIXME: maybe get skills from an array or `getskilllist;` <= would need a `getskillinfo()` buildin though - mes "NV_BASIC: " + getskilllv(NV_BASIC); - mes "---"; - - mes ""; - mes l("Which skill do you wish to change?"); - next; - - menuint - "NV_BASIC", NV_BASIC, - rif(getarg(0,0), menuimage("actions/back", l("Return to Debug menu"))), -1; - - switch (@menuret) - { - case -1: return; - } - - modifySkill @menuret; - - } while (1); -} - - - -- script @sdebug 32767,{ - end; - -OnCall: - if (!debug && !is_admin()) - { - end; - } - GlobalSkillDebug; - closedialog; - end; - -OnInit: - bindatcmd "sdebug", "@sdebug::OnCall", 99, 99, 1; -} diff --git a/npc/commands/debug.txt b/npc/commands/debug.txt index 6d127a31e..70d0d8392 100644 --- a/npc/commands/debug.txt +++ b/npc/commands/debug.txt @@ -99,7 +99,6 @@ function script GlobalDebugMenu { select l("Change my level"), l("Change my stats"), - l("Change my skills"), l("Change my appearance"), l("Create items"), l("Get money"), @@ -113,13 +112,12 @@ function script GlobalDebugMenu { { case 1: changeLevel; break; case 2: changeStats; break; - case 3: GlobalSkillDebug .@c; break; - case 4: BarberDebug .@c; break; - case 5: closedialog; clientcommand "createitems"; end; - case 6: dispbottom l("Use ##B@zeny##b instead!"); break; - case 7: GlobalQuestDebug .@c; break; - case 8: resetAll; break; - case 9: return; + case 3: BarberDebug .@c; break; + case 4: closedialog; clientcommand "createitems"; end; + case 5: dispbottom l("Use ##B@zeny##b instead!"); break; + case 6: GlobalQuestDebug .@c; break; + case 7: resetAll; break; + case 8: return; } } while(1); } diff --git a/npc/scripts.conf b/npc/scripts.conf index c9b3528a0..6e3eef3c0 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -69,7 +69,6 @@ "npc/commands/exp.txt", "npc/commands/debug-look.txt", "npc/commands/debug-quest.txt", -"npc/commands/debug-skill.txt", "npc/commands/debug.txt", "npc/commands/discord.txt", "npc/commands/ipcheck.txt", |