Page 1 of 1

Need Help - Status Combat!

Posted: Sat Feb 26, 2011 6:41 pm
by Skyler
#[English] --version

Hello. I apologize for my English, used google translator as Russian).
Here's the problem:
- Character at a miss not getting to the status of Combat, the model shows the client that he aggressive, but testing shows that it is not in the status of Combat. "|| Player.isInCombat ()! = 0"
What to do? What class. java rule?

Another problem:

- Passive character, after the shock (with fists, sword, stick, etc.) does not get the status of Combat.
If you hit skill, it's all right. If, however, simply to beat a character, he is not paying attention to it.
What to do? What class. java rule?

Using l2j, old assemblies. Raising packages for every new books.
Came to Freya, but here's the problem noticed only now.


Asking for your help. :)
sorry for what has created a few themes, I do not know where to add.


#[Русская] --версия

Здравствуйте. Прошу прощения за мой английский, воспользовался google переводчиком так как Русский ).
Вот в чем проблема:
- Персонаж, при промахе не становится в статус Combat, модели клиента показывают что он агрессивный, но проверки показывают что он не в статусе Combat. " || player.isInCombat() != 0 "
Как быть? Какой класс .java править?


Еще одна проблема:

- Пассивный персонаж, после удара (кулаками, мечем, палкой и т.п) не становится в статус Combat. Если ударить скилом, то все в порядке. Если же, просто бить персонажа, он стоит не обращая на это внимания.
Как быть? Какой класс .java править?


Использую l2j, старых сборок. Поднимал пакеты на каждые новые хроники.
Дошел до Freya, но вот эту проблему заметил только сейчас.

Прошу вашей помощи. :)

Re: Need Help - Status Combat!

Posted: Sat Feb 26, 2011 7:17 pm
by JMD
I think this is because you have slow pc fro the server? Probably even playing from the same machine you are hosting the server?

Re: Need Help - Status Combat!

Posted: Sat Feb 26, 2011 7:32 pm
by Skyler
No, the computer everything is ok =)
The point in the assembly, taking the actual audit Freya with l2jserver, everything works as it should.
well, since I last used source l2jserver, on Part2 chronicles.
Did not notice how it fixed a.

Re: Need Help - Status Combat!

Posted: Sun Feb 27, 2011 4:44 pm
by Tryskell
For both problems, it seems to be related to AttackStanceManager or AIs.

Verify if you got all occurences AttackStanceManager L2J got. My own IL project missed many checks (one important in L2Character), so basically cubics couldn't be activated refactoring, as cubics ask to be in attack stance in order to be activated.

Combat statut depends of AI :

Code: Select all

public boolean isInCombat(){    return (getAI().getAttackTarget() != null || getAI().isAutoAttacking());}
It's another track if you already got perfect code with AttackStance.
Verify L2PlayerAI, L2PlayableAI and CharacterAI.

Finally verify how you're supposed to have an attack target (getAttackTarget() != null), or how a player is supposed to be in autoAttack mode (isAutoAttacking()).