Jump to content

Recommended Posts

  • 4 weeks later...
  • 3 weeks later...
Posted (edited)

have bug you remove -200 on class and take off armor you have pdef 0...Failed i fixed change that for alll

Fixed By:Thanks Fofas

CharStat.java

 

double val = calcStat(Stats.POWER_DEFENCE, _activeChar.getTemplate().getBasePDef() * ((_activeChar.isRaid()) ? Config.RAID_DEFENCE_MULTIPLIER : 1), target, null);
if (_activeChar instanceof L2PcInstance && ((L2PcInstance) _activeChar).getClassId().getId() >= 88)
{
val += BalanceLoad.PDef[((L2PcInstance) _activeChar).getClassId().getId() - 88];
}


if (val >= 0)
return (int) val;
else
return 0;

      Change to

double val = calcStat(Stats.POWER_DEFENCE, _activeChar.getTemplate().getBasePDef() * ((_activeChar.isRaid()) ? Config.RAID_DEFENCE_MULTIPLIER : 1), target, null);
if (_activeChar instanceof L2PcInstance && ((L2PcInstance) _activeChar).getClassId().getId() >= 88)
{
val += BalanceLoad.PDef[((L2PcInstance) _activeChar).getClassId().getId() - 88];
}


if (val >= 0)
return (int) val;
else
return (int) calcStat(Stats.POWER_DEFENCE, _activeChar.getTemplate().getBasePDef() * ((_activeChar.isRaid()) ? Config.RAID_DEFENCE_MULTIPLIER : 1), target, null);
Edited by madarismenos
  • 8 months later...
  • 6 months later...
  • 2 weeks later...
  • 1 year later...
Posted
2 minutes ago, Xenokage said:

where can it fail ?

You can do exactly the same by just adding one custom passive skill to each class.
And handle everything by using //reload skills don't need this code. Also its really OLD code.

Start with editing your server buffs and class retail passive skills first to find the balance.
 

Posted
1 minute ago, Xenokage said:

i already do that i just need a ingame support like this , if it wont fail me somewhere else later why should i not use ? it may be old but thats not reason for not using it , would i notice future problems ?

Already told you its old hardcoded code.. make custom passive skill for your classes and you have more options then this code.
Up to you if you want to use it.

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
Reply to this topic...

×   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...