ChannelIdentifier
From WoWWiki
This article is a part of the documentation of the Sky function library
The Channel system in WoW is more complex than it needs to be, as such the way to denote channels is very specific in WoW internal code. However, in Sky I adopted as loose a methodology as possible. This means that the code to determine which identification method you are using is immense, but you can use any way you choose to code it.
The most important thing to understand is the concept of zoned Server Mask Channels. For more info see Advanced Chat Terminology.
Anytime you need to enter a channel in Sky code you can use one of the following methods unless otherwise specified:
- -An exact string. Ex
- "General", "LookingForGroup", "MyCustomChannel"
- -A Server Channel ID (all lowercase)
SKY_GENERAL_ID = "general"; SKY_TRADE_ID = "trade"; SKY_LFG_ID = "lookingforgroup"; SKY_LOCALDEFENSE_ID = "localdefense"; SKY_WORLDDEFENSE_ID = "worlddefense";
- -An index (1-10)
- -A Full Channel Title with index and string. Ex
- "1. General - Ironforge"
(if the number does not match the current channel at that index it will use the channel name and ignore the index)
- -A SkyIdentifier
SKY_CHANNEL = "#Sky#"; SKY_GROUP = "#Group#"; SKY_GUILD = "#Guild#";
Note: SKY_PLAYER is a SkyIdentifier for hidden whispers, and does not actually use a channel:
SKY_PLAYER = "#Player#";
