» Find Revision
L2J Revision 6055:
L2JDP Revision 9794:
Hello All. I try to create new leveled Guard, which will be kill all players upper > 40 lvl.
I created 2 new classes like a L2GuardInstance and GuardKnownList and created new "type" in DB (GuardLvl). I tried to create my own classes and I tried copy existing L2GuardInstance and GuardKnownList, just renamed some fields.
When My self-created Guard was in AI_INTENTION_ACTIVE, he never attacked target, but copied Guard from L2GuardInstance allways was in AI_INTENTION_IDLE.
Code: Select all
if (object instanceof L2PcInstance) { // Check if the object added is a L2PcInstance that owns Karma L2PcInstance player = (L2PcInstance) object; if ((player.getKarma() > 0)|| (player.getLevel()>40)) { if (Config.DEBUG) _log.fine(getActiveChar().getObjectId() + ": PK " + player.getObjectId() + " entered scan range"); // Set the L2GuardInstance Intention to AI_INTENTION_ACTIVE if (getActiveChar().getAI().getIntention() == CtrlIntention.AI_INTENTION_IDLE) getActiveChar().getAI().setIntention( CtrlIntention.AI_INTENTION_ACTIVE, null);
Where I can edit it`s real knownlist
Help me to find my mistakes.
P.S. Sorry for my English
L2jserver Gracia Final