summaryrefslogtreecommitdiff
path: root/npc/024-16
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-07 11:40:38 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-07 11:40:38 -0300
commit756212b04018e9dffb5ea6e64e27d73dd4238c77 (patch)
treeadd173840cfe3c34beb96781ec3dfa303a921982 /npc/024-16
parent47ce7037d73bf0a0c76244edb15611a42d7e2cd2 (diff)
downloadserverdata-756212b04018e9dffb5ea6e64e27d73dd4238c77.tar.gz
serverdata-756212b04018e9dffb5ea6e64e27d73dd4238c77.tar.bz2
serverdata-756212b04018e9dffb5ea6e64e27d73dd4238c77.tar.xz
serverdata-756212b04018e9dffb5ea6e64e27d73dd4238c77.zip
Crafting will now yield you a Crafting Score Point
Diffstat (limited to 'npc/024-16')
-rw-r--r--npc/024-16/craftsman.txt17
1 files changed, 16 insertions, 1 deletions
diff --git a/npc/024-16/craftsman.txt b/npc/024-16/craftsman.txt
index 2a69f7713..d4d7830e1 100644
--- a/npc/024-16/craftsman.txt
+++ b/npc/024-16/craftsman.txt
@@ -5,6 +5,8 @@
// Craftmaster, teaches player TMW2_CRAFT
024-16,27,42,0 script Dwarf Craftsmaster NPC_DWARF_CRAFTMASTER,{
+ function calcRequisites;
+ function calcPrices;
if (.@q < 13) {
hello;
end;
@@ -20,13 +22,26 @@
next;
// Main Loop
mesc l("Crafting Skill Level: @@", getskilllv(TMW2_CRAFT));
- mesc l("Completed Crafts: @@", CRAFTING_SCORE);
+ mesc l("Completed Crafts: @@/@@", CRAFTING_SCORE, calcRequisites());
mesc l("Money: @@ GP", format_number(Zeny)), 3;
mes "";
select
+ rif(calcRequisites(), l("Learn crafting for @@ GP", format_number(calcPrices())) ),
l("Nothing for now, thanks.");
close;
+// Calc successful crafts required to learn crafting
+// Returns amount of crafts needed
+function calcRequisites {
+ return false;
+}
+
+// Calc how much GP the skill will cost you
+// Returns amount of GP
+function calcPrices {
+ return false;
+}
+
OnInit:
.distance=5;
end;