What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Refreshing WoW's Focus Frame during Me.SetFocus

krisg

New Member
Joined
Dec 12, 2011
Messages
21
Reaction score
0
How do you manually refresh WoW's UI or other addon's Focused Frame
sometimes when i set a unit on StyxWoW.Me.SetFocus(SomeUnit.Guid); it does set the focus correctly, testing it by typing /s %f on chat but, the focus frame even the default blizz ui isnt updated

Anyone know a command to manually refresh the focus unit frame?
 
I have same issue and I have to work around by running macro

1. /target focus.name

2. /setfocus

3. /targetlasttarget

Still waiting for a fix though.
 
We modify the value in memory, without firing Lua events. (The focus frame will update when an event is fired saying its changed)
 
thanks Apoc,
is there way to manually "fire" this event "PLAYER_FOCUS_CHANGED"?
 
thanks Apoc,
is there way to manually "fire" this event "PLAYER_FOCUS_CHANGED"?
Why don't you just listen on the event and do some logic when it fires?
 
Last edited:
Can you give me a sample code that do "PLAYER_FOCUS_CHANGED"?

I completely don't know about lua thing...

Thank you
 
Just use

Code:
Styx.WoWInternals.Lua.DoString("FocusUnit('NAME')");
 
Just use

Code:
Styx.WoWInternals.Lua.DoString("FocusUnit('NAME')");

Is supposed to 'focus' on targeted unit, same thing that /focus does. However, this /script command has been blocked by blizzard to avoid people making bots.

FocusUnit();
 
Styx.WoWInternals.Lua.DoString("FocusUnit('NAME')");

This don't work on Enemy Target

Can someone help pls.
 
Back
Top