summaryrefslogtreecommitdiff
path: root/npc/018-5-4/darklord.txt
diff options
context:
space:
mode:
authorSean Hulka <sean.hulka@gmail.com>2021-06-06 04:58:46 +0000
committerSean Hulka <sean.hulka@gmail.com>2021-06-06 04:58:46 +0000
commit742a73136aa097f60fec46c5a8c370934b65cb0f (patch)
tree811d5fb0b5bf8e149baddb540d965bdd7c481a3d /npc/018-5-4/darklord.txt
parent88db5f148f1f227995eb958aa393bd5fcf8967cd (diff)
downloadserverdata-742a73136aa097f60fec46c5a8c370934b65cb0f.tar.gz
serverdata-742a73136aa097f60fec46c5a8c370934b65cb0f.tar.bz2
serverdata-742a73136aa097f60fec46c5a8c370934b65cb0f.tar.xz
serverdata-742a73136aa097f60fec46c5a8c370934b65cb0f.zip
Register skill and add training to Duck Lord
Diffstat (limited to 'npc/018-5-4/darklord.txt')
-rw-r--r--npc/018-5-4/darklord.txt30
1 files changed, 26 insertions, 4 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;
}