Runes of Magic Wiki
Advertisement

Returns if channel i of the current zone is online or not.

channel_online = IsZoneChannelOnLine(i)

Parameters[ | ]

Arguments[ | ]

i (number) - the number of the channel

Returns[ | ]

1 if online
nil if offline
(can be used similar to boolean)


Example[ | ]

for i=1, GetNumZoneChannels() do
	if ( IsZoneChannelOnLine(i) ) then
		DEFAULT_CHAT_FRAME:AddMessage("Channel ".. i .." is online.");
	else
		DEFAULT_CHAT_FRAME:AddMessage("Channel ".. i .." is offline.");
	end
end

Notes[ | ]

Used in interface/worldxml/playerframe.lua (interface.fdb).

Related Functions[ | ]

Advertisement