the debuff is 100%

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
LeoDetona
Posts: 12
Joined: Sun May 12, 2013 11:41 pm

the debuff is 100%

Post by LeoDetona »

the debuff is 100%. I adapted a method in fear
handlers.effecthandlers.Fear

Code: Select all

         @Override    public boolean onStart()    {        if (Rnd.get(100) > getEffectPower()) <--------------- adapted        {            if ((getEffected() instanceof L2NpcInstance) || (getEffected() instanceof L2DefenderInstance) || (getEffected() instanceof L2FortCommanderInstance) || (getEffected() instanceof L2SiegeFlagInstance) || (getEffected() instanceof L2SiegeSummonInstance))            {                return false;            }                        if (getEffected().isAfraid())            {                return false;            }                        if (getEffected().isCastingNow() && getEffected().canAbortCast())            {                getEffected().abortCast();            }                        if (getEffected().getX() > getEffector().getX())            {                _dX = 1;            }            if (getEffected().getY() > getEffector().getY())            {                _dY = 1;            }                        getEffected().getAI().notifyEvent(CtrlEvent.EVT_AFRAID);            onActionTime();            return super.onStart();        }        return false; <--------------- adapted    }
==============================================================================

xml

Code: Select all

 <for>    <effect name="Fear" val="0" effectPower="50" /></for> 
worked perfect chance :)

L2J Revision 6000:
L2JDP Revision 9709:
User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

Re: the debuff is 100%

Post by St3eT »

Lol, do you known something about resist?
If i should be black sheep for sure no as punishment
Image
Post Reply