-
Member
Auto-Retarget Feign Death LUA script
I remember maybe someone asking for it, here you go in case you need, not tested but should work pretty good. (Only in arenas)
You can add "arena4" and "arena5" in the list, if you play 5v5 bracket.
Code:
local atar = {
"arena1",
"arena2",
"arena3"
}
local Target = UnitExists("target")
for i=1, #atar do
if UnitBuff(atar[i],"Feign Death")
and not Target
then
TargetUnit(atar[i])
end
end
Enjoy
-
Member
good idea, i will try this. tyvm. :P
-
Active Member
Use COMBAT_LOG_EVENT_UNFILTERED on type UNIT_DIED from targetGUID sourceGUID from a hunter class. That way, you only target your current target and don't constantly iterate a list.
-
Post Thanks / Like - 1 Thanks
bynike (1 members gave Thanks to Numba1stunna1 for this useful post)
-
Member
Originally Posted by
Numba1stunna1
Use COMBAT_LOG_EVENT_UNFILTERED on type UNIT_DIED from targetGUID sourceGUID from a hunter class. That way, you only target your current target and don't constantly iterate a list.
Sure it can be done like that, but correct me if I'm wrong, isn't the combat log frame script hooked into the game permanently until you close the game or do /reload? I remember time ago when turning off PQR it was still trying to do combat log events like "stop casting on kick", "vanish blind", and so on. Now I don't exactly remember the details of the script/rotation, but not only the "toolkit" (this was the name) was not working, but also it was permanently attached to wow even after closing pqr and that was really annoying to be honest.
Can you confirm this?
-
Member
exactly, u have to do reloadui or relog game to quit the events script.
-
Member
Originally Posted by
bynike
exactly, u have to do reloadui or relog game to quit the events script.
Alright, that's why I wrote that code without the event handler, I didn't like the idea of a script running in background even after closing the injector (pqr), but that's a matter of preferences, it can be done both ways as you said, so thanks for the tip
-
Active Member
No. You can set it to enable/disable on macro or set it to only work when PQR is running (ex. PQR_RotationStarted). You can also register/unregister specific events of a frame. Learning basic object oriented programming and basic WoW frames/handlers will drastically make a PQR profile much more efficient.
-
Member
I don't know if PQR_RotationStarted or other similar command work with pqr 1.1. (3.3.5)? Like PQR_IsOutOfSight or PQR_DelayRotation(or what was that) for example don't work.