diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-29 18:16:25 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-29 18:16:25 -0300 |
commit | 6308005f438805a86ec7869c209547f4224ee8c2 (patch) | |
tree | 84f479beec590ffd708fa65b67a9d405f152da7a /npc/craft | |
parent | 4d6d99d9117b1de60bb8ac1f55e2dcafdd3095c5 (diff) | |
download | serverdata-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/craft')
-rw-r--r-- | npc/craft/options.txt | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt index d1384a21e..985fae210 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -457,12 +457,12 @@ function script csys_Apply { // Report craft skill levels function script csysGUI_Report { - mes l("Crafting Skill: @@", getskilllv(TMW2_CRAFT)); + mes l("Crafting Skill: Lv @@", getskilllv(TMW2_CRAFT)); mes ""; mes ".:: " + l("First Tier") + " ::."; mesc l("Craft Min Level: 1"); mes ""; - mes l("BASIC SKILLS: @@", CRAFTSYS[CRGROUP_BASE]); + mes l("BASIC SKILLS: Lv @@", CRAFTSYS[CRGROUP_BASE]); mesc l("Lv 1 - Str, Int"); mesc l("Lv 3 - Dex, MaxHP"); mesc l("Lv 5 - Agi, MaxMP"); @@ -472,12 +472,12 @@ function script csysGUI_Report { mes ".:: " + l("Second Tier") + " ::."; mesc l("Craft Min Level: 2"); mes ""; - mes l("ATTACK SKILLS: @@", CRAFTSYS[CRGROUP_ATK]); + mes l("ATTACK SKILLS: Lv @@", CRAFTSYS[CRGROUP_ATK]); mesc l("BASIC Min Level: 2"); mesc l("Lv 1 - Atk, MAtk"); mesc l("Lv 5 - Atk %, MAtk %"); mes ""; - mes l("DEFENSE SKILLS: @@", CRAFTSYS[CRGROUP_DEF]); + mes l("DEFENSE SKILLS: Lv @@", CRAFTSYS[CRGROUP_DEF]); mesc l("BASIC Min Level: 2"); mesc l("Lv 1 - Def, MDef"); mesc l("Lv 5 - Crit DEF, Ranged DEF"); @@ -545,6 +545,15 @@ function script csysGUI_OptToogleMenu { } +// csysGUI_ChangeOpt( cr ) +// Change option +function script csysGUI_ChangeOpt { + .@sk=getarg(0); + CRAFTSYS_CURRENT=CRAFTSYS_CURRENT^.@sk; + return; +} + + // csysGUI_OptReq( cr ) // Return true if all requisites for Option were met function script csysGUI_OptReq { @@ -669,3 +678,20 @@ function script csysGUI_GroupOpt { return ""; } + +// csysGUI_RaiseOpt( cr ) +// Returns true if can raise group, false otherwise +function script csysGUI_RaiseOpt { + .@sk=getarg(0); + .@pc=csysGUI_OptPrice(.@sk); + if (csysGUI_OptReq(.@sk)) { + if (Mobpt >= .@pc) { + Mobpt-=.@pc; + .@lv=getd("CRAFTSYS["+.@sk+"]"); + setd("CRAFTSYS["+.@sk+"]", .@lv+1); + return true; + } + } + return false; +} + |