diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-01-29 17:52:05 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-01-29 17:52:05 -0300 |
commit | 7a8a66c08189705cac9ce04b5fd0563ddee85552 (patch) | |
tree | f78be44c85b6c1ea47ab02ea847c136b68e7f9fe /npc/functions/hub.txt | |
parent | fcf6ca8d27d9ed9021a4e745d77851b3ab5a3e1e (diff) | |
download | serverdata-7a8a66c08189705cac9ce04b5fd0563ddee85552.tar.gz serverdata-7a8a66c08189705cac9ce04b5fd0563ddee85552.tar.bz2 serverdata-7a8a66c08189705cac9ce04b5fd0563ddee85552.tar.xz serverdata-7a8a66c08189705cac9ce04b5fd0563ddee85552.zip |
Prepare still unreleased skill "Assassinate"
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r-- | npc/functions/hub.txt | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index c449e2904..443b600b5 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -762,6 +762,20 @@ function script HUB_SkillInvoke { GetManaExp(TMW2_METEORSTRIKE, 3); break; /* + //////////////////////////////// + // XXX: Assassinate + // » Assassinate: Instantly kills a monster weaker than you. + // » Assassinated monsters give no experience. + // » You'll be stunned for 3 seconds as a penalty. + // » Does not work on boss. Base Success Chance is 100%. + case TMW2_ASSASSINATE: + .@lv = getunitdata(@skillTarget, UDT_LEVEL); + if ((.@lv+10-@skillLv) < (BaseLevel+(REBIRTH*2)) && filter_notboss(@skillTarget)) + sc_start SC_COMA, 90000, 1, 10000, SCFLAG_NONE, @skillTarget; + else + dispbottom l("Assassination failed - target is stronger than you"); + SC_Bonus(3, SC_STUN, 1); + break; // TODO: Ultimate Skills (T5/0) // Sanctum: AoE resurrection, HP like Resurrect, 30min+ cooldown and @@ -823,13 +837,6 @@ function script HUB_SkillInvoke { break; - // TODO Assassin skill - // Higher chance of success if monster HP+ATK < your own HP - // (Maybe put level on that?) Never works on boss - // Maybe arrow only? - case TMW2_ASSASSINATE: - // SC_COMA TODO - break; case TMW2_SNARE: // 100.00% inflict STUN/SLEEP/whatever |