/DeathNote
local realmName = GetCVar("realmName") |
local skull = "|TInterface\\TargetingFrame\\UI-RaidTargetingIcon_8.blp:0|t" |
local DBVersion = 1 |
local pvpzone |
DeathNote = {} |
DeathNote.Defaults = { |
if self[event] then return self[event](self, event, ...) end |
end) |
local function ZoneCheck() |
local instancetype = select(2,GetInstanceInfo()) |
if instancetype == "none" then |
print("DeathNote:Enable()") |
DeathNote:Enable() |
pvpzone = nil |
else |
print("DeathNote:Disable()") |
DeathNote:Disable() |
pvpzone = true |
end |
end |
local ZoneWatcher = CreateFrame("Frame") |
ZoneWatcher:RegisterEvent("ZONE_CHANGED_NEW_AREA") |
ZoneWatcher:SetScript("OnEvent", ZoneCheck) |
function DeathNote:Enable() |
f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") |
f:RegisterEvent("UPDATE_MOUSEOVER_UNIT") |
print("DeathNote: Database reset!") |
end |
if not DeathNoteDB[realmName] then DeathNoteDB[realmName] = {} end |
ZoneCheck() |
end |
local function OnTooltipSetUnit(tooltip, ...) |
ItemRefTooltip:Show() |
end |
local function ZoneCheck() |
local instancetype = select(2,GetInstanceInfo()) |
if instancetype == "none" then |
DeathNote:Enable() |
else |
DeathNote:Disable() |
end |
end |
local ZoneWatcher = CreateFrame("Frame") |
ZoneWatcher:RegisterEvent("ZONE_CHANGED_NEW_AREA") |
ZoneWatcher:SetScript("OnEvent", ZoneCheck) |
local frame = CreateFrame("Frame","DeathNoteFrame") |
frame:Hide() |
frame:SetBackdrop(GameTooltip:GetBackdrop()) |
## Title: DeathNote |
## Notes: Prepares hostile players for their death. |
## SavedVariables: DeathNoteDB |
## Version: 1.2 |
## Version: 1.3 |
TooltipSpacerLine.lua |
DeathNote.lua |