summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-16 11:25:13 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-16 11:25:13 -0300
commita0c1e24789fea0891d0f38013da2c493dff951c8 (patch)
treeec3c565902fb930fe209465545af2ecb9c287594
parent5274879426338b935da6822ab194d0755dc3a40c (diff)
downloadserverdata-a0c1e24789fea0891d0f38013da2c493dff951c8.tar.gz
serverdata-a0c1e24789fea0891d0f38013da2c493dff951c8.tar.bz2
serverdata-a0c1e24789fea0891d0f38013da2c493dff951c8.tar.xz
serverdata-a0c1e24789fea0891d0f38013da2c493dff951c8.zip
Add Kalmurk to skill system, and allow level override on summon magic
-rw-r--r--db/re/skill_db.conf11
-rw-r--r--db/re/skill_tree.conf3
-rw-r--r--npc/config/magic.txt7
3 files changed, 17 insertions, 4 deletions
diff --git a/db/re/skill_db.conf b/db/re/skill_db.conf
index 871f647da..670050f40 100644
--- a/db/re/skill_db.conf
+++ b/db/re/skill_db.conf
@@ -38389,7 +38389,7 @@ skill_db: (
Id: 20023
Name: "TMW2_ZARKOR"
Description: "Summon Cave Maggot"
- MaxLevel: 1
+ MaxLevel: 3
SkillType: {
Self: true
}
@@ -38404,6 +38404,15 @@ skill_db: (
}
},
{
+ Id: 20025
+ Name: "TMW2_KALMURK"
+ Description: "Summon Maggot"
+ MaxLevel: 1
+ SkillType: {
+ Self: true
+ }
+},
+{
Id: 20031
Name: "TMW2_FAKESKILL"
Description: "Fake Skil"
diff --git a/db/re/skill_tree.conf b/db/re/skill_tree.conf
index 72a207e75..54ad9e79d 100644
--- a/db/re/skill_tree.conf
+++ b/db/re/skill_tree.conf
@@ -37,8 +37,11 @@ Human: {
AL_HEAL: 3
SM_PROVOKE: 5
EVOL_MASS_PROVOKE: 10
+
+ // Mana Skills
TMW2_ZARKOR: 3
TMW2_PARUM: 0
+ TMW2_KALMURK: 0
// TODO
ALL_INCCARRY: 0
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 0b016b2bf..ca59dbc82 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -50,12 +50,13 @@ function script MagicCheck {
return 1;
}
-// SkillID, Mana, MobID{, MP per level, MobPerSkillLevel=2}
+// SkillID, Mana, MobID{, MP per level, MobPerSkillLevel=2{, Level Override}}
function script SummonMagic {
.@sk=getarg(0);
.@mp=getarg(1);
.@id=getarg(2);
.@adj=getarg(4,2);
+ .@lv=getarg(5,getskilllv(.@sk));
if (.@adj < 1) {
debugmes "\033[31mInvalid MobPerSkillLevel for SummonMagic (.@adj): "+.@adj+"\033[0m";
@@ -75,8 +76,8 @@ function script SummonMagic {
// Cause effect
// Summoned monsters live from 45 to 60 seconds, and each skill levels grants 10s extra life
// The 35~50 is not a defect, remember skill starts at level 1...
- for (.@i = 0; .@i < (getskilllv(.@sk)+(.@adj-1))/.@adj; .@i++)
- summon("Summoned Monster", .@id, rand(35,50)+getskilllv(.@sk)*10);
+ for (.@i = 0; .@i < (.@lv+(.@adj-1))/.@adj; .@i++)
+ summon("Summoned Monster", .@id, rand(35,50)+.@lv*10);
dispbottom l("All monsters summoned!");
}