• 0
DoriTos Nacho

Channel System Expanded!

Question

I am not the author, I want to put this codes to works in Hercules!

 

New Config Structure
For private channel creation

 

private_channel: {
		allow: true			  // (bool)	Allow playerto create own channel?
		color: "Default"	  // (string)	Default color, see colors
		delay: 1000			  // (int)	Chat delay for each member
		max_member: 1000	  // (int)	Max member
		self_notif: true	  // (bool)	Show message when you enter or leave the channel
		join_notif: false	  // (bool)	Show message when player joined the channel
		leave_notif: false	  // (bool)	Show message when player left the channel
		/* Moderation feature for channel owner, allowed to: */
		ban: true			  // (bool)	Ban player
		kick: true			  // (bool)	Kick player
		color_override: false // (bool)	Player allow color override for private channel
		change_delay: false	  // (bool)	Change allow to change channel dealy
	}

For public, ally, and map channel default configs.

{
		name: "#channel"		 // (string)	Channel name
		password: ""			 // (string)	Password
		alias: "[Channel]"		 // (string)	Message from this channel will be displayed with this name instead the channel name
		color: "Default"		 // (string)	Color for this channel
		type: "CHAN_TYPE_PUBLIC" // (string)	Channel type: CHAN_TYPE_PUBLIC, CHAN_TYPE_ALLY, CHAN_TYPE_MAP
		autojoin: false			 // (bool)	Player will auto join channel
		delay: 1000				 // (int)	Chat delay for each player
		leave: true				 // (bool)	Player is allowed to leave the channel
		chat: true				 // (bool)	Player is allowed to chat on this channel
		color_override: false	 // (bool)	Override channel color with personal color
		self_notif: true		 // (bool)	Show message when you enter or leave the channel
		join_notif: false		 // (bool)	Show message when player joined the channel
		leave_notif: false		 // (bool)	Show message when player left the channel
		groupid: (0,..,99)		 // (list,int)	Only player with there group ids allowed to join. Group with 'channel_admin' always can enter the channel.
		/// All values above are default settings
	},							 // Use comma if followed by other channel

 

 

.patch here

 

 

Official Topic

 

Thanks =)

 

 

@edit

 

I fix, please close this topic!

Edited by DoriTos Nacho

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...