View Full Version : Need help with PVP flag
ryusick
06-30-2006, 07:46 PM
when i hit /pvp it doesnt pop up, i have to reloadui to get to to show on unitframe,
my question is can anyone help me to make it react without having to reloadui everytime i wanna see if i'm flagged or not.
where do i edit it in the default.lua would be a nice clue =) thanks.
schmittmj
07-01-2006, 11:58 AM
Try changing this line in \Nurfed_UnitFrames\Nurfed_UnitFrames.lua
elseif (event == "UNIT_PVP_UPDATE") then
lib:UpdatePvPStatus();
to
elseif (event == "UNIT_FACTION") then
lib:UpdatePvPStatus();
This has been working for me, though I'm not sure if it is the proper way to do it, as I really don't know much about .lua at all. I gathered this info from here:
http://www.wowwiki.com/Events_U_(UI,_Unit,_Update,_Use)#UNIT_PVP_UPDATE
Gandharva
07-10-2006, 08:43 AM
@schmittmj
you also must add the event in: \Nurfed_UnitFrames\Default.lua
just add this somewhere between line 331 and 356:
"UNIT_FACTION",
Xeratule
07-10-2006, 11:32 AM
@schmittmj
you also must add the event in: \Nurfed_UnitFrames\Default.lua
just add this somewhere between line 331 and 356:
"UNIT_FACTION",
For the people that doesn't know where line 331 and 356 is...
it's around here:
--Frame Design
Nurfed_UnitsLayout.Layout = {
player = {
type = "Button",
size = { 180, 59 },
FrameStrata = "LOW",
ClampedToScreen = true,
events = {
"PLAYER_ENTERING_WORLD",
"PLAYER_ENTER_COMBAT",
"PLAYER_LEAVE_COMBAT",
"PLAYER_REGEN_DISABLED",
"PLAYER_REGEN_ENABLED",
"PLAYER_UPDATE_RESTING",
"PLAYER_XP_UPDATE",
"PLAYER_LEVEL_UP",
"UPDATE_EXHAUSTION",
"UPDATE_FACTION",
"UNIT_FACTION",
"PARTY_MEMBERS_CHANGED",
"RAID_ROSTER_UPDATE",
"PARTY_LEADER_CHANGED",
"PARTY_LOOT_METHOD_CHANGED",
"UNIT_HEALTH",
"UNIT_MANA",
"UNIT_ENERGY",
"UNIT_RAGE",
"UNIT_MAXHEALTH",
"UNIT_MAXMANA",
"UNIT_MAXENERGY",
"UNIT_MAXRAGE",
"UNIT_DISPLAYPOWER",
"UNIT_PVP_UPDATE",
"UNIT_NAME_UPDATE",
"UNIT_COMBAT",
btw, I tested it and it seems to be working correctly. Thanks for your help.
schmittmj
07-10-2006, 01:55 PM
@schmittmj
you also must add the event in: \Nurfed_UnitFrames\Default.lua
just add this somewhere between line 331 and 356:
"UNIT_FACTION",
Ah yes, thats right. I tend to forget that one since I don't overwrite my layout.lua with each update.
No work for me, i have add "Unit_Faction" but nothing.
My tag Pvp is shown or not, just when i connect / deconnect or loading a zone. :(
nobody know how repair the flag please ?
Ralrra
09-25-2006, 02:10 AM
Did you also make the change to the nurfed_unitframes.lua as mentioned in the second post?
Yes i do, i have change the nurfed_unitframes.lua and the Default.lua and always the same problem.
On the target, it's good, when i target me, i see if i have the pvp flag or not and when he leaves, the problem is just on my frame and need to deconnect / reconnect for see the PVP flag.
verlorene
09-27-2006, 02:02 AM
Is there a way to do this for your party members. I added a flag for them but it dosent update properly for them, only when I reload the interface. I am not having any problems with the player frame. I assume there is also some way to check for playerstatus for party members as well.
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.