• 0

    posted a message on Very Simple Combat Log Scanner Addon Broken (since update 2/7/11)
    Quote from Lombra
    Post all of your code. That code would never have done anything, as all you do is define a function.

    Edit: Also, make sure you load out of date addons. That setting is reset on each patch.


    sorry it was an xml that loads it:
    <Ui xmlns="<a href="http://www.blizzard.com/wow/ui/" rel="noopener nofollow" target="_blank">http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
    ..\..\FrameXML\UI.xsd">
    <Frame name="HelloWorldFrame">
    <Scripts>
    <OnLoad>
    HelloWorld();
    </OnLoad>
    </Scripts>
    </Frame>
    </Ui>


    and you were right, and now I feel like a complete moron :(

    Thank you and sorry to waste your time :(
    Posted in: Lua Code Discussion
  • 0

    posted a message on Very Simple Combat Log Scanner Addon Broken (since update 2/7/11)
    This addon worked the other day before the 2/7/2011 update in wow and I have been checking the combat log and all seems correct, so I am stuck :( I am thinking it has to be an LUA change or an API change right?

    I wrote the very rigid code I just had an old friend start me off with how to create the frame and register the event to be scanned.

    thank you for any help I really want my addon working again. No errors show up when I log into WoW btw.

    function HelloWorld()
    
    local this = CreateFrame("Frame")
    
    this:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
    
    this:SetScript("OnEvent", function(self, event, ...)
    
    --0x548=host player
    --0x10548=target host player
    --0x30548=targ and foc host player
    --0x20548=foc host player
    
    
    local timestamp, eventType, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags = select(1, ...)
    
    local arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11 = select(9, ...)
    		
    		
                    
    
    
    
    
    		if eventType == "SPELL_CAST_SUCCESS" then
    			if arg1 == 8143 then
    				if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 or srcFlags==0x548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\tremor.mp3");
    				end
    			elseif arg1 == 6554 then
    				if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\pummel.mp3");
    				end
    			
    			elseif arg1 == 1766 then
    				if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\kick.mp3");
    				end
                            elseif arg1 == 42292 then
    				if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\trinketed.mp3");
    				end
                            elseif arg1 == 6789 then
    				if srcFlags ==0x511 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\deathcoil.mp3");
    				end
    			elseif arg1 == 19647 then
    				if srcFlags ==0x1111 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\spelllock.mp3");
    				end
    
    			
    			end
                   end
    
    
    
    
    	end)
    end
    	
    Posted in: Lua Code Discussion
  • 0

    posted a message on Hits Mode Not Filtering Just Your Target
    oh I thought ticket was just for maker of addon in which case I had no clue if he still keeps up with the addon, therefore I decided maybe someone can help me out or has the same problem mkayyy???
    Posted in: AddOn HELP!
  • 0

    posted a message on Hits Mode Not Filtering Just Your Target
    Hey guys so I am using the latest HM r80 and I have one window setup to show enemy buff auras where the source and destination are both set to my target under the unit type.

    However I am getting kinds of enemy aura buff events firing when I have no target and when I do have a target I get alot more than just my target events.

    How can I get HM to just fire the events where it applies to specifically just my target.

    Thanks guys!
    Posted in: AddOn HELP!
  • 0

    posted a message on Need Addon To Sound Notify Purge/Dispel/Cleanse - And Resist
    Wow thank you alot for that. I am now able to get MSBT to show the notification text however It will not fire the mp3 file, which is in the folder. Yea it's in there before loading and yea it even sounds it when you hit "play" in the gui... so really weird.
    Posted in: Addon Ideas
  • 0

    posted a message on Help With Easy Old Addon Script
    TY so much for the help guys.

    This worked flawlessly when I played wow back in the BC. My next question is where could I find someone to hire to make this light addon a reality?

    Would really love it to work like it did 2 years ago and not looking to make any type of gui, the hard coding is fine. But yea any advice on where I can hire someone to help me with this would be great!

    Thanks
    Posted in: Lua Code Discussion
  • 0

    posted a message on Help With Easy Old Addon Script
    Quote from lilsparky
    if you're getting a nil HelloWorld() error, then it sounds to me like the problem is syntax or maybe in the way the thing is loaded. it's possible that the loading mechanisms have changed since then. what is your first error? that's really the only one that matters.

    i know you're just trying to get a quick question in, but it's probably best to post your entire code.


    the first error is line 210 'end' expected to close 'function' at line 5 'elseif'
    Posted in: Lua Code Discussion
  • 0

    posted a message on Help With Easy Old Addon Script
    Quote from lilsparky
    if you're getting a nil HelloWorld() error, then it sounds to me like the problem is syntax or maybe in the way the thing is loaded. it's possible that the loading mechanisms have changed since then. what is your first error? that's really the only one that matters.

    i know you're just trying to get a quick question in, but it's probably best to post your entire code.


    Sorry sorry here is the code below. While I wrote all the if/else code and figured out how to understand the combat events, I did not write the opening code as I didn't understand how to get it started. A very nice guy on a forum helped me with that to get it all started.

    I would love if someone could do that here just the opening code to declare the addon and such, I would LOVE it actually :)


    here is the code:
    function HelloWorld()
    
    this:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
    
    this:SetScript("OnEvent", function(self, event, ...)
    
    local timestamp, eventType, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags = select(1, ...)
    
    local arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11 = select(9, ...)
    		
    		if eventType == "SPELL_AURA_REMOVED" then
    
    			--if arg1 == 28189 then
    			--	if dstFlags == 0x511 then
    					--PlaySoundFile("Interface\\AddOns\\MySounds\\felremoved.mp3");
    			--	end
    			--elseif arg1 == 6215 then
    			--	if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 or dstFlags==0x548 then
    				
    					--PlaySoundFile("Interface\\AddOns\\MySounds\\fearremoved.mp3");
    				
    			--	end
    			--end
    		elseif eventType == "SPELL_CAST_SUCCESS" then
    			if arg1 == 8143 then
    				if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 or srcFlags==0x548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\tremor.mp3");
    				end
    			--elseif arg1 == 18425 then
    			--	if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 or srcFlags==0x548 then
    			--		PlaySoundFile("Interface\\AddOns\\MySounds\\kick.mp3");
    			--	end
    			elseif arg1 == 6554 then
    				if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\pummel.mp3");
    				end
    			
    			elseif arg1 == 38768 then
    				if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\kick.mp3");
    				end
    			
    
    			
    			end
    		
    					
    
    
    		elseif eventType=="SPELL_AURA_APPLIED" then
    			if dstGUID == 0x21A4E0F then
    				--DEFAULT_CHAT_FRAME:AddMessage(dstGUID); 
    			end
    				
    			if dstName == "Benga" then
    				 
    				
    
    				if arg1 == 34936 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\backlash.mp3");
    				elseif arg1 == 30456 then
    					DEFAULT_CHAT_FRAME:AddMessage("NIGH!");
    					PlaySoundFile("Interface\\AddOns\\MySounds\\nigh.mp3")
    
    				elseif arg1 == 30300 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\nether.mp3");
    				elseif arg1 == 27828 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\focusedcasting.mp3");
    				elseif arg1 == 37310 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\bloodlust.mp3");	
    				elseif arg1 == 30457 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\vulnerability.mp3");
    				
    				
    				elseif arg1 == 28189 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\felremoved.mp3");
    				elseif arg1 == 1044 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\freedom.mp3");
    				elseif arg1 == 10278 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\protection.mp3");
    				elseif arg1 == 10060 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\powerinfusion.mp3");
    				elseif arg1 == 33206 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\painsuppression.mp3");
    				elseif arg1 == 33786 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\cyclone.mp3");
    				elseif arg1 == 18803 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\focus.mp3");
    				elseif arg1 == 19503 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\scattershot.mp3");
    				elseif arg1 == 20066 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\repentance.mp3");
    				elseif arg1 == 11297 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\sap.mp3");
    				elseif arg1 == 1833 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\cheapshot.mp3");				
    				elseif arg1 == 8643 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\kidneyshot.mp3");
    				elseif arg1 == 38764 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\gouge.mp3");
    				elseif arg1 == 2825 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\bloodlust.mp3");
    				elseif arg1 == 18469 then 
    					PlaySoundFile("Interface\\AddOns\\MySounds\\counterspell.mp3");
    				end
    			
    			
    			end
    			
    
    
    			if arg1 == 31224 then
    				if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 or dstFlags == 0x548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\cloak.mp3");
    				end
    			elseif arg1 == 34471 then
    				if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 or dstFlags == 0x548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\beastialwrath.mp3");
    				end
    			elseif arg1 == 36554 then
    				if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\Shadowstep.mp3");
    				end
    			elseif arg1 == 1020 then
    				if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 or dstFlags == 0x548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\bubble.mp3");
    				end
    			elseif arg1 == 26888 then
    				if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\vanish.mp3");
    				end
    			elseif arg1 == 23920 then
    				if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\spellreflect.mp3");
    				end
    			elseif arg1 == 45438 then
    				if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 or dstFlags==0x548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\iceblock.mp3");
    				end	
    			elseif arg1 == 27223 then
    				if dstFlags == 0x30548 or dstFlags==0x10548 or dstFlags==0x20548 or dstFlags==0x548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\deathcoil.mp3");
    				end		
    			
    			elseif arg1 == 24259 then
    				if dstFlags == 0x30548 or dstFlags==0x10548 or dstFlags==0x20548 or dstFlags==0x548 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\spelllock.mp3");
    				end			
    
    			end
    
    
    
    	
    		elseif eventType=="PARTY_KILL" then
    			if srcName == "Benga" then
    				PlaySoundFile("Interface\\AddOns\\MySounds\\dominating.mp3");
    			end
    		
    
    
    		elseif eventType == "SPELL_DISPEL" then
    		
    		--if arg1 == 2782 then
    		--	if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 or srcFlags==0x548 then
    		--		if arg5 == "Curse of Weakness" then
    		--			PlaySoundFile("Interface\\AddOns\\MySounds\\weaknessremoved.mp3");	
    		--		elseif arg5 == "Curse of Tongues" then
    		--			PlaySoundFile("Interface\\AddOns\\MySounds\\tonguesremoved.mp3");	
    		--		elseif arg5 == "Curse of Agony" then
    		--			PlaySoundFile("Interface\\AddOns\\MySounds\\cleanse.mp3");
    		--		end
    		--	end
    		
    
    		elseif arg1 == 4987  then
    			if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 or srcFlags==0x548 then
    				if arg4 == 27216 or arg4 == 30911 or arg4 == 25222 or arg4 == 25218 or arg4 == 33110 or arg4 == 25368 then
    					DEFAULT_CHAT_FRAME:AddMessage("cleanse");
    					PlaySoundFile("Interface\\AddOns\\MySounds\\cleanse.mp3");
    				end
    				if arg4 == 30108 then
    					DEFAULT_CHAT_FRAME:AddMessage("ua hit");
    					PlaySoundFile("Interface\\AddOns\\MySounds\\uahit.mp3");
    				end
    					
    			end
    
    		
    
    		elseif arg1 == 988  then
    			if srcFlags ==0x30548 or srcFlags==0x10548 or srcFlags==0x20548 or srcFlags==0x548 then
    				if arg4 == 27216 or arg4 == 30911 or arg4 == 25222 or arg4 == 25218 or arg4 == 33110 or arg4 == 25368 then
    					DEFAULT_CHAT_FRAME:AddMessage("dispel!");
    					PlaySoundFile("Interface\\AddOns\\MySounds\\dispel.mp3");
    				end
    				if arg4 == 30108 then
    					DEFAULT_CHAT_FRAME:AddMessage("ua hit");
    					PlaySoundFile("Interface\\AddOns\\MySounds\\uahit.mp3");
    				end
    			end
    
    
    		elseif arg1 == 32375 and arg4 == 1020 then
    			if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 or dstFlags==0x548 then
    				PlaySoundFile("Interface\\AddOns\\MySounds\\bubbledispelled.mp3");		
    			end
    		end
    
    		elseif eventType == "SPELL_MISSED" then  
    			if srcName == "Benga" then 
    				if arg4 == "IMMUNE" then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\immune.mp3");		
    				elseif arg4 == "RESIST" then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\resist.mp3");
    				end
    			elseif srcName == "Jhaajhom" then
    				if arg1 == 19647 then
    					PlaySoundFile("Interface\\AddOns\\MySounds\\spelllockresist.mp3");	
    				end		
    			end
    		
    		elseif eventType=="SWING_DAMAGE" then
    			if dstName == "Jhaajhom" then
    				if srcName == "Tremor Totem" then	
    					PlaySoundFile("Interface\\AddOns\\MySounds\\tremordown.mp3");
    				end
    			end
    				
    
    
    
    
    		end
    	end)
    end
    Posted in: Lua Code Discussion
  • 0

    posted a message on Help With Easy Old Addon Script
    So about 2 years ago I wrote an addon to just play audio events based on reading the combat log. I am getting errors and just have some basic questions if this is how it would be. Here is the opening to my addon that just scans the combat log for events.

    function HelloWorld()

    this:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")

    this:SetScript("OnEvent", function(self, event, ...)

    local timestamp, eventType, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags = select(1, ...)

    local arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11 = select(9, ...)



    Is any of that wrong or has changed, the addon used to work back in BC but now it gets errors including line 1 attempt to call global helloworld (a nil value)

    Ty for all the help.

    here is a few lines of code from the addon...

    if arg1 == 31224 then
    if dstFlags ==0x30548 or dstFlags==0x10548 or dstFlags==0x20548 or dstFlags == 0x548 then
    PlaySoundFile("Interface\\AddOns\\MySounds\\cloak.mp3");
    end


    thanks!
    Posted in: Lua Code Discussion
  • 0

    posted a message on Need Addon To Sound Notify Purge/Dispel/Cleanse - And Resist
    TY so so much! I am going to look into this now. I used to know alot about the combat log events back when I used to play alot, in BC. I remember studying that wiki page alot, and I am going to re study it now before I contact you so I can have a solid base knowledge.

    TY again so so much! I really mean it!

    Travis
    Posted in: Addon Ideas
  • 0

    posted a message on Need Addon To Sound Notify Purge/Dispel/Cleanse - And Resist
    I used to use SCT to do this, and it could do any event but that was back when the log was alot alot different.

    Really need an addon for this thanks much.
    Posted in: Addon Ideas
  • 0

    posted a message on Need Addon To Sound Notify Purge/Dispel/Cleanse - And Resist
    and Also the use of a trinket.

    Someone has to know of an addon to detect instant casts like this right?
    Posted in: Addon Ideas
  • 0

    posted a message on Need Addon To Sound Notify Purge/Dispel/Cleanse - And Resist
    Hey guys new here,

    I have been looking for an addon that can notify of certain events like if my target is purging or dispelling, and maybe also if they dispel a specific spell like Unstable Affliction.

    Also if my spell gets resisted/misses.

    Looking to setup audio notifications for these type of events.

    I use Power Aura Classic but can't get it to fire for any of these.

    any ideas what addon I could use?

    thanks all!

    Travis


    edit: I got msbt to trigger on resist but I can't get it to trigger on a target dispeling or purging and the like
    Posted in: Addon Ideas
  • To post a comment, please or register a new account.