summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/hub.txt6
-rw-r--r--npc/magic/study.txt19
-rw-r--r--npc/scripts.conf1
3 files changed, 25 insertions, 1 deletions
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