summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-31 22:33:36 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-31 22:33:36 -0300
commit48b721f7b1e35c7857aecba5f84e34129d7387f9 (patch)
tree2df0f91f23d943e95c6db533ff25fb63acb59367 /npc
parent1e42bc598e942ab0a16daa5a4f7475122763afab (diff)
downloadserverdata-48b721f7b1e35c7857aecba5f84e34129d7387f9.tar.gz
serverdata-48b721f7b1e35c7857aecba5f84e34129d7387f9.tar.bz2
serverdata-48b721f7b1e35c7857aecba5f84e34129d7387f9.tar.xz
serverdata-48b721f7b1e35c7857aecba5f84e34129d7387f9.zip
Tweak to hide tiers when you're not high level enough for them
Diffstat (limited to 'npc')
-rw-r--r--npc/craft/options.txt124
1 files changed, 81 insertions, 43 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index bbc16619a..996db70c9 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -460,51 +460,89 @@ function script csys_Apply {
function script csysGUI_Report {
mes l("Crafting Skill: Lv @@", getskilllv(TMW2_CRAFT));
- mes "";
- mes ".:: " + l("Base Tier") + " ::.";
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_BASE), CRAFTSYS[CRGROUP_BASE]);
-
- mes "";
- mes ".:: " + l("First Tier") + " ::.";
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_ATK), CRAFTSYS[CRGROUP_ATK]);
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_DEF), CRAFTSYS[CRGROUP_DEF]);
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_ACC), CRAFTSYS[CRGROUP_ACC]);
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_EVD), CRAFTSYS[CRGROUP_EVD]);
- next;
- mes "";
- mes ".:: " + l("Second Tier") + " ::.";
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_REGEN), CRAFTSYS[CRGROUP_REGEN]);
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_SPEED), CRAFTSYS[CRGROUP_SPEED]);
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_DOUBLE), CRAFTSYS[CRGROUP_DOUBLE]);
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_MAXPC), CRAFTSYS[CRGROUP_MAXPC]);
-
-
- mes "";
- mes ".:: " + l("Third Tier") + " ::.";
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_SCRESIST), CRAFTSYS[CRGROUP_SCRESIST]);
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_SCINFLICT), CRAFTSYS[CRGROUP_SCINFLICT]);
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_MANAUSE), CRAFTSYS[CRGROUP_MANAUSE]);
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_BOSSATK), CRAFTSYS[CRGROUP_BOSSATK]);
- next;
+ if (getskilllv(TMW2_CRAFT) >= 1) {
+ mes "";
+ mes ".:: " + l("Base Tier") + " ::.";
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_BASE), CRAFTSYS[CRGROUP_BASE]);
+ } else {
+ mes "";
+ mes ".:: " + l("Base Tier") + " ::.";
+ mes "";
+ mesc l("Reach level @@ to unlock this tier!", 1), 1;
+ }
- mes "";
- mes ".:: " + l("Ultimate Tier") + " ::.";
- mes "";
- mes l("@@: Lv @@", getitemlink(CRITEM_FINAL), CRAFTSYS[CRGROUP_FINAL]);
+ if (getskilllv(TMW2_CRAFT) >= 2) {
+ mes "";
+ mes ".:: " + l("First Tier") + " ::.";
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_ATK), CRAFTSYS[CRGROUP_ATK]);
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_DEF), CRAFTSYS[CRGROUP_DEF]);
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_ACC), CRAFTSYS[CRGROUP_ACC]);
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_EVD), CRAFTSYS[CRGROUP_EVD]);
+ next;
+ } else {
+ mes "";
+ mes ".:: " + l("First Tier") + " ::.";
+ mes "";
+ mesc l("Reach level @@ to unlock this tier!", 2), 1;
+ }
+
+ if (getskilllv(TMW2_CRAFT) >= 3) {
+ mes "";
+ mes ".:: " + l("Second Tier") + " ::.";
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_REGEN), CRAFTSYS[CRGROUP_REGEN]);
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_SPEED), CRAFTSYS[CRGROUP_SPEED]);
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_DOUBLE), CRAFTSYS[CRGROUP_DOUBLE]);
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_MAXPC), CRAFTSYS[CRGROUP_MAXPC]);
+ } else {
+ mes "";
+ mes ".:: " + l("Second Tier") + " ::.";
+ mes "";
+ mesc l("Reach level @@ to unlock this tier!", 3), 1;
+ next;
+ }
+
+
+ if (getskilllv(TMW2_CRAFT) >= 4) {
+ mes "";
+ mes ".:: " + l("Third Tier") + " ::.";
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_SCRESIST), CRAFTSYS[CRGROUP_SCRESIST]);
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_SCINFLICT), CRAFTSYS[CRGROUP_SCINFLICT]);
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_MANAUSE), CRAFTSYS[CRGROUP_MANAUSE]);
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_BOSSATK), CRAFTSYS[CRGROUP_BOSSATK]);
+ next;
+ } else {
+ mes "";
+ mes ".:: " + l("Third Tier") + " ::.";
+ mes "";
+ mesc l("Reach level @@ to unlock this tier!", 4), 1;
+ }
+
+ if (getskilllv(TMW2_CRAFT) >= 5) {
+ mes "";
+ mes ".:: " + l("Ultimate Tier") + " ::.";
+ mes "";
+ mes l("@@: Lv @@", getitemlink(CRITEM_FINAL), CRAFTSYS[CRGROUP_FINAL]);
+ mes "";
+ } else {
+ mes "";
+ mes ".:: " + l("Ultimate Tier") + " ::.";
+ mes "";
+ mesc l("Reach level @@ to unlock this tier!", 5), 1;
+ }
return;
}