rendered paste body// l2gaurdinstance// importsimport net.sf.l2j.Config;import net.sf.l2j.gameserver.ai.CtrlIntention; // <--- shows up as unresolvedimport net.sf.l2j.gameserver.serverpackets.ActionFailed;import net.sf.l2j.gameserver.serverpackets.MyTargetSelected;import net.sf.l2j.gameserver.serverpackets.ValidateLocation;import net.sf.l2j.gameserver.templates.L2NpcTemplate;// code public boolean addKnownObject(L2Object object, L2Character dropper) { boolean ret = super.addKnownObject(object, dropper); if (!ret) return false; if (_homeX == 0) getHomeLocation(); if (object instanceof L2PcInstance) { L2PcInstance player = (L2PcInstance) object; if ( (player.getKarma() > 0) ) { if (Config.DEBUG) _log.fine(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); // } // } // the IFs are just for debug purposes...not really needed if (object instanceof L2MonsterInstance) { L2MonsterInstance mob = (L2MonsterInstance) object; if (Config.DEBUG) _log.fine(getObjectId()+": Monster "+object.getObjectId()+"/"+mob.getName()+" entered scan range."); } else { if (Config.DEBUG) _log.fine(getObjectId()+": Object "+object.getObjectId()+" entered scan range."); } // CtrlIntention is not resolving here nor anywhere else? getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE, null); } return ret; }