So, here is what I want to do.
The PvP indicator in Pitbull is functional, but the icon really just don't work with the look I'm going for. I'd like it to be text based, which should be possible using Lua Texts, but I'm at a loss as to how to do it.
There is a premade lua text to show the countdown until you become unflagged once you disable PvP. When the timer isn't active, there is just nothing there.
Code:
if unit == "player" then
local pvp = PVPDuration()
if pvp then
return "|cffff0000%s|r",FormatDuration(pvp)
end
end
What I would like is for this indicator to show "PvP" when I'm actively flagged from something like entering a PvP area or actually turning on my PvP flag. When I turn off the flag, it would turn into the timer. Obviously, when I'm not flagged there would be nothing there.
No comments:
Post a Comment