summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r--npc/functions/hub.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 57bcd915a..10bb48d0f 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -598,6 +598,23 @@ function script HUB_SkillInvoke {
GetManaExp(TMW2_METEORSTRIKE, 3);
break;
/*
+ ////////////////////////////////
+ // XXX: Undead Class
+ case TMW2_NECROTICBOLT:
+ // Attack power
+ .@APW=80+(27*@skillLv);
+ // Heal power
+ .@HPW=(Vit/6)+(8*@skillLv);
+ // Increase damage and reduce healing if using a lightsaber
+ if (getequipid(EQI_HAND_L) == 3536 || getequipid(EQI_HAND_L) == 3537)
+ .@APW=.@APW*3/2;
+ .@HPW=.@HPW*3/5;
+ .@heal=max(AdjustSpellpower(.@HPW), AdjustAttackpower(.@HPW));
+ .@dmg=AdjustSpellpower(.@APW);
+ heal .@heal, 0;
+ harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Undead);
+ GetManaExp(TMW2_NECROTICBOLT, 3);
+ break;
// TODO: Ultimate Skills (T5/0)
// Sanctum: AoE resurrection, HP like Resurrect, 30min+ cooldown and
@@ -907,6 +924,9 @@ function script HUB_SkillInvoke {
case TMW2_FAIRYEMPIRE:
SK_summon(any(VanityPixie, HolyPixie, ShadowPixie, NulityPixie), 5, any(4,5));
break;
+ case TMW2_DISEMBODYSPIRIT:
+ SK_summon(ManaGhost, 4, ((@skillLv*2)+rand2(@skillLv*2)));
+ break;
// More complex summons
case TMW2_KALMURK:
.@mobId=Maggot;
@@ -966,6 +986,22 @@ function script HUB_SkillInvoke {
SummonMagic(@skillId, .@mobId, 2);
GetManaExp(@skillId, 1);
break;
+ case TMW2_RAISEDEAD:
+ .@mobId=Skeleton;
+ .@amount=@skillLv*2;
+ if (MAGIC_LVL >= 2)
+ {
+ // Each skill level increases chance by 5% (the max is 25%)
+ .@r=rand2(20);
+ if (@skillLv-1 <= .@r)
+ {
+ .@mobId=ArmoredSkeleton;
+ .@amount=@skillLv;
+ }
+ }
+ SK_summon(.@mobId, 5, .@amount);
+ GetManaExp(@skillId, 1);
+ break;
// Special exception
case TMW2_TRANSMIGRATION: