summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-16 20:04:18 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-16 20:04:18 -0300
commitf3da012fc1e335df177287f0ca9a0858f9c782ce (patch)
tree307bdb27c7f9a67d429b47c1fde864867b1b5f5e /npc
parentfeea56f2d0f5bdcac7fb36a9071396c7b706b91f (diff)
downloadserverdata-f3da012fc1e335df177287f0ca9a0858f9c782ce.tar.gz
serverdata-f3da012fc1e335df177287f0ca9a0858f9c782ce.tar.bz2
serverdata-f3da012fc1e335df177287f0ca9a0858f9c782ce.tar.xz
serverdata-f3da012fc1e335df177287f0ca9a0858f9c782ce.zip
Process earth skills
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/hub.txt43
1 files changed, 26 insertions, 17 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index de128fda9..463615507 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -450,6 +450,32 @@ function script HUB_SkillInvoke {
// Maybe filter_notme() would work better, indeed
GetManaExp(TMW2_NILFHEIM, 3);
break;
+ ////////////////////////////////
+ // XXX: Earth Class
+ // DEF Effects at Gaia Break
+ case TMW2_METEORSTRIKE:
+ .@PW=130+(20*@skillLv);
+ .@dmg=AdjustSpellpower(.@PW);
+ harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Earth);
+ GetManaExp(TMW2_METEORSTRIKE, 1);
+ break;
+ case TMW2_METEORSHOWER:
+ .@PW=140+(10*@skillLv);
+ .@dmg=AdjustSpellpower(.@PW);
+ .@RG=3+(@skillLv/5);
+ areaharm(@skillTarget, .@RG, .@dmg, HARM_MAGI, Ele_Earth);
+ GetManaExp(TMW2_METEORSTRIKE, 2);
+ break;
+ case TMW2_GAIABREAK:
+ .@PWA=170+(30*@skillLv);
+ .@PWB=110+(10*@skillLv);
+ .@dmg=AdjustSpellpower(.@PWA);
+ .@dsub=AdjustSpellpower(.@PWB);
+ harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Earth);
+ rectharm(@skillTarget, 2, 5, .@dsub, HARM_MAGI, Ele_Earth);
+ areasc(2, 5000, SC_INCDEFRATE, BL_PC, 10, "filter_friendly");
+ GetManaExp(TMW2_METEORSTRIKE, 3);
+ break;
/*
// TODO: Ultimate Skills (T5/0)
@@ -484,23 +510,6 @@ function script HUB_SkillInvoke {
- // XXX: Earth Class (DEF effects)
- case TMW2_METEORSTRIKE:
- .@dmg=AdjustSpellpower(150);
- harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Earth);
- break;
- case TMW2_METEORSHOWER:
- .@dmg=AdjustSpellpower(150);
- .@RG=3+(@skillLv/5);
- areaharm(@skillTarget, .@RG, .@dmg, HARM_MAGI, Ele_Earth);
- break;
- case TMW2_GAIABREAK:
- // TODO: DEF UP+
- .@dmg=AdjustSpellpower(200);
- .@dsub=AdjustSpellpower(120);
- harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Earth);
- rectharm(@skillTarget, 2, 5, .@dsub, HARM_MAGI, Ele_Earth);
- break;
// TODO Assassin skill
// Higher chance of success if monster HP+ATK < your own HP