From 742a73136aa097f60fec46c5a8c370934b65cb0f Mon Sep 17 00:00:00 2001 From: Sean Hulka Date: Sun, 6 Jun 2021 04:58:46 +0000 Subject: Register skill and add training to Duck Lord --- npc/018-5-4/darklord.txt | 30 ++++++++++++++++++++++++++---- npc/config/magic.txt | 7 ++++++- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/npc/018-5-4/darklord.txt b/npc/018-5-4/darklord.txt index 9e3a9ac4b..db95c04a7 100644 --- a/npc/018-5-4/darklord.txt +++ b/npc/018-5-4/darklord.txt @@ -57,8 +57,9 @@ function script DarkLordMobCount { function lordHuntReport; function lordHuntReward; function lordTrainingComplete; + function lordSkillTraining; function lordClose; - if (MAGIC_LVL && getq(LilitQuest_PiratesOfSARAH) > 1) + if ((MAGIC_LVL) && (getq(LilitQuest_PiratesOfSARAH) > 1)) { lordQuest(); } @@ -69,7 +70,7 @@ function lordQuest { if (BaseLevel < 60) { - elderClose(); + lordClose(); return; } .@q=getq(LilitQuest_TheDuckSide); @@ -380,7 +381,7 @@ function lordHuntReward mesq l("Congratulations, Apprentice. Your training is complete. You now truly belong to the Duck Side."); next; mesn; - mesq l("Remember to practice, youngling. Discipline is everything."); + mesq l("Remember to practice youngling. Discipline is everything."); next; skill(TMW2_NECROTICBOLT,1,0); setq(LilitQuest_TheDuckSide, 7, 0, 0); @@ -390,8 +391,29 @@ function lordHuntReward function lordTrainingComplete { mesn; - mesq l("You have mastered much, but you must practice more before you can draw even greater power from the Duck Side."); + mesq l("I teach the skills necessary to draw even greater power from the Duck Side."); next; + if (MAGIC_LVL) + { + lordSkillTraining(); + } + return; +} + +function lordSkillTraining +{ + mes l(".:: Destructive Magic Class ::."); + mesc l("Specialized in necromancer skills with undead-based damage and summoning."); + next; + mesn; + mesc l("You have @@ magic skill points available.", sk_points()); + mes ""; + mes l(".:: Necrotic Bolt ::."); + mesc l("Blast your enemies with a bolt of pure undeath, leeching life from them in the process."); + mes ""; + menuint + l("Necrotic Bolt"), TMW2_NECROTICBOLT, + l("Cancel"), 0; return; } diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 9a0001bb7..467794a8d 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -467,6 +467,11 @@ OnInit: RegisterMagic(3, TMW2_GAIABREAK, 5, Quill, 3, CLASS_DESTRUCTION, 150, TMW2_METEORSHOWER, false); + /* Skillchain */ + // Necrotic Bolt + RegisterMagic(1, TMW2_NECROTICBOLT, 10, DarkCrystal, 2, + CLASS_DESTRUCTION, 80, false, false); + @@ -499,7 +504,7 @@ OnInit: - //////////////////////// Other: Summonning + //////////////////////// Other: Summoning -- cgit v1.2.3-60-g2f50