diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-21 05:21:12 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-21 05:21:12 -0300 |
commit | 9a3dc41e991529c26c512f393f4623b26546fa98 (patch) | |
tree | 84fdff3b36ae66a69075e533ad329c7bc21bf002 /npc/024-16 | |
parent | 3f3fddba9953ec35089b8150c06c10d65a78a968 (diff) | |
download | serverdata-9a3dc41e991529c26c512f393f4623b26546fa98.tar.gz serverdata-9a3dc41e991529c26c512f393f4623b26546fa98.tar.bz2 serverdata-9a3dc41e991529c26c512f393f4623b26546fa98.tar.xz serverdata-9a3dc41e991529c26c512f393f4623b26546fa98.zip |
Start deprecating CRAFTING_SCORE
Diffstat (limited to 'npc/024-16')
-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; |