Created
November 5, 2018 20:01
-
-
Save chadrien/120c86090de95dd29f35d035e33af774 to your computer and use it in GitHub Desktop.
Fake_DBM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Interface: 80000 | |
## Title: Fake DBM | |
## Author: chadrien | |
## Version: 0.1 | |
main.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local mod, public = {}, {} | |
local SendAddonMessage, CTimerNewTicker = C_ChatInfo.SendAddonMessage, Ambiguate | |
public.SendAddonMessage = SendAddonMessage | |
public.CTimerNewTicker = CTimerNewTicker | |
local frame = CreateFrame("Frame") | |
local DBMdotRevision = "18057" -- The changing version of the local client, changes with every alpha revision using an SVN keyword. | |
local DBMdotDisplayVersion = "8.0.15" -- "N.N.N" for a release and "N.N.N alpha" for the alpha duration. Unless they fuck up their release and leave the alpha text in it. | |
local DBMdotReleaseRevision = DBMdotRevision -- This is manually changed by them every release, they use it to track the highest release version, a new DBM release is the only time it will change. | |
local function sendMsg() | |
if IsInGroup() then | |
SendAddonMessage("D4", "V\t"..DBMdotRevision.."\t"..DBMdotReleaseRevision.."\t"..DBMdotDisplayVersion.."\t"..GetLocale().."\t".."true", IsInGroup(2) and "INSTANCE_CHAT" or "RAID") -- LE_PARTY_CATEGORY_INSTANCE = 2 | |
end | |
end | |
frame:SetScript("OnEvent", function(self, event, prefix, msg) | |
if prefix == "DTLS" then | |
sendMsg() | |
end | |
end) | |
frame:RegisterEvent("CHAT_MSG_ADDON") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment