Jump to content

Question

Posted

Hi everyone!

 

We are trying to make a server with 100% chance skill success rate. Where I mean, that if a player has zero % resists against stun attacks can be stunned 100/100.

Normally because of CON / MEN base stats, this rate would be around 85/100. 

 

How can we solve this problem without changing the base stats of each class?

6 answers to this question

Recommended Posts

  • 0
Posted
Just now, sLeShi said:

Where is this capped in the code exactly? 

this was a mistake, i just saw a crappy old fork. I edited my post above. As i can see in acis 

final double rate = Math.max(1, Math.min((baseChance * statModifier * skillModifier * mAtkModifier * lvlModifier), 99));
  It's between 1 and 99

and in lisvus (c4)

if (rate > 99)
        {
            rate = 99;
        }
        else if (rate < 1)
        {
            rate = 1;
        }
        

is this way too.Which pack are you using?

  • 0
Posted
3 hours ago, Zake said:

this was a mistake, i just saw a crappy old fork. I edited my post above. As i can see in acis 

final double rate = Math.max(1, Math.min((baseChance * statModifier * skillModifier * mAtkModifier * lvlModifier), 99));
  It's between 1 and 99

and in lisvus (c4)

if (rate > 99)
        {
            rate = 99;
        }
        else if (rate < 1)
        {
            rate = 1;
        }
        

is this way too.Which pack are you using?

L2jOrion (Interlude) 

  • 0
Posted
12 hours ago, sLeShi said:

L2jOrion (Interlude) 

This isn't a free pack so i can't help you further with this. Although this might be still in formulas.java under calcskillsuccess method, if you struggle post this method

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...