From 2732854aaf11732545e40144bec36c92ab1ced85 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 30 Dec 2021 10:25:53 -0300 Subject: Replace HVAN_CAPRICE with TMW2_CAPRICE --- db/homun_skill_tree.txt | 2 +- db/re/skill_db.conf | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ npc/functions/hub.txt | 9 ++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) diff --git a/db/homun_skill_tree.txt b/db/homun_skill_tree.txt index 775fecb5f..38e5dfa6b 100644 --- a/db/homun_skill_tree.txt +++ b/db/homun_skill_tree.txt @@ -23,7 +23,7 @@ // 6007 = all rounder // 6008 = superior -6001,8013,5,0,0,0,0,0,0,0,0,0,0,0 //HVAN_CAPRICE** - Rand-cast bolts +6001,8047,5,0,0,0,0,0,0,0,0,0,0,0 //TMW2_CAPRICE** - Rand-cast bolts 6002,8045,9,0,0,0,0,0,0,0,0,0,0,0 //TMW2_HOMUN_HEAL - healing skill. 6003,8002,5,0,0,0,0,0,0,0,0,0,0,0 //HLIF_AVOID***** Raises walk speed 6004,8008,3,0,0,0,0,0,0,0,0,0,0,0 //HAMI_BLOODLUST** - Raise ATK and leech HP diff --git a/db/re/skill_db.conf b/db/re/skill_db.conf index adf98f373..145df61ea 100644 --- a/db/re/skill_db.conf +++ b/db/re/skill_db.conf @@ -40543,4 +40543,59 @@ skill_db: ( } } }, +{ + Id: 8047 + Name: "TMW2_CAPRICE" + Description: "Chaos Strikes" + MaxLevel: 5 + Range: 9 + Hit: "BDT_SKILL" + SkillType: { + Enemy: true + } + DamageType: { + NoDamage: true + } + //CoolDown: 2000 + AttackType: "Magic" + NumberOfHits: { + Lv1: 1 + Lv2: 2 + Lv3: 3 + Lv4: 4 + Lv5: 5 + Lv6: 6 + Lv7: 7 + Lv8: 8 + Lv9: 9 + Lv10: 10 + } + AfterCastActDelay: { + Lv1: 1000 + Lv2: 1200 + Lv3: 1400 + Lv4: 1600 + Lv5: 1800 + Lv6: 2000 + Lv7: 2200 + Lv8: 2400 + Lv9: 2600 + Lv10: 2800 + } + FixedCastTime: -1 + Requirements: { + SPCost: { + Lv1: 22 + Lv2: 24 + Lv3: 26 + Lv4: 28 + Lv5: 30 + Lv6: 32 + Lv7: 34 + Lv8: 36 + Lv9: 38 + Lv10: 40 + } + } +}, ) diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index add706461..b9817f18a 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -388,6 +388,15 @@ function script HUB_SkillInvoke { sc_end SC_BLIND; sc_start SC_CURSE, rand2(3500, 5000), 1, 10000, SCFLAG_NONE, @skillCaster; break; + case TMW2_CAPRICE: + .@gid = @skillCaster; // gethominfo(0); + .@ak1 = getunitdata(.@gid, UDT_MATKMIN); + .@ak2 = getunitdata(.@gid, UDT_MATKMAX); + for (.@i=0; .@i < limit(1, @skillLv, 10); .@i++) { + harm(@skillTarget, rand2(.@ak1, .@ak2), HARM_MAGI, any(Ele_Fire, Ele_Water, Ele_Wind, Ele_Earth), .@gid); + sleep2(100); + } + break; } return; } -- cgit v1.2.3-60-g2f50