Skip to content

Instantly share code, notes, and snippets.

@chadrien
Created November 5, 2018 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadrien/120c86090de95dd29f35d035e33af774 to your computer and use it in GitHub Desktop.
Save chadrien/120c86090de95dd29f35d035e33af774 to your computer and use it in GitHub Desktop.
Fake_DBM
## Interface: 80000
## Title: Fake DBM
## Author: chadrien
## Version: 0.1
main.lua
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