summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
authorSean Hulka <sean.hulka@gmail.com>2021-06-06 03:20:28 +0000
committerSean Hulka <sean.hulka@gmail.com>2021-06-06 03:20:28 +0000
commit88db5f148f1f227995eb958aa393bd5fcf8967cd (patch)
tree0396e68cdf4b5d5da8d19f16b427c17af0a72060 /npc/functions/hub.txt
parent9d5efb9d1586b702bc3fb57fe888f51170c576aa (diff)
downloadserverdata-88db5f148f1f227995eb958aa393bd5fcf8967cd.tar.gz
serverdata-88db5f148f1f227995eb958aa393bd5fcf8967cd.tar.bz2
serverdata-88db5f148f1f227995eb958aa393bd5fcf8967cd.tar.xz
serverdata-88db5f148f1f227995eb958aa393bd5fcf8967cd.zip
Add new Duck Side quest and corresponding skills
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: