summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-01 11:29:23 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-01 11:29:23 -0300
commita97740a478b116ac2e7d6889829ac50d251b4e07 (patch)
treee422d5689b76f0a5552b2abb40ac4a181fde079f /npc/functions
parent39de1703acc36ff6e578404418ff042bc2d324f5 (diff)
downloadserverdata-a97740a478b116ac2e7d6889829ac50d251b4e07.tar.gz
serverdata-a97740a478b116ac2e7d6889829ac50d251b4e07.tar.bz2
serverdata-a97740a478b116ac2e7d6889829ac50d251b4e07.tar.xz
serverdata-a97740a478b116ac2e7d6889829ac50d251b4e07.zip
Mana EXP
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/hub.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index d00cb9afa..eee491aa3 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -345,6 +345,7 @@ function script HUB_SkillInvoke {
// 4% chance, 2.5s
harm(@skillTarget, AdjustSpellpower(.@PW), HARM_MAGI, Ele_Fire);
sc_start SC_BURNING, 2500, 1, 400, SCFLAG_NONE, @skillTarget;
+ GetManaExp(TMW2_FIREBALL, 1);
break;
case TMW2_FIREBALL:
.@PW=140+(10*@skillLv);
@@ -352,6 +353,7 @@ function script HUB_SkillInvoke {
// 22% chance, 2.5s
areaharm(@skillTarget, .@RG, AdjustSpellpower(.@PW), HARM_MAGI, Ele_Fire);
sc_start SC_BURNING, 2500, 1, 2200, SCFLAG_NONE, @skillTarget;
+ GetManaExp(TMW2_FIREBALL, 2);
break;
case TMW2_ARMAGEDDON:
.@PW=140+(10*@skillLv);
@@ -359,6 +361,7 @@ function script HUB_SkillInvoke {
// 18% chance, 3s, 3x3 radius
areaharm(@skillTarget, .@RG, AdjustSpellpower(.@PW), HARM_MAGI, Ele_Fire);
areasc(.@RG, 3000, SC_BURNING, BL_MOB|BL_PC|BL_HOM|BL_MER, "filter_hostile", @skillTarget, 1800);
+ GetManaExp(TMW2_FIREBALL, 3);
break;
////////////////////////////////
// XXX: Holy Class
@@ -368,11 +371,13 @@ function script HUB_SkillInvoke {
.@RG=2+(@skillLv/3);
harm(@skillTarget, .@dmg/10, HARM_MAGI, Ele_Holy);
areaharm(@skillTarget, .@RG, .@dmg, HARM_MAGI, Ele_Holy);
+ GetManaExp(TMW2_HOLYLIGHT, 1);
break;
case TMW2_HOLYLIGHT:
.@dmg=AdjustSpellpower(150);
harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Holy);
areaharm(@skillTarget, 1, .@dmg/10, HARM_MAGI, Ele_Holy);
+ GetManaExp(TMW2_HOLYLIGHT, 2);
break;
case TMW2_JUDGMENT:
.@dmg=AdjustSpellpower(300);
@@ -380,6 +385,7 @@ function script HUB_SkillInvoke {
.@RG=5+(@skillLv/5);
harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Holy);
areaharm(@skillTarget, .@RG, .@dsub, HARM_MAGI, Ele_Holy);
+ GetManaExp(TMW2_HOLYLIGHT, 3);
break;
////////////////////////////////
// XXX: Wind Class
@@ -387,15 +393,18 @@ function script HUB_SkillInvoke {
case TMW2_MAGICSTRIKE:
.@dmg=AdjustSpellpower(150);
harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Wind);
+ GetManaExp(TMW2_LIGHTNINGBOLT, 1);
break;
case TMW2_LIGHTNINGBOLT:
.@dmg=AdjustSpellpower(200);
harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Wind);
+ GetManaExp(TMW2_LIGHTNINGBOLT, 2);
break;
case TMW2_TEMPEST:
.@dmg=AdjustSpellpower(150);
.@RG=2+(@skillLv/5);
areaharm(@skillTarget, .@RG, .@dmg, HARM_MAGI, Ele_Wind);
+ GetManaExp(TMW2_LIGHTNINGBOLT, 3);
break;
////////////////////////////////
// XXX: Ice Class
@@ -405,6 +414,7 @@ function script HUB_SkillInvoke {
// 22% chance, 2.5s
harm(@skillTarget, AdjustSpellpower(.@PW), HARM_MAGI, Ele_Water);
sc_start SC_FREEZE, 2500, 1, 2200, SCFLAG_NONE, @skillTarget;
+ GetManaExp(TMW2_NILFHEIM, 1);
break;
case TMW2_FROSTNOVA:
.@PW=80+(10*@skillLv);
@@ -412,6 +422,7 @@ function script HUB_SkillInvoke {
// 18% chance, 3s, 3x3 radius
areaharm(@skillTarget, .@RG, AdjustSpellpower(.@PW), HARM_MAGI, Ele_Water);
areasc(.@RG, 3000, SC_FREEZE, BL_MOB|BL_PC|BL_HOM|BL_MER, "filter_hostile", @skillTarget, 1800);
+ GetManaExp(TMW2_NILFHEIM, 2);
break;
case TMW2_NILFHEIM:
// Nilfheim cast on self?
@@ -420,7 +431,7 @@ function script HUB_SkillInvoke {
areaharm(getcharid(3), .@RG, AdjustSpellpower(.@PW), HARM_MAGI, Ele_Water);
areasc(.@RG, 15000, SC_FREEZE, BL_PC | BL_MOB | BL_MER | BL_HOM, "filter_hostile");
// Maybe filter_notme() would work better, indeed
- GetManaExp(@skillId, rand2(1,3));
+ GetManaExp(TMW2_NILFHEIM, 3);
break;
/*