tazerman2 Posted January 5, 2017 Share Posted January 5, 2017 hello i do adapt baium java from acis last rev to frozen is working perfect but the angels is not hit i try to fix it but nathing. is not show nathing error in console and baium attack angel but angel is not attack baium. i want if any can help for fix the problem here is the code http://pastebin.com/rRc1r6wm Quote Link to comment Share on other sites More sharing options...
0 Rootware Posted January 5, 2017 Share Posted January 5, 2017 I think getRandomTarget() return always null. Quote Link to comment Share on other sites More sharing options...
0 tazerman2 Posted January 5, 2017 Author Share Posted January 5, 2017 no i change the ramdom target and again the angel is hit me if i am in boss zone but after i am dead is not target baium and start attack public L2Character getRandomTarget(L2NpcInstance npc) { L2Character[] characters = new L2Character[_Zone.getCharactersInside().size()]; int count = 0; for (L2Character cha : _Zone.getCharactersInside().values()) { if (! (cha instanceof L2PcInstance || cha instanceof L2Summon || cha instanceof L2DecoInstance)) continue; if (! Util.checkIfInRange(9000, npc, cha, true)) continue; if (cha.isDead()) continue; if (cha.isAlikeDead()) continue; if (cha.getZ() < npc.getZ() - 100 || cha.getZ() > npc.getZ() + 100) continue; if (! GeoData.getInstance().canSeeTarget(cha.getX(), cha.getY(), cha.getZ(), npc.getX(), npc.getY(), npc.getZ())) continue; characters[count++] = cha; } if (count > 0) { QuestTimer timer = getQuestTimer("clean_player", null, null); if (timer != null) timer.cancel(); startQuestTimer("clean_player", 20000, null, null); return characters[Rnd.get(count)]; } return null; } Quote Link to comment Share on other sites More sharing options...
0 Tryskell Posted January 5, 2017 Share Posted January 5, 2017 Put logs to the whole "angels_aggro_reconsider" event and see what happens. Verify angels knownlist, and their aggrolist too. Quote Link to comment Share on other sites More sharing options...
0 tazerman2 Posted January 5, 2017 Author Share Posted January 5, 2017 if i have weapon he say my name like [1] target1 -> support and after say [2] target1 -> support target2 -> baium if i remove weapon say [2] target1 -> null target2 -> baium but again is not attack angel -> baium.... else if (event.equalsIgnoreCase("angels_aggro_reconsider")) { boolean updateTarget = false; // Update or no the target for (L2NpcInstance minion : _Minions) { L2Attackable angel = ((L2Attackable) minion); if (angel == null) continue; L2Character victim = angel.getMostHated(); if (Rnd.get(100) < 10) // Chaos time updateTarget = true; else { if (victim != null) // Target is a unarmed player ; clean aggro. { if (victim instanceof L2PcInstance && victim.getActiveWeaponInstance() == null) { angel.stopHating(victim); // Clean the aggro number of previous victim. updateTarget = true; } logcheck.info("[1] Target1 -> " +victim); } else // No target currently. updateTarget = true; } if (updateTarget) { L2Character newVictim = getRandomTarget(minion); if (newVictim != null && victim != newVictim) { angel.addDamageHate(newVictim, 0, 10000); angel.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, newVictim); logcheck.info("[2] Target1 -> " + victim + " Target2 -> " + newVictim); } } } } Quote Link to comment Share on other sites More sharing options...
0 Tryskell Posted January 5, 2017 Share Posted January 5, 2017 Not sure if on L2JFrozen, mobs can attack other mobs. I remember I had to edit it. Check confusion skill type and see how it's supported. Quote Link to comment Share on other sites More sharing options...
0 l2jkain Posted January 6, 2017 Share Posted January 6, 2017 The Baium of the 12jacis 350 is in the same way, the angels attack the baium and take damage Quote Link to comment Share on other sites More sharing options...
Question
tazerman2
hello i do adapt baium java from acis last rev to frozen is working perfect but
the angels is not hit i try to fix it but nathing. is not show nathing error in console
and baium attack angel but angel is not attack baium. i want if any can help
for fix the problem
here is the code
http://pastebin.com/rRc1r6wm
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.