[Español]
Tengo un problema con esta funcion, lo que intento es, targeting una unidad cuando se lanza el evento de PLAYER_TARGET_CHANGED. Es decir intercepto el evento, y despues mediante SendChatMessage, intento obligar a las cuentas esclavas, a seleccionar un objetivo utilizando hookSecureFunc("TargetUnit", hook_TargetUnit).
Pero cuando inicio el codigo con el wowlua, sorpresa... no hace nada.
Alguno sabria alguna forma de como programar esta locura?
[Ingles]
I have a problem with this function, I'm trying to, targeting a unit when it launches PLAYER_TARGET_CHANGED event. That is intercept the event, and then using SendChatMessage, try forcing slaves accounts, to select a target using hookSecureFunc ("TargetUnit" hook_TargetUnit).
But when I start the code with wowlua, surprise ... does nothing.
Somehow one would know how to program this madness?