summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-13 13:18:52 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-13 13:18:52 -0300
commitdd1ed72e9a740b8240308706d391aabd3b54e343 (patch)
tree40ddc1b8b8a41a47b6ce65859957e2f3fb4a6424 /npc
parent7f3ee7b17d27b2644e14728289c93c557608dd29 (diff)
downloadserverdata-dd1ed72e9a740b8240308706d391aabd3b54e343.tar.gz
serverdata-dd1ed72e9a740b8240308706d391aabd3b54e343.tar.bz2
serverdata-dd1ed72e9a740b8240308706d391aabd3b54e343.tar.xz
serverdata-dd1ed72e9a740b8240308706d391aabd3b54e343.zip
Include Flare Dart
Diffstat (limited to 'npc')
-rw-r--r--npc/015-1/sword.txt3
-rw-r--r--npc/magic/final.txt3
-rw-r--r--npc/magic/level1-flare-dart.txt14
-rw-r--r--npc/scripts.conf1
4 files changed, 19 insertions, 2 deletions
diff --git a/npc/015-1/sword.txt b/npc/015-1/sword.txt
index 4979ca74..f4be43b3 100644
--- a/npc/015-1/sword.txt
+++ b/npc/015-1/sword.txt
@@ -108,7 +108,8 @@ L_Initial_ok:
mes "\"Oh, my apologies – that was a little overly dramatic. But I do not get to talk to thy kin anymore all that often.\"";
next;
mes "[Mystic Sword]";
- mes "\"For the flare dart spell throw a handful of sulphur powder up into the air, and say, '" + get(.invocation$, "flare-dart") + "'.\"";
+ mes "\"For the flare dart spell throw a handful of sulphur powder up into the air, and say, '" + b("flar") + "'.\"";
+ learnskill SKILL_FLAR;
@Q_status = @STATUS_LEARNED_FLAREDART;
callsub S_Update_Var;
next;
diff --git a/npc/magic/final.txt b/npc/magic/final.txt
index f610f01c..f8a4c054 100644
--- a/npc/magic/final.txt
+++ b/npc/magic/final.txt
@@ -36,7 +36,8 @@ function script HUB_SkillInvoke {
SK_Abizit(); break;
case EVOL_AREA_PROVOKE:
SK_Itenplz(); break;
- break;
+ case SKILL_FLAR:
+ SK_Flar(); break;
////////////////////////////////
/* / XXX: Healing Class
case TMW2_FIRSTAID:
diff --git a/npc/magic/level1-flare-dart.txt b/npc/magic/level1-flare-dart.txt
new file mode 100644
index 00000000..27eeea72
--- /dev/null
+++ b/npc/magic/level1-flare-dart.txt
@@ -0,0 +1,14 @@
+// The Mana World script
+// Author: Jesusalva <jesusalva@themanaworld.org>
+//
+// Magic Script: SKILL_FLAR (Level 1)
+// School: War 1
+
+function script SK_Flar {
+ .@PW=100+(10*@skillLv);
+ .@dmg=AdjustSpellpower(.@PW);
+ harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Fire);
+ GetManaExp(@skillId, 1);
+ return;
+}
+
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 8c84c7b0..26805df0 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -67,6 +67,7 @@
"npc/magic/config.txt",
"npc/magic/level1-aggravate.txt",
"npc/magic/level1-experience.txt",
+"npc/magic/level1-flare-dart.txt",
"npc/magic/final.txt",
// Commands