rendered paste body if (object instanceof L2PcInstance) { L2PcInstance player = (L2PcInstance) object; if ( (player.getKarma() > 0) ) { if (Config.DEBUG) System.out.println(getObjectId()+": PK "+player.getObjectId()+" entered scan range"); if (getAI().getIntention() == CtrlIntention.AI_INTENTION_IDLE) getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null); } } else { // ootz0rz // if its not a player with karma...we ignore it // old code: // else if (object instanceof L2MonsterInstance) // { // L2MonsterInstance mob = (L2MonsterInstance) object; // if (mob.isAggressive() ) // { // if (Config.DEBUG) _log.fine(getObjectId()+": Aggressive mob "+mob.getObjectId()+" entered scan range"); // if (getAI().getIntention() == CtrlIntention.AI_INTENTION_IDLE) // getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null); // } // } getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE, null); } return ret;