diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-31 22:37:05 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-31 22:37:05 -0300 |
commit | eb80c062079bfc8c7ff202c793b0a42480296a25 (patch) | |
tree | 44d121a61f0b6d8c0e1367d96fa591118c3078b9 /npc/craft | |
parent | 48b721f7b1e35c7857aecba5f84e34129d7387f9 (diff) | |
download | serverdata-eb80c062079bfc8c7ff202c793b0a42480296a25.tar.gz serverdata-eb80c062079bfc8c7ff202c793b0a42480296a25.tar.bz2 serverdata-eb80c062079bfc8c7ff202c793b0a42480296a25.tar.xz serverdata-eb80c062079bfc8c7ff202c793b0a42480296a25.zip |
Improve the display of csys_gui()
Diffstat (limited to 'npc/craft')
-rw-r--r-- | npc/craft/options.txt | 170 |
1 files changed, 87 insertions, 83 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 996db70c9..2830aefa6 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -455,95 +455,99 @@ function script csys_Apply { /////// // Interface System for Options Craft -// csysGUI_Report( ) +// csysGUI_Report( {silent} ) // Report craft skill levels function script csysGUI_Report { mes l("Crafting Skill: Lv @@", getskilllv(TMW2_CRAFT)); - 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; - } - - 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; + if (!getarg(0, false)) { + 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; + } + + 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; + } } - + mesc l("Monster Points: @@ | Gold: @@", + format_number(Mobpt), format_number(Zeny)); + next; return; } |