A heap of mobs (L2Monster) should attack another npc (L2Npc).
I've tried through getAI().setIntention(...,EnemyNPC);
But this not worked, mobs are just walking around (nothing happened).
Any ideas, examples, hints ...please?
p.s L2j Rev: Interlude

Code: Select all
mob.addDamageHate(npc,0,99999);mob.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK,npc,null);Code: Select all
// Manage AI thinks of a L2Attackable if (getIntention() == AI_INTENTION_ACTIVE) thinkActive(); // << - Only this else if (getIntention() == AI_INTENTION_ATTACK) thinkAttack(); Code: Select all
public void addDamageHate(L2Character attacker, int damage, int aggro) { if (!(attacker instanceof L2MonsterInstance)) Code: Select all
mob.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(_enemy.getX(), _enemy.getY(), _enemy.getZ(), 0));