Hello everyone. I am making my own balance system on Acis, and i got stuck on changing Pdef, Mdef, CritRate. I need to multiply calculated Pdef, Mdef or CritRate on activeChar based on his class. I found getPdef() function in CreatureStat.java.
public int getPDef(Creature target)
{
return (int) calcStat(Stats.POWER_DEFENCE, _activeChar.getTemplate().getBasePDef() * ((_activeChar.isRaid()) ? Config.RAID_DEFENCE_MULTIPLIER : 1), target, null);
}
But then i multiply this return, it also applies on targets. So how do i make it apply only on players based on class?
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.
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Hello !
I have a problem when connecting to the pack with the Salvation client, it blocks my IP, I see that the account is created in the database but it remains logged in.
Any idea what it could be? ALso with H5 CLient !
Thank you !
Question
dobriux
Hello everyone. I am making my own balance system on Acis, and i got stuck on changing Pdef, Mdef, CritRate. I need to multiply calculated Pdef, Mdef or CritRate on activeChar based on his class. I found getPdef() function in CreatureStat.java.
public int getPDef(Creature target) { return (int) calcStat(Stats.POWER_DEFENCE, _activeChar.getTemplate().getBasePDef() * ((_activeChar.isRaid()) ? Config.RAID_DEFENCE_MULTIPLIER : 1), target, null); }
But then i multiply this return, it also applies on targets. So how do i make it apply only on players based on class?
Sorry for very bad english.
5 answers to this question
Recommended Posts
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.