Page 1 of 1

onEvtThink() failed: null

Posted: Tue Nov 25, 2014 3:23 pm
by meikis
Maybe someone know where is problem? :|

Code: Select all

RaidBossSpawnManager: Updated Varka's Hero Shadith respawn time to Mon Nov 24 22:11:00 EST 2014Actor: Varka's Hero Shadith -  onEvtThink() failed: nulljava.lang.NullPointerException    at net.sf.l2j.gameserver.model.actor.L2Summon.isInvul(L2Summon.java:578)    at net.sf.l2j.gameserver.ai.L2AttackableAI.autoAttackCondition(L2AttackableAI.java:139)    at net.sf.l2j.gameserver.ai.L2AttackableAI.thinkActive(L2AttackableAI.java:418)    at net.sf.l2j.gameserver.ai.L2AttackableAI.onEvtThink(L2AttackableAI.java:2121)    at net.sf.l2j.gameserver.ai.L2CharacterAI.onIntentionActive(L2CharacterAI.java:158)    at net.sf.l2j.gameserver.ai.L2AttackableAI.onIntentionActive(L2AttackableAI.java:2243)    at net.sf.l2j.gameserver.ai.AbstractAI.setIntention(AbstractAI.java:287)    at net.sf.l2j.gameserver.ai.AbstractAI.setIntention(AbstractAI.java:244)    at net.sf.l2j.gameserver.model.actor.L2Attackable.addDamageHate(L2Attackable.java:885)    at net.sf.l2j.gameserver.ai.L2AttackableAI.onEvtAttacked(L2AttackableAI.java:2166)    at net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:371)    at net.sf.l2j.gameserver.ai.AbstractAI.notifyEvent(AbstractAI.java:342)    at net.sf.l2j.gameserver.model.actor.L2Character.onHitTimer(L2Character.java:4409)    at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.onHitTimer(L2PcInstance.java:4141)    at net.sf.l2j.gameserver.model.actor.L2Character$HitTask.run(L2Character.java:2178)    at net.sf.l2j.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:80)    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)    at java.util.concurrent.FutureTask.run(FutureTask.java:262)    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at java.lang.Thread.run(Thread.java:745)

Code: Select all

 @Override    protected void onEvtThink()    {        // Check if the actor can't use skills and if a thinking action isn't already in progress        if (_thinking || getActiveChar().isAllSkillsDisabled())            return;                // Start thinking action        _thinking = true;                try        {            // Manage AI thinks of a L2Attackable            switch (getIntention())            {                case AI_INTENTION_ACTIVE:                    thinkActive();                    break;                case AI_INTENTION_ATTACK:                    thinkAttack();                    break;                case AI_INTENTION_CAST:                    thinkCast();                    break;            }        }        catch(Exception e)        {            _log.log(Level.WARNING, this+" -  onEvtThink() failed: "+e.getMessage(), e);        }        finally        {            // Stop thinking action            _thinking = false;        }    }

Re: onEvtThink() failed: null

Posted: Wed Nov 26, 2014 2:23 pm
by Stalitsa
You request a support for another Project....!!
Contact the Owners for that support!!!

Re: onEvtThink() failed: null

Posted: Wed Nov 26, 2014 3:25 pm
by UnAfraid
Replace the method in L2Summon with this one:

Code: Select all

public boolean isInvul(){    final L2PcInstance owner = _owner;    return super.isInvul() || ((owner != null) && owner.isSpawnProtected());}

Re: onEvtThink() failed: null

Posted: Wed Nov 26, 2014 6:11 pm
by Stalitsa
UnAfraid wrote:Replace the method in L2Summon with this one:

Code: Select all

public boolean isInvul(){    final L2PcInstance owner = _owner;    return super.isInvul() || ((owner != null) && owner.isSpawnProtected());}
is that he asked from L2J??

Re: onEvtThink() failed: null

Posted: Wed Nov 26, 2014 6:14 pm
by Sdw
You're in legacy server support function. If you are saying he is using another pack cause of package name, you should know L2J use to be net.sf.l2J. It changed between Gracia Final -> Freya.

Re: onEvtThink() failed: null

Posted: Wed Nov 26, 2014 6:18 pm
by Stalitsa
Sdw wrote:You're in legacy server support function. If you are saying he is using another pack cause of package name, you should know L2J use to be net.sf.l2J. It changed between Gracia Final -> Freya.
ohh realy missed that. thnx for the info!!!
and sry to @Meikis !!!