summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-26 14:46:16 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-26 14:46:16 -0300
commit92d3154be14dd0166a562620444ab17c49e8057e (patch)
tree1565f5180cc3fb6e6987176f5897553c59ceb1ff
parent9afe3a7e5badb505ced1c0eae8b8b277f164e58c (diff)
downloadserverdata-92d3154be14dd0166a562620444ab17c49e8057e.tar.gz
serverdata-92d3154be14dd0166a562620444ab17c49e8057e.tar.bz2
serverdata-92d3154be14dd0166a562620444ab17c49e8057e.tar.xz
serverdata-92d3154be14dd0166a562620444ab17c49e8057e.zip
Sketch for sword combo skill
-rw-r--r--npc/functions/hub.txt47
1 files changed, 47 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 85db3ec07..79a4b0990 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -484,10 +484,57 @@ function script HUB_SkillInvoke {
// No cast time, but cooldown present
// DEF lowers as cast, damage based on combo.
case TMW2_HORIZONTALSLASH:
+ .@PW=100;
+ .@PW+=(5*@skillLv);
+ harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
+ break;
case TMW2_DIAGONALSLASH:
+ .@PW=100;
+ if (LAST_SKILL[0] == TMW2_HORIZONTALSLASH)
+ .@PW+=20;
+ if (.@PW >= 120)
+ .@PW+=30;
+ .@PW+=(5*@skillLv);
+ harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
+ break;
case TMW2_VERTICALSLASH:
+ .@PW=100;
+ if (LAST_SKILL[0] == TMW2_DIAGONALSLASH)
+ .@PW+=30;
+ if (LAST_SKILL[1] == TMW2_HORIZONTALSLASH)
+ .@PW+=20;
+ if (.@PW >= 150)
+ .@PW+=100;
+ .@PW+=(5*@skillLv);
+ harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
+ break;
case TMW2_STAB:
+ .@PW=100;
+ if (LAST_SKILL[0] == TMW2_VERTICALSLASH)
+ .@PW+=40;
+ if (LAST_SKILL[1] == TMW2_DIAGONALSLASH)
+ .@PW+=30;
+ if (LAST_SKILL[2] == TMW2_HORIZONTALSLASH)
+ .@PW+=20;
+ if (.@PW >= 190)
+ .@PW+=200;
+ .@PW+=(5*@skillLv);
+ harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral);
+ break;
case TMW2_GRANDBLAST:
+ .@PW=100;
+ if (LAST_SKILL[0] == TMW2_STAB)
+ .@PW+=50;
+ if (LAST_SKILL[1] == TMW2_VERTICALSLASH)
+ .@PW+=40;
+ if (LAST_SKILL[2] == TMW2_DIAGONALSLASH)
+ .@PW+=30;
+ if (LAST_SKILL[3] == TMW2_HORIZONTALSLASH)
+ .@PW+=20;
+ if (.@PW >= 200)
+ .@PW+=300;
+ .@PW+=(5*@skillLv);
+ harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Holy);
break;
// Brawling Class