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.txt34
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;
+}
+