summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-21 13:19:39 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-21 13:19:39 -0300
commit7db84053b350e028196d81e537dcc509f02008e5 (patch)
tree117d83abab06a3a8bccda074cb39c8d480360e24 /npc
parent6e0ebfd6c518aacc53cef0b6a244545142b4aa4a (diff)
downloadserverdata-7db84053b350e028196d81e537dcc509f02008e5.tar.gz
serverdata-7db84053b350e028196d81e537dcc509f02008e5.tar.bz2
serverdata-7db84053b350e028196d81e537dcc509f02008e5.tar.xz
serverdata-7db84053b350e028196d81e537dcc509f02008e5.zip
Rewrite Zarkor skill
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/hub.txt3
-rw-r--r--npc/magic/zarkor.txt14
2 files changed, 17 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index d83c30c65..aa5265b32 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -193,6 +193,9 @@ function script HUB_SkillInvoke {
//case TMW2_SPEECH:
UserCtrlPanel();
break;
+ case TMW2_ZARKOR:
+ SK_zarkor();
+ break;
}
// Debug
diff --git a/npc/magic/zarkor.txt b/npc/magic/zarkor.txt
index 64d86d70c..b205fcf92 100644
--- a/npc/magic/zarkor.txt
+++ b/npc/magic/zarkor.txt
@@ -6,6 +6,17 @@
// Spawns a Cave Maggot.
// This is to test stuff, more than to create anything really.
+function script SK_zarkor {
+ // Set skill
+ @sk=TMW2_ZARKOR;
+
+ // Summon Magic
+ SummonMagic(@sk, CaveMaggot, 2, @skillLv);
+
+ // Get a single mana experience point (this is NOT used by Mana Stone)
+ GetManaExp(@sk, 1);
+ return;
+}
- script sk#zarkor 32767,{
end;
@@ -17,6 +28,9 @@ OnFriendlyDeath:
*/
OnCall:
+ // Deprecated
+ end;
+
// Other requeriments
if (countitem(ZarkorScroll) < 1) {
dispbottom l("You need @@ to cast this skill.", getitemlink(ZarkorScroll));