From dd1ed72e9a740b8240308706d391aabd3b54e343 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 13 Apr 2021 13:18:52 -0300 Subject: Include Flare Dart --- db/pre-re/skill_db.conf | 28 +++++++++++++++++++++++++++- db/pre-re/skill_tree.conf | 1 + npc/015-1/sword.txt | 3 ++- npc/magic/final.txt | 3 ++- npc/magic/level1-flare-dart.txt | 14 ++++++++++++++ npc/scripts.conf | 1 + 6 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 npc/magic/level1-flare-dart.txt diff --git a/db/pre-re/skill_db.conf b/db/pre-re/skill_db.conf index 7c201e3e..abd93387 100644 --- a/db/pre-re/skill_db.conf +++ b/db/pre-re/skill_db.conf @@ -38567,7 +38567,7 @@ skill_db: ( Id: 20020 Name: "EVOL_AREA_PROVOKE" Description: "Itenplz" - MaxLevel: 9 + MaxLevel: 10 SkillType: { //Self: true Friend: true // <- Can it aim an enemy?? @@ -38596,6 +38596,32 @@ skill_db: ( SPCost: 1 } }, +{ + Id: 20022 + Name: "SKILL_FLAR" + Description: "Flar" + MaxLevel: 10 + Range: 8 + SkillType: { + Enemy: true + } + SkillInfo: { + Quest: true + } + Hit: "BDT_SKILL" + AttackType: "Magic" + Element: "Ele_Fire" + DamageType: { + NoDamage: true + } + CoolDown: 500 + Requirements: { + SPCost: 10 + Items: { + SulphurPowder: 1 + } + } +}, // Wand Abizit FlareDart Alizarin Cobalt Gamboge Mauve Lum MagicBlade Sulphur Kalmurk Parum ArrowHail Barrier(OK) EnchantLifestone FlyingBackpack(?) Joyplim Hide(?) LayOnHands Ingrav Knuclkes MakeArrow MakeIronPowder MakeShirt MakeTanktop MakeSTanktop Protect Rain Shear SFluffy SMouboo SPinkie SSnake SSPiky SWicked ToxicDart Necro ) diff --git a/db/pre-re/skill_tree.conf b/db/pre-re/skill_tree.conf index adae55d6..2602048b 100644 --- a/db/pre-re/skill_tree.conf +++ b/db/pre-re/skill_tree.conf @@ -67,6 +67,7 @@ Talpan: { // Level 1 SKILL_ABIZIT: 1 EVOL_AREA_PROVOKE: 9 + SKILL_FLAR: 9 // Level 2 EVOL_PHYSICAL_SHIELD: 5 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 +// +// 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 -- cgit v1.2.3-70-g09d2