summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-29 18:16:25 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-29 18:16:25 -0300
commit6308005f438805a86ec7869c209547f4224ee8c2 (patch)
tree84f479beec590ffd708fa65b67a9d405f152da7a /npc/commands
parent4d6d99d9117b1de60bb8ac1f55e2dcafdd3095c5 (diff)
downloadserverdata-6308005f438805a86ec7869c209547f4224ee8c2.tar.gz
serverdata-6308005f438805a86ec7869c209547f4224ee8c2.tar.bz2
serverdata-6308005f438805a86ec7869c209547f4224ee8c2.tar.xz
serverdata-6308005f438805a86ec7869c209547f4224ee8c2.zip
You can now, in theory, change what will be on craft bonuses selections.
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/ucp.txt52
1 files changed, 49 insertions, 3 deletions
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index f103ad54a..652d779ff 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -23,7 +23,7 @@ function script UserCtrlPanel {
l("Account Information"),
rif(getcharid(2) > 0, l("Guild Information")),
l("Change Language"),
- rif(is_admin() && $@GM_OVERRIDE, l("DISABLE OVERRIDE MODE")),
+ rif(getskilllv(TMW2_CRAFT), l("Change Crafting Options")),
l("Game Settings"),
l("Save & Exit");
@@ -87,8 +87,54 @@ function script UserCtrlPanel {
break;
case 5: asklanguage(LANG_IN_SHIP); break;
case 6:
- $@GM_OVERRIDE=false;
- break;
+ // Draw the GUI and any info on it
+ csysGUI_Report();
+ //mesc l("Mobpt: @@", Mobpt);
+ do {
+ .@opt$="Do nothing";
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_BASE);
+
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_ATK);
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_DEF);
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_ACC);
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_EVD);
+
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_REGEN);
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_SPEED);
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_DOUBLE);
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_MAXPC);
+
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_SCRESIST);
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_SCINFLICT);
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_MANAUSE);
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_BOSSATK);
+
+ .@opt$+=":"+csysGUI_OptToogleMenu(CRGROUP_FINAL);
+
+ select (.@opt$);
+ mes "";
+ switch (@menu) {
+ case 2: csysGUI_ChangeOpt(CRGROUP_BASE); break;
+
+ case 3: csysGUI_ChangeOpt(CRGROUP_ATK); break;
+ case 4: csysGUI_ChangeOpt(CRGROUP_DEF); break;
+ case 5: csysGUI_ChangeOpt(CRGROUP_ACC); break;
+ case 6: csysGUI_ChangeOpt(CRGROUP_EVD); break;
+
+ case 7: csysGUI_ChangeOpt(CRGROUP_REGEN); break;
+ case 8: csysGUI_ChangeOpt(CRGROUP_SPEED); break;
+ case 9: csysGUI_ChangeOpt(CRGROUP_DOUBLE); break;
+ case 10: csysGUI_ChangeOpt(CRGROUP_MAXPC); break;
+
+ case 11: csysGUI_ChangeOpt(CRGROUP_SCRESIST); break;
+ case 12: csysGUI_ChangeOpt(CRGROUP_SCINFLICT); break;
+ case 13: csysGUI_ChangeOpt(CRGROUP_MANAUSE); break;
+ case 14: csysGUI_ChangeOpt(CRGROUP_BOSSATK); break;
+
+ case 15: csysGUI_ChangeOpt(CRGROUP_FINAL); break;
+ }
+ } while (@menu > 1);
+ break;
case 7:
do
{