This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
somamax
Hello,
I am using a l2j Freya version.
In order to balance, I would like to change my cancel formula to have the SPS/Sorcerer cancellation skill (ID 1056) lands for 100% chance, always.
At this moment my cancellation skill from magos is failling too much -> cancel 0 buff
100% land rate and keeping the 5 max negated buffs is my goal.
Editing the power, or the magicLvl in the skill.xml do not influence the land rate. (or not enough?) (Tested unsuccesfully with magicLvl 85 and Power 100)
I have searched, and i'm a bit confuse between the 2 java files "cancel.java" and "disablers.java"
I guess it's somewhere around the NEGATE case in disablers.java.
Have to put a static variable like "landrate = 100".
Not sure at all..
Actually i'm worried cause i dont want to change other cancel buff like Touch of Death or crusher. (physical ones)
I can put here the full disablers.java if needed.
Thx for helping me.
EDIT:
Ive found how to do it :
In fact the cancel system is rly complex. There is loop browsing all your buff and applying the formula. It permits to give you the random buff cancel, not only the last one.
It's in handler Cancel.java
So i have added :
Line 92 :
Line 262 :
Also in the skill.xml i have change the magicLvl to '99'. This way, the skill land 100% always.
In result, my cancel now remove always the maxnegated, and in random position.
Edited by somamax0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now