Thread Tools Display Modes
07-30-05, 07:23 AM   #1
Lugh
A Defias Bandit
Join Date: Jul 2005
Posts: 2
JoinChannelByName

Hello,
I started to code my 1st addon this morning. It should join a channel on game startup.

Test.lua looks like this:
function Test_OnLoad()
JoinChannelByName("Test");
ChatFrame_AddChannel(DEFAULT_CHAT_FRAME, "Test");
end

Now I have 2 problems:

1.) After startup there ist no channel test
2.) my other channels were move down by one. Means the common channel is no #2 the trade channel #3 and so on

How can I fix this ?
  Reply With Quote
07-31-05, 12:17 AM   #2
Lugh
A Defias Bandit
Join Date: Jul 2005
Posts: 2
Ok, I found a work a round.

function Test_OnLoad()
Chronos.scheduleByName("JoinTest", 60, JoinTest);
end

function JoinTest()
JoinChannelByName("Test");
ChatFrame_AddChannel(DEFAULT_CHAT_FRAME, "Test");
end

But I can't believe that such an easy problem does need a dependency of Chronos
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » JoinChannelByName

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off