Jump to content


Photo

Pulling the Timer out of the DBM addon


  • This topic is locked This topic is locked
5 replies to this topic

#1 Merz

Merz

    Glass Joe

  • New Members
  • 3 posts

Posted 25 July 2014 - 09:54 PM

I'm looking for only the pull timer part of DBM. I don't care about the rest of the fluff, but it has proven difficult to pre-pot without knowing the countdown. 

 

I've been seraching through the addon itself to find what parts would contain the pull timer info with no luck.

 

So, if anyone can direct me which folders to gut out of the rest of DBM, or throw me the scripts to run to make a smaller addon, would be greatly appreciated.

 

Thanks for reading.

 

Also a guy on the WoW forumns threw me this script to make as an addon, however it does not work.

 

local f=CreateFrame("Frame",nil,UIParent)
f:Hide()
f:SetSize(300,200)
f:SetPoint("CENTER")
f.counter = f:CreateFontString(nil,"ARTWORK","GameFontNormalHuge")
f.counter:SetAllPoints(true)
f:SetScript("OnEvent",function(self,event,prefix,arg1)
if prefix=="D4" then
local _,pt = (arg1 or ""):match("^(PT).(%d+)")
if pt then
self.pt = tonumber(pt)
self:Show()
PlaySound("RaidWarning","master")
end
end
end)
f:SetScript("OnUpdate",function(self,elapsed)
self.pt = self.pt - elapsed
self.counter:SetText(format("Pull in %.1f seconds!",self.pt))
if self.pt<0 then
PlaySound("RaidWarning","master")
self:Hide()
end
end)
f:RegisterEvent("CHAT_MSG_ADDON")
RegisterAddonMessagePrefix("D4")



#2 MysticalOS

MysticalOS

    French Hacker

  • ♦ Administrators
  • 1219 posts
  • LocationGeorgia

Posted 25 July 2014 - 09:59 PM

If you raid with either bigwigs or dbm, you have a pull timer. Are you saying you raid with no boss mod? That just seems like a bad idea.

 

I'm not interested in making a pull timer stand alone at this time. I've got too much work on beta right now to help you with this. 



#3 Merz

Merz

    Glass Joe

  • New Members
  • 3 posts

Posted 25 July 2014 - 10:47 PM

What compenants in DBM make up the pull timer and it's functions? I'm looking to disasemble the addon if needed.



#4 MysticalOS

MysticalOS

    French Hacker

  • ♦ Administrators
  • 1219 posts
  • LocationGeorgia

Posted 25 July 2014 - 10:51 PM

A sync, with a time, nothing more. that script/macro above pretty much sums it up.



#5 Merz

Merz

    Glass Joe

  • New Members
  • 3 posts

Posted 25 July 2014 - 11:09 PM

That script wasn't working. Do I need a a componant from DBM to make it work?



#6 MysticalOS

MysticalOS

    French Hacker

  • ♦ Administrators
  • 1219 posts
  • LocationGeorgia

Posted 25 July 2014 - 11:17 PM

No idea I didn't review it in detail, like i said I can't help with this nor do I have the time. Right this very minute I'm multitasking in beta and unable to give you the attention you really need to set it up. As i said, if you are actually pre podding in a raid, chances are you really should be running a boss mod, if not dbm, any of others. they all support each others pull timers.

 

Closing thread. Good luck in your search.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users