Jump to content

AccessDenied

Banned
  • Posts

    2,105
  • Joined

  • Last visited

  • Days Won

    8
  • Feedback

    100%

Everything posted by AccessDenied

  1. Then maybe u could tell me which file control what cause as far i saw in Lineage 2 is a mess.. From what i understood the method that i need to add the check is inside the doAttack cause is @override but the whats the proper way to make your pet attack ?
  2. case 16: case 22: // Attack (pet attack) maybe i should write the code in there? like if (target != null && pet != null && pet != target && activeChar != target && !pet.isBetrayed()) { activeChar.getPet().getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target); }
  3. Yes this i wrote it manually here no copy paste thats why the mistakes thats exactly what i wrote in eclipse before i erase it but when i try hit with my char the other char the wolf walking next ot me and suddedly stop and the gameserver spammed with errors about AI Ps. thats my code if (pet != null) if (target instanceof L2Character) pet.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target);
  4. Hello recently i played star wars old republic and i got inspired an idea of the pet / summon that it auto-attack the target that you attack. Tried to do a code in L2Character (btw use F & High5) like final L2Summon pet = this.getPet(); doAttack(L2Character target) { if (!(pet == null)) { pet.getAi().getIntention(CTRL.INTENTION.DOAttack. target) } something like this but it give error any way on how to control attack of our summon / pet to attack the enemy even if is L2MonsterInstance or L2PcInstance object? Thanks a lot Ps. i'm not starter in java so speak freely, any answer i would appreciate it i just stuck.
×
×
  • 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..