1. Hey everyone!

    Im trying to build a scrip that works as a buzzbox.

    When activated, "say" should be send to a specific channel, and and when deactivated, it should send to channel obviously...

    The script i have so far is:

     local cid = GetChannelName("LupineBuzzbox");
     if (cid == 0) then
       JoinChannelByName("LupineBuzzbox", "", -1);
       cid = GetChannelName("LupineBuzzbox");
       ChatFrame_AddChannel(DEFAULT_CHAT_FRAME, "LupineBuzzbox");
     end
     local sent = {}
     local playerName = (UnitName("player"))
     local f = CreateFrame("Frame")
     f:SetScript("OnEvent",function(self,event,msg,sender)
         if sender == playerName then
             sent[msg] = true
             SendChatMessage(msg,"CHANNEL",nil,"cid")
         end
     end)
    

    And ofcouse it doesnt work..

    Any help would be apriciated!

    hugs

    You never register for an event, so the OnEvent handler can't possibly fire. I'm not entirely sure what you're trying to do here.