Jump to content

  •  

Photo

Channel System Expanded!


  • Please log in to reply
2 replies to this topic

#1 DoriTos Nacho

DoriTos Nacho

    Member

  • Members
  • PipPip
  • 21 posts

Posted 21 November 2016 - 01:34 PM

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, 21 November 2016 - 11:09 PM.


#2 astralprojection

astralprojection

    Advanced Member

  • Members
  • PipPipPip
  • 151 posts

Posted 22 November 2016 - 05:50 AM

i was hoping to see a READONLY channel. player can see message but can't be able to send message. its good for gm news and update channel

#3 DoriTos Nacho

DoriTos Nacho

    Member

  • Members
  • PipPip
  • 21 posts

Posted 27 November 2016 - 07:08 AM

i was hoping to see a READONLY channel. player can see message but can't be able to send message. its good for gm news and update channel

 

Yes, I agree with you






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


This topic has been visited by 54 user(s)