L2JMobius

High Five Corrections in many skills

bestover72 · 5 · 3302

Offline bestover72

  • Heir
  • **
    • Posts: 25
Hello Friends,
I hope all have a good day.

These corrections were a lot of work to discover, because they only manifest when the server is live on a vps (There is a bigger ping), because on localhost they do not manifest themselves.

Problem explanation: All dash, rush skills when you use on online server, the character returns to the initial cast location.

The problem is <effect name = "EnemyCharge" /> which derives public class EnemyCharge extends AbstractEffect
which is in the /game/data/scripts/handlers/effecthandlers/EnemyCharge.java file.

Need put on pastebin, because this mensage have max length 2000 characters

Skill correction: https://pastebin.com/bZwW0EBX

Theres the path of files to correct:
  • game/data/stats/skills/00400-00499.xml
  • game/data/stats/skills/00900-00999.xml
  • game/data/stats/skills/06000-06099.xml
  • game/data/stats/skills/06200-06299.xml
  • game/data/stats/skills/06600-06699.xml

I discovered another bug in another skill, but this time is not a rush/dash skill, is NPC Cancel Magic skill with id=4094

Problem explanation: All mobs that use this skill, the skill has a 100% chance and cancels all buffs. The correct thing is to have a 25% chance and cancel between 1 to 5 buffs

There the path of file to correct:
  • game/data/stats/skills/04000-04099.xml

Skill correction:

How is the skill 4094 now in repository:

Code: [Select]
skill id="4094" levels="12" name="NPC Cancel Magic">
<table name="#magicLevel">10 20 30 40 50 60 70 75 80 85 90 95</table>
<table name="#mpConsume">10 16 21 28 36 44 52 55 58 60 61 62</table>
<table name="#mpInitialConsume">3 4 6 7 9 11 13 14 15 15 16 16</table>
<set name="affectScope" val="SINGLE" />
<set name="castRange" val="600" />
<set name="effectPoint" val="-100" />
<set name="effectRange" val="1100" />
<set name="hitTime" val="6000" />
<set name="isMagic" val="1" />  Magic Skill
<set name="magicLevel" val="#magicLevel" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="operateType" val="A1" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="ONE" />
<for>
<effect name="DispelAll" />
</for>
</skill>

As it should be (4094):
Code: [Select]
<skill id="4094" levels="12" name="NPC Cancel Magic">
    <!-- Confirmed CT2.5 -->
    <table name="#magicLvl"> 10 20 30 40 50 60 70 75 80 85 90 95 </table>
    <table name="#mpConsume"> 10 16 21 28 36 44 52 55 58 60 61 62 </table>
    <table name="#mpInitialConsume"> 3 4 6 7 9 11 13 14 15 15 16 16 </table>
    <set name="castRange" val="600" />
    <set name="effectPoint" val="-100" />
    <set name="effectRange" val="1100" />
    <set name="hitTime" val="6000" />
    <set name="isMagic" val="1" /> <!-- Magic Skill -->
    <set name="magicLvl" val="#magicLvl" />
    <set name="mpConsume" val="#mpConsume" />
    <set name="mpInitialConsume" val="#mpInitialConsume" />
    <set name="operateType" val="A1" />
    <set name="targetType" val="ONE" />
    <for>
        <effect name="DispelByCategory" noicon="1" val="0">
            <param slot="buff" rate="25" max="5" />
        </effect>
    </for>
</skill>



Online Mobius

  • Distinguished King
  • *****
    • Posts: 16035
EnemyCharge works fine for me.
Removing it will break all those skills.

Also there is no parameter rideState.
Do you use latest L2jMobius files from the download link?


Offline bestover72

  • Heir
  • **
    • Posts: 25
Yes i use the last update from free version.
If i uncomment the enemycharge line my players can't use the skill properly.
Like i said, this bug is hard to test, because in localhost server the bug dont manifest. Im gonna test on your live server and send you a video.

If i commented EnemyCharge line, the skill work like a charm.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16035
By removing EnemyCharge the player wont move to proper location.


Offline galonforever

  • Heir
  • **
    • Posts: 16

I have the free version in a vps and the character goes back to the beginning sometimes.
Any solution?