Thread Tools Display Modes
08-20-09, 09:12 PM   #1
Cidwel
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 23
SendChatMessage issues when detecting channelNumber

Hi all! I have a trouble. What is the best way to get the channel number using only it's channel name? I mean, if, i wanna spam in General but I don't want to supose that General number channel is 1.

I think that it would be something like this:
SendChatMessage("lol","CHANNEL",nil,GetChannelName("Trade"))

but this only works for me in some locations like Acherus. So strange... Could be it nerfed?

Thanks!
  Reply With Quote
09-08-09, 08:25 PM   #2
Santiclause
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 6
You should always make sure you have the right channel name.

In this case, it's actually "Trade - City".
  Reply With Quote
09-11-09, 10:39 AM   #3
Tarnovo
A Kobold Labourer
Join Date: Sep 2009
Posts: 1
I'm Completely new to Lua and WoW interface customization but on my travels i have come across the GetChannelName() function. Maybe that helps?
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » SendChatMessage issues when detecting channelNumber


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