Meikis Posted November 11, 2014 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?
0 Nightw0lf Posted November 12, 2014 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
0 Lineage 2 Ramon Posted November 11, 2014 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
0 Meikis Posted November 11, 2014 Author Posted November 11, 2014 On 11/11/2014 at 8:48 PM, Lineage 2 Ramon said: 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
0 Lineage 2 Ramon Posted November 11, 2014 Posted November 11, 2014 hmm,try to change the id of the npc,the template or w\e
0 Meikis Posted November 11, 2014 Author Posted November 11, 2014 On 11/11/2014 at 9:07 PM, Lineage 2 Ramon said: hmm,try to change the id of the npc,the template or w\e I've tried this, but nothing...
0 SweeTs Posted November 12, 2014 Posted November 12, 2014 The problem occur only on this npc or you can attack any npc ?
0 Meikis Posted November 12, 2014 Author Posted November 12, 2014 (edited) On 11/12/2014 at 1:51 PM, SweeTs said: 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
0 SweeTs Posted November 12, 2014 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 :)
0 Meikis Posted November 12, 2014 Author Posted November 12, 2014 On 11/12/2014 at 8:55 PM, SweeTs said: 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
Question
Meikis
Hello, i have problem with my buffer, when I target it and click character auto attacks it, how to fix this problem?
9 answers to this question
Recommended Posts