• 0

    posted a message on BigWigs_Sunwell
    Would it be possible to add phase2 and death issue to the Muru module?
    How about this?

    ------------------------------
    --   Are you local?   --
    ------------------------------
    
    local entropius = BB["Entropius"]
    local boss = BB["M'uru"]
    local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss)
    
    local db = nil
    local started = nil
    local p2 = nil
    local pName = UnitName("player")
    local inDark = {}
    
    ----------------------------
    --   Localization   --
    ----------------------------
    
    L:RegisterTranslations("enUS", function() return {
    	cmd = "Muru",
    
    	darkness = "Darkness",
    	darkness_desc = "Warn who has Darkness.",
    	darkness_message = "Darkness: %s",
    	darkness_next = "Next Darkness",
    	darkness_soon = "Darkness in 5sec!",
    
    	void = "Void Sentinel",
    	void_desc = "Warn when the Void Sentinel spawns.",
    	void_next = "Next Void Sentinel",
    	void_soon = "Sentinel in 5 sec!",
    
    	humanoid = "Humanoid Adds",
    	humanoid_desc = "Warn when the Humanoid Adds spawn.",
    	humanoid_next = "Next Humanoids",
    	humanoid_soon = "Humanoids in 5sec!",
    	
    	phase = "Phases",
    	phase_desc = "Warn for phase changes.",
    	phase2_soon_message = "Phase 2 soon!",
    } end )
    
    ----------------------------------
    --   Module Declaration   --
    ----------------------------------
    
    local mod = BigWigs:NewModule(boss)
    mod.zonename = BZ["Sunwell Plateau"]
    mod.enabletrigger = {entropius, boss}
    mod.toggleoptions = {"phase", -1, "darkness", "void", "humanoid", "bosskill"}
    mod.revision = tonumber(("$Revision: 72845 $"):sub(12, -3))
    
    ------------------------------
    --   Initialization   --
    ------------------------------
    
    function mod:OnEnable()
    	self:AddCombatListener("SPELL_AURA_APPLIED", "Darkness", 45996)
    	self:AddCombatListener("UNIT_DIED", "Deaths")
    
    	self:RegisterEvent("PLAYER_REGEN_ENABLED", "CheckForWipe")
    	self:RegisterEvent("PLAYER_REGEN_DISABLED", "CheckForEngage")
    	self:RegisterEvent("BigWigs_RecvSync")
    	self:RegisterEvent("UNIT_HEALTH")
    
    	db = self.db.profile
    	started = nil
    end
    
    ------------------------------
    --   Event Handlers   --
    ------------------------------
    
    function mod:Darkness(player, spellID)
    	if not db.darkness then return end
    
    	if player == boss then
    		self:Bar(L["darkness"], 20, spellID)
    		self:IfMessage(L["darkness_message"]:format(player), "Urgent", spellID)
    		self:Bar(L["darkness_next"], 45, spellID)
    		self:ScheduleEvent("DarknessWarn", "BigWigs_Message", 40, L["darkness_soon"], "Attention")
    	else
    		inDark[player] = true
    		self:ScheduleEvent("BWMuruDark", self.DarkWarn, 0.4, self)
    	end
    end
    
    function mod:DarkWarn()
    	local msg = nil
    	for k in pairs(inDark) do
    		if not msg then
    			msg = k
    		else
    			msg = msg .. ", " .. k
    		end
    	end
    	self:IfMessage(L["darkness_message"]:format(msg), "Urgent", 45996)
    end
    
    function mod:RepeatVoid()
    	if db.void then
    		self:Bar(L["void_next"], 35, 46087)
    		self:ScheduleEvent("VoidWarn", "BigWigs_Message", 30, L["void_soon"], "Attention")
    	end
    	self:ScheduleEvent("Void", self.RepeatVoid, 35, self)
    end
    
    function mod:RepeatHumanoid()
    	if db.humanoid then
    		self:Bar(L["humanoid_next"], 70, 46087)
    		self:ScheduleEvent("HumanoidWarn", "BigWigs_Message", 65, L["humanoid_soon"], "Attention")
    	end
    	self:ScheduleEvent("Humanoid", self.RepeatHumanoid, 70, self)
    end
    
    function mod:Deaths(unit)
    	if unit == entropius then
    		self:GenericBossDeath(boss)
    	end
    end
    
    function mod:UNIT_HEALTH(msg)
    	if not db.phase then return end
    	if UnitName(msg) == boss then
    		local hp = UnitHealth(msg)
    		if hp < 2 and not p2 then
    			self:Message(L["phase2_soon_message"], "Attention")
    			p2 = true
    			
    			self:CancelScheduledEvent("VoidWarn")
    			self:CancelScheduledEvent("HumanoidWarn")
    			self:CancelScheduledEvent("Void")
    			self:CancelScheduledEvent("Humanoid")
    			self:CancelScheduledEvent("DarknessWarn")
    			self:TriggerEvent("BigWigs_StopBar", self, L["void_next"])
    			self:TriggerEvent("BigWigs_StopBar", self, L["humanoid_next"])
    			self:TriggerEvent("BigWigs_StopBar", self, L["darkness_next"])
    		elseif hp > 4 and p2 then
    			p2 = false
    		end
    	end
    end
    
    function mod:BigWigs_RecvSync(sync, rest, nick)
    	if self:ValidateEngageSync(sync, rest) and not started then
    		started = true
    		p2 = nil
    		if self:IsEventRegistered("PLAYER_REGEN_DISABLED") then
    			self:UnregisterEvent("PLAYER_REGEN_DISABLED")
    		end
    		for k in pairs(inDark) do inDark[k] = nil end
    		if db.darkness then
    			self:Bar(L["darkness_next"], 45, 45996)
    			self:DelayedMessage(40, L["darkness_soon"], "Attention")
    		end
    		self:RepeatVoid()
    		self:RepeatHumanoid()
    	end
    end
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs_Sunwell
    M'uru mod problem
    When M'uru reaches 0%, Phase 2 start.(P1 - M'uru, P2 - Entropius)
    need 'BossDeath' fix.





    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs_Sunwell
    When engaging in combat with twins, the enrage timer and Proximity indicator doesn't come up. is that a problem limited to koKR client?
    Posted in: Raid AddOns
  • 0

    posted a message on Big Wigs Common Auras
    Changes due to translation problems, please.
    -Localization-
    iv_cast = "%s Innervate %s.",
    iv_bar = "%s: Innervate Cooldown",
    
    -Events-
    function mod:Innervate(target, spellID, nick, _, spellName)
    	if (UnitInRaid(nick) or UnitInParty(nick)) and self.db.profile.innervate then
    		self:Message(L["iv_cast"]:format(nick, target), green, not self.db.profile.broadcast, nil, nil, spellID)
    		self:Bar(L["iv_bar"]:format(nick), 360, spellID, true, 0, 1, 0)
    	end
    end


    could tracking of drums CDs be added(UnitInParty)?
    function mod:DrumsWar(_, spellID, nick, _, spellName)
    	if UnitInParty(nick) and self.db.profile.drumswar then
    		self:Message(L["used_cast"]:format(nick, spellName), yellow, not self.db.profile.broadcast, nil, nil, spellID)
    		self:Bar(L["used_bar"]:format(nick, spellName), 120, spellID, true, 1, 1, 0)
    	end
    end
    
    function mod:DrumsBattle(_, spellID, nick, _, spellName)
    	if UnitInParty(nick) and self.db.profile.drumsbattle then
    		self:Message(L["used_cast"]:format(nick, spellName), yellow, not self.db.profile.broadcast, nil, nil, spellID)
    		self:Bar(L["used_bar"]:format(nick, spellName), 120, spellID, true, 1, 1, 0)
    	end
    end
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs
    Quote from Balin »

    I have updated to revision 70665 with tortoise svn including externals and Buggrabber is picking up:

    BigWigs\Plugins\Bars.lua:9: Cannot find a library instance of "LibSharedMedia-3.0".
    FuBar-60201\libs\LibStub\LibStub.lua:23: in function `LibStub'
    BigWigs\Plugins\Bars.lua:9: in main chunk

    and

    BigWigs\Plugins\Sound.lua:8: Cannot find a library instance of "LibSharedMedia-3.0".
    FuBar-60201\libs\LibStub\LibStub.lua:23: in function `LibStub'
    BigWigs\Plugins\Sound.lua:8: in main chunk



    Fixed embeds.xml
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs
    Tranq problem
    [2008/04/20 23:28:52-2740-x9]: BigWigs-2.0 r70541\Plugins\Bars.lua:706: CandyBar-2.0: Bad argument #5 to `Register' (string or nil expected, got number)
    BigWigs-2.0 r70541\Prototype.lua:159: in function <Interface\AddOns\BigWigs\Prototype.lua:156>
    <in C code>: ?
    AceEvent-2.0-66043 (Ace2):298: in function `TriggerEvent'
    AceEvent-2.0-66043 (Ace2):910: in function <Interface\AddOns\Ace2\AceEvent-2.0\AceEvent-2.0.lua:903>
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs
    Would it be possible to add "Mark of Kaz'rogal" Timers to the Kazrogal module?
    The first Mark of Kaz'rogal is cast after 45 seconds. Next Mark is cast is reduced by every 5 seconds.
    How about this?

    local started = nil
    local count = 1
    
    --   Localization   --
    
    L:RegisterTranslations("enUS", function() return {
    	mark = "Mark of Kaz'rogal",
    	mark_desc = "Show a Mark of Kaz'rogal timer bar.",
    	mark_message = "Mark of Kaz'rogal (%d)!",
    	mark_bar = "~Mark Cooldown (%d)",
    	mark_warn = "Mark Soon!",
    } end )
    
    --   Initialization   --
    
    function mod:OnEnable()
    	self:AddCombatListener("SPELL_CAST_START", "MarkCast", 31447)
    
    	self:RegisterEvent("PLAYER_REGEN_DISABLED", "CheckForEngage")
    	self:RegisterEvent("PLAYER_REGEN_ENABLED", "CheckForWipe")
    	self:RegisterEvent("BigWigs_RecvSync")
    
    	started = nil
    end
    
    --   Event Handlers   --
    
    function mod:MarkCast(_, spellID)
    	if db.mark then
    		self:IfMessage(L["mark_message"]:format(count), "Attention")
    		count = count + 1
    		local time = 45 - (count * 5)
    		self:Bar(L["mark_bar"]:format(count), time, spellID)
    		time = time - 5
    		self:DelayedMessage(time, L["mark_warn"], "Important")
    	end
    end
    
    function mod:BigWigs_RecvSync(sync, rest, nick)
    	if self:ValidateEngageSync(sync, rest) and not started then
    		started = true
    		if self:IsEventRegistered("PLAYER_REGEN_DISABLED") then
    			self:UnregisterEvent("PLAYER_REGEN_DISABLED")
    		end
    		if db.mark then
    			count = 1
    			self:Bar(L["mark_bar"]:format(count), 45, 31447)
    		end
    	end
    end
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs_Sunwell
    Quote from Funkydude »

    What?

    Enrage,Proximity didnt work.
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs_Sunwell
    Twins Problem...BigWigs_RecvSync mod does not work.
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs_Sunwell
    Some problem twins. one of Lady or Warlock dies, changed the skill.(nova -> conflag, conflag -> nova)
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs_Sunwell
    Hm... Add Corrosion for Felmyst?
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs
    Archimonde Problem

    -GripRemoved does not work
    Posted in: Raid AddOns
  • 0

    posted a message on BigWigs_Sunwell
    i think..

    local count = 1
    
    -- Localization --
    
    Breath = "Deep Breath",
    Breath_desc = "Warnings and counter for Deep Breath.",
    Breath_trigger = "%s takes a deep breath.",
    Breath_warning = "Deep Breath in 5 Seconds!",
    Breath_message = "Deep Breath(%d)",
    
    takeoff_trigger = "I am stronger than ever before!",
    
    -- Initialization --
    
    self:RegisterEvent("CHAT_MSG_MONSTER_YELL")
    self:RegisterEvent("CHAT_MSG_RAID_BOSS_EMOTE")
    
    -- Event Handlers --
    
    function mod:CHAT_MSG_RAID_BOSS_EMOTE(msg)
    	if db.Breath and msg == L["Breath_trigger"] then
    			self:IfMessage(fmt(L["Breath_message"], count), "Urgent")
    			if count < 4 then
    				count = count + 1
    				self:Bar(fmt(L["Breath_message"], count), 17, 37986)
    				self:DelayedMessage(12, L["Breath_warning"], "Attention")
    			end
    	end
    end
    
    function mod:CHAT_MSG_MONSTER_YELL(msg)
    	if msg == L["takeoff_trigger"] then
    		count = 1
    		self:Message(L["takeoff"], "Attention")
    		self:TriggerEvent("BigWigs_StopBar", self, L["gas_bar"])
    		if db.Breath then
    			self:Bar(fmt(L["Breath_message"], count), 42, 37986)
    			self:DelayedMessage(37, L["Breath_warning"], "Attention")
    		end
    	end
    end
    Posted in: Raid AddOns
  • 0

    posted a message on WitchHunt 3.0 for 2.4
    problem r67888 "Message Filter"
    [2008/04/04 09:31:04-2379-x1]: WitchHunt\WitchHunt.lua:487: GetSpellInfo(): Invalid spell slot
    WitchHunt\WitchHunt.lua:487: in function <Interface\AddOns\WitchHunt\WitchHunt.lua:482>
    (tail call): ?:
    AceConfigDialog-3.0\AceConfigDialog-3.0.lua:241: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:190>
    AceConfigDialog-3.0\AceConfigDialog-3.0.lua:363: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:336>
    AceConfigDialog-3.0\AceConfigDialog-3.0.lua:928: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:924>
    AceConfigDialog-3.0\AceConfigDialog-3.0.lua:951: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:924>
    AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1287: in function `FeedGroup'
    AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1493: in function `Open'
    AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1503: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1502>
    (tail call): ?:
    <in C code>: ?
    <string>:"safecall Dispatcher[2]":9: in function <[string "safecall Dispatcher[2]"]:5>
    (tail call): ?:
    AceGUI-3.0\AceGUI-3.0.lua:217: in function `Fire'
    ...AceGUI-3.0\widgets\AceGUIWidget-BlizOptionsGroup.lua:67: in function <...AceGUI-3.0\widgets\AceGUIWidget-BlizOptionsGroup.lua:66>:
    <in C code>: in function `Show'
    Interface\FrameXML\UIOptionsFrame.lua:465: in function <Interface\FrameXML\UIOptionsFrame.lua:454>:
    <in C code>: in function `InterfaceOptionsList_DisplayFrame'
    Interface\FrameXML\UIOptionsFrame.lua:451: in function `InterfaceOptionsListButton_OnClick':
    <string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>
    Posted in: General AddOns
  • 0

    posted a message on CoolDownButtons - Offical Thread
    Thanks for FrameStrata working :)
    Posted in: General AddOns
  • To post a comment, please or register a new account.