Jump to content

Question

9 answers to this question

Recommended Posts

  • 0
Posted (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 by Nightw0lf
  • 0
Posted

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
Posted (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 by Meikis
  • 0
Posted

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
Posted

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock