Go to Page... |
Compatibility: | Classic (1.13.2) |
Updated: | 09-10-19 07:44 AM |
Created: | 09-06-19 06:33 PM |
Downloads: | 1,107 |
Favorites: | 3 |
MD5: |
Simple lightweight addon for Classic.
The addon will announce crits and play the "Bruce Lee BAM" sound
Use /bam to configure where you want to announce your crits! It's so easy even Warriors can do it!
Let all your friends know what sick crits you got!
Say it! Yell it! Let your group or raid know! BAM!
Comment Options |
09-09-19, 04:25 PM | ||
|
Re: no spam
|
|
|
xqzme |
View Public Profile |
Send a private message to xqzme |
Find More Posts by xqzme |
Add xqzme to Your Buddy List |
09-09-19, 02:27 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
no spam
hi!
how's about: Code:
print("|cff33ffccBAM|cffffffffxqzme - loaded") local frame = CreateFrame("FRAME"); frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED"); SlashCmdList['BAMXQZME'] = function(msg) DEFAULT_CHAT_FRAME:AddMessage(msg or 'nil') end SLASH_BAMXQZME1 = '/bamxqzme' SLASH_BAMXQZME2 = '/xq' SLASH_BAMXQZME3 = '/xq' SLASH_BAMXQZME1, SLASH_BAMXQZME2, SLASH_BAMXQZME3 = "/bamxqzme", "/xq", "/bam" SlashCmdList["BAMXQZME"] = function(message) local cmd = { } for c in string.gmatch(message, "[^ ]+") do table.insert(cmd, string.lower(c)) end if cmd[1] == "say" then BAMxqzmeSettings = "SAY" elseif cmd[1] == "yell" then BAMxqzmeSettings = "YELL" elseif cmd[1] == "group" then BAMxqzmeSettings = "GROUP" elseif cmd[1] == "raid" then BAMxqzmeSettings = "RAID" elseif cmd[1] == "none" then BAMxqzmeSettings = "NONE" else DEFAULT_CHAT_FRAME:AddMessage("|cff33ffccBAM|rxqzme usage:") DEFAULT_CHAT_FRAME:AddMessage("/bam [say, yell, group, raid, none]") end if not BAMxqzmeSettings then BAMxqzmeSettings = "NONE" end DEFAULT_CHAT_FRAME:AddMessage("-> you are now spamming your crits in '" .. string.lower(BAMxqzmeSettings) .. "'") end frame:SetScript("OnEvent", function(self, event) local CritAmountDmg = 1 local CritAmountHeal = 1 local EveryoneGitInHereDmg = 1 local EveryoneGitInHereHeal = 1 local OutputMessageDmg = "BAM phat crit!" local OutputMessageHeal = "I healed you big time!" --function local spellId, spellName, spellSchool, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing = select(12, CombatLogGetCurrentEventInfo()) local timestamp, type, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags = CombatLogGetCurrentEventInfo() local playerGUID = UnitGUID("player") if (event == "COMBAT_LOG_EVENT_UNFILTERED") then -- damage if (type == "SPELL_DAMAGE") and critical and (sourceGUID == playerGUID) then if amount >= CritAmountDmg then if EveryoneGitInHereDmg == 1 then if BAMxqzmeSettings ~= "NONE" then SendChatMessage(OutputMessageDmg.." "..spellName.." - "..format_thousand(amount), BAMxqzmeSettings ,nil); end else print(OutputMessageDmg.." | "..spellName.." - "..format_thousand(amount)) end script=PlaySoundFile("Interface\\AddOns\\BAMxqzme\\bam.ogg", "Music") end end -- heal critical = select(18,CombatLogGetCurrentEventInfo()) if (type == "SPELL_HEAL") and critical and (sourceGUID == playerGUID) then if amount >= CritAmountHeal then if EveryoneGitInHereHeal == 1 then if BAMxqzmeSettings ~= "NONE" then SendChatMessage(OutputMessageHeal.." "..destName.." - "..spellName.." - "..format_thousand(amount), BAMxqzmeSettings ,nil); end else print(OutputMessageHeal.." | "..destName.." with "..spellName.." for "..format_thousand(amount)) end script=PlaySoundFile("Interface\\AddOns\\BAMxqzme\\bam.ogg", "Music") end end end end); --format the numbers function format_thousand(v) local s = string.format("%d", math.floor(v)) local pos = string.len(s) % 3 if pos == 0 then pos = 3 end return string.sub(s, 1, pos) .. string.gsub(string.sub(s, pos+1), "(...)", ".%1") end https://github.com/Rumchiller/EM_CritBam
Last edited by rumchiller : 09-09-19 at 02:30 PM.
|
|
rumchiller |
View Public Profile |
Send a private message to rumchiller |
Find More Posts by rumchiller |
Add rumchiller to Your Buddy List |
xqzme |
View Public Profile |
Send a private message to xqzme |
Find More Posts by xqzme |
Add xqzme to Your Buddy List |
09-09-19, 02:21 AM | |
A Kobold Labourer
Forum posts: 0
File comments: 4
Uploads: 0
|
Hi, thanks for the upload.
Is it possible to change the crit report to show only when is the highest crit from that ability or spell? |
|
Cabum |
View Public Profile |
Send a private message to Cabum |
Find More Posts by Cabum |
Add Cabum to Your Buddy List |
09-08-19, 05:30 AM | |
|
Heyo, thanks for your reply. You can now adjust the volume. In "Esc" "System" "Sound" if you adjust the "Music" Volume it will adjust the volume of the BAM sound being played.
|
|
xqzme |
View Public Profile |
Send a private message to xqzme |
Find More Posts by xqzme |
Add xqzme to Your Buddy List |
09-07-19, 09:42 AM | |
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Awesome!
The sound is too loud though, at least for me. Maybe have an option to set the volume? |
|
Khorrhxe |
View Public Profile |
Send a private message to Khorrhxe |
Find More Posts by Khorrhxe |
Add Khorrhxe to Your Buddy List |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.