summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/re/item_db.conf3
-rw-r--r--db/re/skill_db.conf12
-rw-r--r--db/re/skill_tree.conf1
-rw-r--r--npc/magic/kalwulf.txt59
-rw-r--r--npc/scripts.conf1
5 files changed, 75 insertions, 1 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index bf18d9094..fd097d64e 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -11176,12 +11176,13 @@ item_db: (
// Cave Maggot, Maggot, Green Dragon, Slimes, Snakes
// TODO: Wolverns, Lizards, (Black)Scorpions, Fairies,
// TODO: Yeti (sometimes Moggun), Moonshroom, Terranite
- // TODO: Black Mamba, Centaur, <todo>
+ // TODO: Black Mamba, Centaur, <todo>, plants/shrooms/squirrels (roots/spores)
skill TMW2_ZARKOR, 7;
skill TMW2_KALMURK, 10;
skill TMW2_DRAGOKIN, 5;
skill TMW2_LIMERIZER, 14;
skill TMW2_HALHISS, 12;
+ skill TMW2_KALWULF, 9;
">
OnUnequipScript: <"
@min = 20;
diff --git a/db/re/skill_db.conf b/db/re/skill_db.conf
index ca2de7df2..710310701 100644
--- a/db/re/skill_db.conf
+++ b/db/re/skill_db.conf
@@ -38546,4 +38546,16 @@ skill_db: (
Quest: true
}
},
+{
+ Id: 20037
+ Name: "TMW2_KALWULF"
+ Description: "Kalwulf"
+ MaxLevel: 9
+ SkillType: {
+ Self: true
+ }
+ SkillInfo: {
+ Quest: true
+ }
+},
)
diff --git a/db/re/skill_tree.conf b/db/re/skill_tree.conf
index d118a7f0a..59cb7cf89 100644
--- a/db/re/skill_tree.conf
+++ b/db/re/skill_tree.conf
@@ -50,6 +50,7 @@ Human: {
TMW2_DRAGOKIN: 5
TMW2_LIMERIZER: 5
TMW2_HALHISS: 8
+ TMW2_KALWULF: 5
// Unrelated
ALL_INCCARRY: 0
diff --git a/npc/magic/kalwulf.txt b/npc/magic/kalwulf.txt
new file mode 100644
index 000000000..22b27d2d5
--- /dev/null
+++ b/npc/magic/kalwulf.txt
@@ -0,0 +1,59 @@
+// TMW2 script
+// Author: Jesusalva <admin@tmw2.org>
+//
+// Magic Script: TMW2_KALWURF
+//
+// Summons snakes (mountain snakes if GHQ was completed and enough skill)
+
+- script sk#kalwurf 32767,{
+ end;
+
+OnCall:
+ // Other requeriments: 5x White Fur
+ if (countitem(WhiteFur) < 5) {
+ dispbottom l("You need 5x @@ to cast this skill.", getitemlink(WhiteFur));
+ end;
+ }
+
+ // Check cooldown
+ if (@kalwurf_at > gettimetick(2)) {
+ dispbottom l("Skill is in cooldown for @@.", FuzzyTime(@kalwurf_at));
+ end;
+ }
+
+ // Setup
+ @sk=TMW2_KALWURF;
+ @mp=450;
+ @amp=45;
+
+ // Check if you have mana to cast
+ // MagicCheck(SkillID, Mana{, MP per level})
+ if (!MagicCheck(@sk, @mp, @amp))
+ end;
+
+ // Destroy reagents
+ delitem WhiteFur, 5;
+
+ // set cooldown
+ @kalwurf_at=gettimetick(2);
+ @kalwurf_at=@kalwurf_at+47-abizit();
+
+ // As usual, magic profeciency affects success ratio
+ if (rand(1,6) < abizit()+1) {
+ .@mobId=Wolvern;
+ // Summon Magic
+ // SummonMagic(SkillID, MobID{, SkillLevelPerMob=2{, Level Override}})
+ SummonMagic(@sk, .@mobId, 4, MAGIC_LVL+getskilllv(@sk)-1);
+ } else {
+ dispbottom l("The spell fails!");
+ }
+
+ // Get 3~4 mana experience point (this is NOT used by Mana Stone)
+ GetManaExp(@sk, rand(3,4));
+
+ end;
+
+OnInit:
+ bindatcmd "sk-kalwurf", "sk#kalwurf::OnCall", 0, 100, 0;
+ end;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index d557c8061..1be772346 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -103,6 +103,7 @@
"npc/magic/dragokin.txt",
"npc/magic/halhiss.txt",
"npc/magic/kalmurk.txt",
+"npc/magic/kalwulf.txt",
"npc/magic/limerizer.txt",
"npc/magic/mkpot.txt",
"npc/magic/parum.txt",