summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-25 05:41:24 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-25 05:41:24 -0300
commitd16c6ac5483976be78a37b06da7a061f790a374f (patch)
tree007861b164026bb9ba52299e35ae1ecbcc481c0e
parent4d41a58f181bef85e7626f97861935735eb14f67 (diff)
downloadserverdata-d16c6ac5483976be78a37b06da7a061f790a374f.tar.gz
serverdata-d16c6ac5483976be78a37b06da7a061f790a374f.tar.bz2
serverdata-d16c6ac5483976be78a37b06da7a061f790a374f.tar.xz
serverdata-d16c6ac5483976be78a37b06da7a061f790a374f.zip
Prepare a new skill: TMW2_STUDY
-rw-r--r--db/re/skill_db.conf27
-rw-r--r--db/re/skill_tree.conf9
-rw-r--r--npc/functions/hub.txt6
-rw-r--r--npc/magic/study.txt19
-rw-r--r--npc/scripts.conf1
5 files changed, 58 insertions, 4 deletions
diff --git a/db/re/skill_db.conf b/db/re/skill_db.conf
index 2626c77a5..3b79dd987 100644
--- a/db/re/skill_db.conf
+++ b/db/re/skill_db.conf
@@ -38485,6 +38485,8 @@ skill_db: (
}
NumberOfHits: 0
},
+///////////////////////////////////////////////////
+// TMW2/Evol Skills
{
Id: 20000
Name: "EVOL_MASS_PROVOKE"
@@ -38582,6 +38584,7 @@ skill_db: (
SPCost: 35
}
},
+// 20004~20009 reserved for TMW/Evol
{
Id: 20010
Name: "TMW2_SKILLPERMIT"
@@ -38735,6 +38738,30 @@ skill_db: (
}
}
},
+{
+ Id: 20020
+ Name: "TMW2_STUDY"
+ Description: "Study"
+ MaxLevel: 10
+ SkillType: {
+ Enemy: true
+ }
+ CoolDown: {
+ Lv1: 10000
+ Lv2: 9000
+ Lv3: 8000
+ Lv4: 7000
+ Lv5: 6000
+ Lv6: 5000
+ Lv7: 4000
+ Lv8: 3000
+ Lv9: 2000
+ Lv10: 1000
+ }
+ CastTime: 500
+ FixedCastTime: 500
+ AfterCastActDelay: 100
+},
// 20021 end of Evol Reserved Space
{
Id: 20022
diff --git a/db/re/skill_tree.conf b/db/re/skill_tree.conf
index 6016163aa..021ef8bf2 100644
--- a/db/re/skill_tree.conf
+++ b/db/re/skill_tree.conf
@@ -44,13 +44,16 @@ Human: {
AM_RESURRECTHOMUN: 6
AL_DP: 0
TMW2_OVERLOAD: 0
+ TMW2_STUDY: 0
- // Mana Skills
+ // Transmigration Skills
+ TMW2_PARUM: 0
+ TMW2_TRANSMIGRATION: 10
+
+ // Summoning Skills
TMW2_ZARKOR: 3
TMW2_DUCKY: 10
- TMW2_PARUM: 0
TMW2_KALMURK: 4
- TMW2_TRANSMIGRATION: 10
TMW2_DEMURE: 15
TMW2_DRAGOKIN: 5
TMW2_LIMERIZER: 5
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 601f6d284..d1af74459 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -253,6 +253,9 @@ function script HUB_SkillInvoke {
case TMW2_MPREGEN:
SK_mpregen();
break;
+ case TMW2_STUDY:
+ SK_study();
+ break;
case EVOL_AREA_PROVOKE:
if (@skillTargetX && @skillTargetY)
massprovoke(1+@skillLv, getmap(), @skillTargetX, @skillTargetY);
@@ -296,11 +299,12 @@ function script HUB_SkillInvoke {
SK_spregen();
GetManaExp(GD_DEVELOPMENT, 10);
break;
- // FIXME: Weapon Overload attack
+ // Weapon Overload attack
case TMW2_OVERLOAD:
.@PW=200+(@skillLv > 3 ? @skillLv : 0)+(@skillLv > 7 ? @skillLv*2 : 0);
areaharm(@skillTarget, 0, AdjustAttackpower(.@PW), HARM_MISC);
break;
+ ////////////////////////////////
// Magic v3
case TMW2_NILFHEIM:
// Nilfheim cast on self?
diff --git a/npc/magic/study.txt b/npc/magic/study.txt
new file mode 100644
index 000000000..3176643ef
--- /dev/null
+++ b/npc/magic/study.txt
@@ -0,0 +1,19 @@
+// TMW2 script
+// Author: Jesusalva <admin@tmw2.org>
+//
+// Magic Script: TMW2_STUDY
+//
+// Skill to study a target monster
+// Will report the monster exact current stats, and is part of research
+
+function script SK_study {
+ .@mobGD=getarg(0);
+ if (getunittype(.@mobGD) != UNITTYPE_MOB) {
+ dispbottom l("This skill can only be used on monsters!");
+ }
+ .@mobID=getunitdata(.@mobGD, UDT_CLASS);
+ // getmonsterinfo(.@mobID, )
+ // getunitdata(.@mobGD, )
+ return;
+}
+
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 79e2b0e80..764e7eed7 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -137,6 +137,7 @@
"npc/magic/parum.txt",
"npc/magic/plantkingdom.txt",
"npc/magic/stoneheart.txt",
+"npc/magic/study.txt",
"npc/magic/zarkor.txt",
// These are to be proccessed later