diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-07 11:42:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-07 11:42:28 -0300 |
commit | ea77d8d37a7f389c31da632f6301ad96356918d8 (patch) | |
tree | fdcdbc93ac05d55c9074d8040bd09ace5c022175 /npc/024-16 | |
parent | 756212b04018e9dffb5ea6e64e27d73dd4238c77 (diff) | |
download | serverdata-ea77d8d37a7f389c31da632f6301ad96356918d8.tar.gz serverdata-ea77d8d37a7f389c31da632f6301ad96356918d8.tar.bz2 serverdata-ea77d8d37a7f389c31da632f6301ad96356918d8.tar.xz serverdata-ea77d8d37a7f389c31da632f6301ad96356918d8.zip |
Price and Requisite table for crafting (max. lv 7)
Diffstat (limited to 'npc/024-16')
-rw-r--r-- | npc/024-16/craftsman.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/npc/024-16/craftsman.txt b/npc/024-16/craftsman.txt index d4d7830e1..3f8ba548a 100644 --- a/npc/024-16/craftsman.txt +++ b/npc/024-16/craftsman.txt @@ -33,12 +33,44 @@ // Calc successful crafts required to learn crafting // Returns amount of crafts needed function calcRequisites { + switch (getskilllv(TMW2_CRAFT)) { + case 0: + return 1; + case 1: + return 3; + case 2: + return 7; + case 3: + return 12; + case 4: + return 18; + case 5: + return 24; + case 6: + return 32; + } return false; } // Calc how much GP the skill will cost you // Returns amount of GP function calcPrices { + switch (getskilllv(TMW2_CRAFT)) { + case 0: + return 1000; + case 1: + return 5000; + case 2: + return 9000; + case 3: + return 15000; + case 4: + return 27000; + case 5: + return 36000; + case 6: + return 50000; + } return false; } |