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.




  • Posts

    • MoMoProxy Offers $850 for 1TB Plan. anyone interested in can view details as follow: https://momoproxy.com/residential-proxies
    • Yes there are many problems. Im trying to fix there slowly, cause i i put already a lot of work in this files. I think it will not be easy to move the project to other builds
    • You probably wanted to write l2jmobius. I would recommend that you change the build because it has a lot of problems with the movement of npcs and players. Even if you find bots you will have to correct the movement or the bots will get stuck, fly, teleport
    • Complete Server Pack + Source Files: C4 Scions Of Destiny: P656 Retail X1 L2OFF Server Pack + Source: Price: 100EUR --------------------------------------------------------------------------------------------------------------------------------------------- C4 Scions Of Destiny: P656 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 150EUR -------------------------------------------------------------------------------------------------------------------------------------------- C6 Interlude: P756 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 150EUR The same as C4 but in C6 Client  ----------------------------------------------------------------------------------------------------------------------------------------------   C6 Interlude: P746 L2Gold L2OFF Server Pack + Source: Price: 150EUR   https://imgur.com/a/pts-l2gold-interlude-p746-9kB3oA9#MbP2aJh -------------------------------------------------------------------------------------------------------------------------------------------------   C6 - Classic Interlude: P110 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 350EUR   https://imgur.com/a/pts-l2off-p110-classic-interlude-athena-x45-Z2kZxuv#YlZU9hF -------------------------------------------------------------------------------------------------------------------------------------------------   DISCORD - MMOPROMOOO TELEGRAM - MMOPROMO 
    • Wts adena scryde x50 Baium 12 Valakas 12 good price Top weapons +16
  • Topics

×
×
  • Create New...