// TMW2 scripts. // Authors: // Jesusalva // Description: // 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; } mesn; mesq lg("Look what we have here, it is a girl!", "Look what we have here, it is a boy!"); next; mesn; mesq l("I'm Thurgar the mighty craftsman. I can make anything reality! But I only work to the king!"); next; mesn; mesq l("...Unless, of course, if you're interested in learning this art. You'll not regret it, I assure you."); next; // Main Loop mesc l("Crafting Skill Level: @@", getskilllv(TMW2_CRAFT)); 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; }