diff options
-rw-r--r-- | npc/024-16/craftsman.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/npc/024-16/craftsman.txt b/npc/024-16/craftsman.txt index d934d2b05..b1a212026 100644 --- a/npc/024-16/craftsman.txt +++ b/npc/024-16/craftsman.txt @@ -23,9 +23,10 @@ mesq l("...Unless, of course, if you're interested in learning this art. You'll not regret it, I assure you."); next; // Main Loop + .@score=CRAFTING_SCORE_COMPLETE%40; mesc l("Crafting Skill Level: @@", getskilllv(TMW2_CRAFT)); - msObjective(CRAFTING_SCORE>=calcRequisites(), - l("Completed Crafts: @@/@@", CRAFTING_SCORE, calcRequisites()) ); + msObjective(.@score >= calcRequisites(), + l("Completed Crafts: @@/@@", .@score, calcRequisites()) ); msObjective(Zeny >= calcPrices(), l("Money: @@ GP", format_number(Zeny)) ); // Script end @@ -33,9 +34,9 @@ close; mes ""; select - rif(!CRAFTING_SCORE, l("How can I complete a craft?")), - rif(CRAFTING_SCORE >= calcRequisites(), l("Learn crafting for @@ GP", format_number(calcPrices())) ), - rif(CRAFTING_SCORE, l("How can I complete a craft?")), + rif(!.@score, l("How can I complete a craft?")), + rif(.@score >= calcRequisites(), l("Learn crafting for @@ GP", format_number(calcPrices())) ), + rif(.@score, l("How can I complete a craft?")), l("Nothing for now, thanks."); mes ""; switch (@menu) { @@ -121,7 +122,7 @@ function calcUpgrade { .@cf=calcRequisites(); if (Zeny < .@gp) return false; - if (CRAFTING_SCORE < .@cf) + if (CRAFTING_SCORE_COMPLETE % 40 < .@cf) return false; if (.@cf < 0) return false; |