From ea77d8d37a7f389c31da632f6301ad96356918d8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 7 Jun 2019 11:42:28 -0300 Subject: Price and Requisite table for crafting (max. lv 7) --- npc/024-16/craftsman.txt | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'npc/024-16') 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; } -- cgit v1.2.3-70-g09d2