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.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index f8948b614..ce0658617 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -1112,9 +1112,17 @@ function script csysGUI_RaiseOpt {
.@sk=getarg(0);
.@pc=csysGUI_OptPrice(.@sk);
.@lv=getd("CRAFTSYS["+.@sk+"]");
+ // Check the current skill cap
+ if ($GAME_STORYLINE >= 5)
+ .@mx = CRAFT_MAXLV1;
+ else if ($GAME_STORYLINE >= 4)
+ .@mx = CRAFT_MAXLV2;
+ else
+ .@mx = CRAFT_MAXLV3;
+ // Check if you can upgrade the skill
if (csysGUI_OptReq(.@sk)) {
- if (.@lv > CRAFT_MAXLV) {
- mesc l("You cannot raise crafting skills beyond level @@!", CRAFT_MAXLV), 1;
+ if (.@lv > .@mx) {
+ mesc l("You cannot raise crafting skills beyond level @@!", .@mx), 1;
return false;
}
if (Mobpt >= .@pc) {