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..
Question
AccessDenied
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.

Edited by AccessDenied24 answers to this question
Recommended Posts