Meikis Posted November 11, 2014 Share Posted November 11, 2014 Hello, i have problem with my buffer, when I target it and click character auto attacks it, how to fix this problem? Link to comment Share on other sites More sharing options...
0 Nightw0lf Posted November 12, 2014 Share Posted November 12, 2014 (edited) delete this player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this); change the whole action from some other npc should be the best choice Edited November 12, 2014 by Nightw0lf Link to comment Share on other sites More sharing options...
0 Lineage 2 Ramon Posted November 11, 2014 Share Posted November 11, 2014 (edited) the buffer works as it could?,whats the type of it?If its L2Monster then there is the problem,check it. Edited November 11, 2014 by Lineage 2 Ramon Link to comment Share on other sites More sharing options...
0 Meikis Posted November 11, 2014 Author Share Posted November 11, 2014 the buffer works as it could?,whats the type of it?If its L2Monster then there is the problem,check it. Buffer works perfectly, it's instanced buffer, type - L2Buffer Link to comment Share on other sites More sharing options...
0 Lineage 2 Ramon Posted November 11, 2014 Share Posted November 11, 2014 hmm,try to change the id of the npc,the template or w\e Link to comment Share on other sites More sharing options...
0 Meikis Posted November 11, 2014 Author Share Posted November 11, 2014 hmm,try to change the id of the npc,the template or w\e I've tried this, but nothing... Link to comment Share on other sites More sharing options...
0 SweeTs Posted November 12, 2014 Share Posted November 12, 2014 The problem occur only on this npc or you can attack any npc ? Link to comment Share on other sites More sharing options...
0 Meikis Posted November 12, 2014 Author Share Posted November 12, 2014 (edited) The problem occur only on this npc or you can attack any npc ? Only for this... IMO problem is in instance code, here: @Override public void onAction(L2PcInstance player) { if (this != player.getTarget()) { player.setTarget(this); player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel())); player.sendPacket(new ValidateLocation(this)); } else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false)) { player.setCurrentFolkNPC(this); showMessageWindow(player); player.sendPacket(ActionFailed.STATIC_PACKET); } else { player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this); player.sendPacket(ActionFailed.STATIC_PACKET); } } Edited November 12, 2014 by Meikis Link to comment Share on other sites More sharing options...
0 SweeTs Posted November 12, 2014 Share Posted November 12, 2014 lol :troll: Why so much (useless) checks .. Intention attack, huehue.. Anyway, take a look at any other instance and c/p it if you are not sure what should you put :) Link to comment Share on other sites More sharing options...
0 Meikis Posted November 12, 2014 Author Share Posted November 12, 2014 lol :troll: Why so much (useless) checks .. Intention attack, huehue.. Anyway, take a look at any other instance and c/p it if you are not sure what should you put :) What you mean saying useless checkS, if something is useless it is only - intention check Link to comment Share on other sites More sharing options...
Question
Meikis
Hello, i have problem with my buffer, when I target it and click character auto attacks it, how to fix this problem?
Link to comment
Share on other sites
9 answers to this question
Recommended Posts