Jump to content
Cydh

Channel System Expanded!

Recommended Posts

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

 
New Script Commands!
Just read it here
 
Try it now for FREE!

Want try mine?
If you're asking how I test this change, I'll leave you link of my config file and the test NPCs here.
 
Screenies...
Just one here, better you experience it yourself
post-5421-0-88123100-1477065851_thumb.png

  • Upvote 9

Share this post


Link to post
Share on other sites

Awesome! Ty, @Cydh

Edited by Fratini

Share this post


Link to post
Share on other sites
On 10/22/2016 at 0:26 AM, Azeroth said:

Cydh, thank you <3

 

On 10/22/2016 at 0:52 AM, Kakaroto said:

WoW niceeeeeeeeeeee!

 

On 10/22/2016 at 0:47 PM, Mosaic said:

Awesome  /ic

 

On 11/15/2016 at 0:14 AM, Fratini said:

Awesome! Ty, @Cydh

Thank you guys for using this.

Any feedback are welcome, and you can post your in-game SS while using the channel message maybe :D

  • Upvote 1

Share this post


Link to post
Share on other sites

Hope this can be seen in master branch? Channel System Refactor!/go

Thank you for all the great work

Share this post


Link to post
Share on other sites
19 hours ago, exneval said:

Hope this can be seen in master branch? Channel System Refactor!/go

Thank you for all the great work

one does not simply /heh

Share this post


Link to post
Share on other sites
On 17/11/2016 at 11:52 PM, Cydh said:

 

 

 

Thank you guys for using this.

Any feedback are welcome, and you can post your in-game SS while using the channel message maybe :D

 

 

GorIdFk.png

 

This expansion is simply wonderful.

 

Congratulations on the work!

  • Upvote 1

Share this post


Link to post
Share on other sites
1 hour ago, DoriTos Nacho said:

Works in Hercules src?

Of course not, "the coding" is diffferent. Except if u can make it work, or ask Herc's guy who good at porting from rA to Herc. (I can't do that, Herc removed support for .sln 2010)

Share this post


Link to post
Share on other sites
2 hours ago, Anime s2 said:

Works in rAmod src?

on old - no, because rAmod channel system very different to rAthena channel system, on latest revision - yes, because Zephyrus dropped support for his channel system and returned back rAthena classic channel system with implementation of new instance system. 

Share this post


Link to post
Share on other sites

Before in the channel system was:

if OnPcLoginEvent label add @join #main ->

it is automatically inserted channel name in whisper message

In this modification, it is envisaged? Since Ramod latest revision removed this feature...

Share this post


Link to post
Share on other sites
1 hour ago, Break said:

In this modification, it is envisaged? Since Ramod latest revision removed this feature...

It's simple, if they removed the rA's channel system, rAmod's users cannot use this mod. :D

Share this post


Link to post
Share on other sites

@Cydh

 

A small suggestion.

As soon as the player enters the game, the channel name appears in the PM bar, so he does not need to enter the channel name. Players are lazy!

Share this post


Link to post
Share on other sites

@Cydh

 

Compiling in windows does not appear any error message, however compile in CentOS 7, the following alerts appear in the terminal:

 

Sz4sEcr.png

Share this post


Link to post
Share on other sites

@Cydh

I am having issue while compiling the patch from the pservero.com im using the latest trunk right now..
 

1>..\src\map\channel.c(1017): error C2198: 'map_nick2sd' : too few arguments for call

and 

1>..\src\map\script.c(22494): error C2198: 'map_nick2sd' : too few arguments for call

 

Share this post


Link to post
Share on other sites
On 1/7/2017 at 9:04 PM, a91323 said:

https://github.com/rathena/rathena/commit/88aaa9be98c4e9f8494a2012cb3b7700d3b844f5

struct map_session_data *tsd = map_nick2sd(pname, false);
if (!(tsd = map_nick2sd(conv_str(st, data), false))) {

 

Thank you bro you saved me. :)

Edited by Radian

Share this post


Link to post
Share on other sites
On 23.11.2016 at 2:15 AM, Break said:

Before in the channel system was:

if OnPcLoginEvent label add @join #main ->

it is automatically inserted channel name in whisper message

In this modification, it is envisaged? Since Ramod latest revision removed this feature...

 

On 27.11.2016 at 7:07 PM, Kakaroto said:

@Cydh

 

A small suggestion.

As soon as the player enters the game, the channel name appears in the PM bar, so he does not need to enter the channel name. Players are lazy!

So if you have rAmod, you can change this lines and it's work on latest revision

/src/map/channel.c

find channel_join

	} else if( channel->opt & CHAN_OPT_ANNOUNCE_JOIN ) {
		char message[60];
		sprintf(message, "[ #%s ] '%s' has joined.",channel->name,sd->status.name);
		clif_channel_msg(channel,sd,message,channel->color);
	}

and replace

    } else {
        char output[256];
        char channel_name[256];
        sprintf(channel_name, "#%s",channel->name);
        sprintf(output, msg_txt(sd, 760),sd->status.name, channel_name);
        
        clif_wis_message(sd->fd, channel_name, output, strlen(output) + 1);
    }

script

-    script    #channel_autojoin    -1,{
OnPCLoginEvent:
    atcommand "@join #main";
    end;
}

 

  • Upvote 1

Share this post


Link to post
Share on other sites
On 1/9/2017 at 1:13 AM, Break said:

 

So if you have rAmod, you can change this lines and it's work on latest revision

/src/map/channel.c

find channel_join

	} else if( channel->opt & CHAN_OPT_ANNOUNCE_JOIN ) {
		char message[60];
		sprintf(message, "[ #%s ] '%s' has joined.",channel->name,sd->status.name);
		clif_channel_msg(channel,sd,message,channel->color);
	}

and replace

    } else {
        char output[256];
        char channel_name[256];
        sprintf(channel_name, "#%s",channel->name);
        sprintf(output, msg_txt(sd, 760),sd->status.name, channel_name);
        
        clif_wis_message(sd->fd, channel_name, output, strlen(output) + 1);
    }

script

-    script    #channel_autojoin    -1,{
OnPCLoginEvent:
    atcommand "@join #main";
    end;
}

 

 

 
 
 
 
Thx Man!!!!!!!!!!!

 

#Work!

Edited by Kakaroto

Share this post


Link to post
Share on other sites
On 12/13/2016 at 8:31 PM, Kakaroto said:

@Cydh

 

Compiling in windows does not appear any error message, however compile in CentOS 7, the following alerts appear in the terminal:

 

Sz4sEcr.png

I have this kind of warnings how can i fixed this?

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.