[Bug?] Attack Macro

Discussion forum related to PVP Server.

[Bug?] Attack Macro

by Snouk » Sun Mar 22, 2015 8:48 am

Hi.
I tried to use a macro to target an opponent in front of me (and only the one in front of me) without disable the auto-attack.
Code: Select all
/script ClearTarget();
/script AttackTarget();


But here if I stay in front of the opponent once targeted and I use this macro again, the auto-attack turns off.
One of the greatest interest of this macro is the fact that it does'nt drop off the auto-attack if you spam it.

Is that a bug or a behavior that also affected macros in retail ?
(and if some guys who know macros well can look on a generic solution to make it work, that will be awesome!)

Thank you for attention.
Snouk
Private
Private
 

Re: [Bug?] Attack Macro

by Snouk » Thu Mar 26, 2015 10:44 am

I have some news about this issue. When I target an opponent between an enemy already targeted with auto-attack enabled, the focus switchs well but the auto-attack turns off.

In theory, with this macro, the following mechanic should apply on a opponent already targeted with auto-atk enabled :
The ClearTarget script acts before the AttackTarget (logic...) and always drops the opponent before the second line acts (it means when no opponent is targeted : the auto-attack is disabled by default). Also enabling the auto-attack when no targets are selected triggers a focus on the nearest enemy (usually in front of the player).

So my conclusions are :
-NR keep in memory the auto-attack's state when ClearTarget is used.
-The target changes before the server has enough time to applies the state "disabled" to the auto-attack in time. So when the new target is choosen the script's logic considers that no target has been dropped so the auto-attack had no reason to turns off : nothing changes and AttackTarget disables the auto-attack.
Snouk
Private
Private
 


Return to PVP Server Specific discussion