View Single Post
02-14-10, 09:14 PM   #6
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
Code:
local function LFG_COMPLETION_REWARD()
	AddOn:RegisterEvent("CHAT_MSG_PARTY")
	AddOn:SetScript("OnEvent", function(self, CHAT_MSG_PARTY, msg, author)
		if( msg == finishedMsg and author == UnitName("player") ) then
			LeaveParty()
                        AddOn:UnregisterEvent("CHAT_MSG_PARTY")
		end
	end)
	SendChatMessage(finishedMsg, "PARTY")	
	aMessage("Random Dungeon Completed.")
end
This is what I ended up using, thx alot for the help I'm still getting familiar with the WoW API and Events.

thx much once again really appreciate the communities help and patience.

Last edited by alimjocox : 02-14-10 at 09:25 PM.
  Reply With Quote