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.


  • Posts

    • Конвертация формы пакета Старый ⇄ Новый в один клик Создание новых пакетов любой формы Шифрование Lineage2Ver121 (включается в пакет пакета) Безопасное редактирование: работа в копии, полная история отмен (Ctrl+Z / Ctrl+Shift+Z), одна кнопка «Сохранить» Интеграция с системой Открытие .utx / .ugx наклона клика по проводнику (ассоциации регистрируются при установке) один пример: открытие файла добавить его вкладку в уже запущенное окно Мультиязычный интерфейс (EN, RU, UK, ES, PT, EL, KO, VI, ZH) — язык подхватывается из системы   Поддерживаемые форматы Пакеты:  UTX, UGX Текстуры:  RGBA8, DXT1, DXT3, DXT5, G16, P8 Ресурсы:  GFX (Scaleform) Требования Windows. Java не требуется — включена в сборку. Установка Запустите  La2Tools-3.0.2.exe  — инсталлятор создаст ярлыки и зарегистрирует связанные файлы. Либо воспользуйтесь портативной версией. https://la2.tools/files/La2Tools_3.0.3_setup.exe   https://la2.tools/files/La2Tools_3.0.3_portable.zip  - Портативная версия  
    • WHEN SAYING “YES” IS A MISTAKE Not every project is worth taking on, even if the client is ready to pay. Sometimes refusing isn’t about losing money — it’s about protecting your reputation and time. Over the years, we’ve learned to quickly spot the cases that are almost guaranteed to turn into problems. Here are the most common situations where we turn down work: ▪ The client wants it “like everyone else’s,” but with lots of custom changes and on a minimal budget ▪ There are no proper source materials, yet the deadlines are already burning and everything is needed “yesterday” ▪ Constant changes to requirements after the work has already started ▪ A task with a very low chance of success, but very high expectations ▪ The client isn’t willing to discuss the process and sees us as just an executor - A good result almost always starts when both sides have an honest understanding of the risks and real possibilities of the project. If you’re currently discussing a project and unsure whether to move forward — write to us. We’ll honestly and directly tell you whether it’s worth taking on or if it’s better to look for another solution. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documents #drawing #photoshop #refuse #cases
    • The price reflects the value of the project, not just the source files. This is a complete, production-ready server that has already proven itself over the course of a full year, with a loyal player base and no major issues requiring ongoing development. To put it into perspective, the asking price is approximately what the server generated in one year. You're not buying an unfinished pack that still needs months of work, you're buying a polished, fully tested, revenue-proven project that's ready to go online. Considering that, I believe €35000 is a fair price.
    • How we can explain the amount? Is something special there in?
    • You can actually use both, walker is more realable and easy to use! Search on forum you can find some posts. 👽
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..