summaryrefslogtreecommitdiff
path: root/npc/craft/options.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r--npc/craft/options.txt72
1 files changed, 58 insertions, 14 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index a33837d03..564612a48 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -543,6 +543,50 @@ function script csys_Apply {
///////
// Interface System for Options Craft
+function script csys_ttlgrouptoit {
+ .@cr=getarg(0);
+ switch (.@cr) {
+ case CRGROUP_BASE:
+ return CRITEM_BASE;
+ case CRGROUP_ATK:
+ return CRITEM_ATK;
+ case CRGROUP_DEF:
+ return CRITEM_DEF;
+ case CRGROUP_ACC:
+ return CRITEM_ACC;
+ case CRGROUP_EVD:
+ return CRITEM_EVD;
+ case CRGROUP_REGEN:
+ return CRITEM_REGEN;
+ case CRGROUP_SPEED:
+ return CRITEM_SPEED;
+ case CRGROUP_DOUBLE:
+ return CRITEM_DOUBLE;
+ case CRGROUP_MAXPC:
+ return CRITEM_MAXPC;
+ case CRGROUP_SCRESIST:
+ return CRITEM_SCRESIST;
+ case CRGROUP_SCINFLICT:
+ return CRITEM_SCINFLICT;
+ case CRGROUP_MANAUSE:
+ return CRITEM_MANAUSE;
+ case CRGROUP_BOSSATK:
+ return CRITEM_BOSSATK;
+ case CRGROUP_FINAL:
+ return CRITEM_FINAL;
+ }
+ return Bread;
+}
+
+function script csys_ISON {
+ .@cr=getarg(0);
+ .@it=csys_ttlgrouptoit(.@cr);
+ if (CRAFTSYS_CURRENT & .@cr)
+ return "%%E"+getitemlink(.@it);
+ else
+ return getitemlink(.@it);
+}
+
// csysGUI_Report( {silent} )
// Report craft skill levels
function script csysGUI_Report {
@@ -554,7 +598,7 @@ function script csysGUI_Report {
mes "";
mes ".:: " + l("Base Tier") + " ::.";
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_BASE), CRAFTSYS[CRGROUP_BASE]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_BASE), CRAFTSYS[CRGROUP_BASE]);
} else {
mes "";
mes ".:: " + l("Base Tier") + " ::.";
@@ -566,13 +610,13 @@ function script csysGUI_Report {
mes "";
mes ".:: " + l("First Tier") + " ::.";
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_ATK), CRAFTSYS[CRGROUP_ATK]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_ATK), CRAFTSYS[CRGROUP_ATK]);
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_DEF), CRAFTSYS[CRGROUP_DEF]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_DEF), CRAFTSYS[CRGROUP_DEF]);
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_ACC), CRAFTSYS[CRGROUP_ACC]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_ACC), CRAFTSYS[CRGROUP_ACC]);
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_EVD), CRAFTSYS[CRGROUP_EVD]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_EVD), CRAFTSYS[CRGROUP_EVD]);
next;
} else {
mes "";
@@ -585,13 +629,13 @@ function script csysGUI_Report {
mes "";
mes ".:: " + l("Second Tier") + " ::.";
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_REGEN), CRAFTSYS[CRGROUP_REGEN]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_REGEN), CRAFTSYS[CRGROUP_REGEN]);
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_SPEED), CRAFTSYS[CRGROUP_SPEED]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_SPEED), CRAFTSYS[CRGROUP_SPEED]);
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_DOUBLE), CRAFTSYS[CRGROUP_DOUBLE]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_DOUBLE), CRAFTSYS[CRGROUP_DOUBLE]);
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_MAXPC), CRAFTSYS[CRGROUP_MAXPC]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_MAXPC), CRAFTSYS[CRGROUP_MAXPC]);
} else {
mes "";
mes ".:: " + l("Second Tier") + " ::.";
@@ -605,13 +649,13 @@ function script csysGUI_Report {
mes "";
mes ".:: " + l("Third Tier") + " ::.";
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_SCRESIST), CRAFTSYS[CRGROUP_SCRESIST]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_SCRESIST), CRAFTSYS[CRGROUP_SCRESIST]);
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_SCINFLICT), CRAFTSYS[CRGROUP_SCINFLICT]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_SCINFLICT), CRAFTSYS[CRGROUP_SCINFLICT]);
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_MANAUSE), CRAFTSYS[CRGROUP_MANAUSE]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_MANAUSE), CRAFTSYS[CRGROUP_MANAUSE]);
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_BOSSATK), CRAFTSYS[CRGROUP_BOSSATK]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_BOSSATK), CRAFTSYS[CRGROUP_BOSSATK]);
next;
} else {
mes "";
@@ -624,7 +668,7 @@ function script csysGUI_Report {
mes "";
mes ".:: " + l("Ultimate Tier") + " ::.";
mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_FINAL), CRAFTSYS[CRGROUP_FINAL]);
+ mes l("@@: Lv @@", csys_ISON(CRGROUP_FINAL), CRAFTSYS[CRGROUP_FINAL]);
mes "";
} else {
mes "";