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.