summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/024-16/craftsman.txt32
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;
}