Jump to content

Channel System Expanded!


Cydh

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

Cydh, thank you <3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

WoW niceeeeeeeeeeee!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  08/08/16
  • Last Seen:  

Awesome  /ic

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  153
  • Reputation:   8
  • Joined:  07/01/14
  • Last Seen:  

Awesome! Ty, @Cydh

Edited by Fratini
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  01/03/12
  • Last Seen:  

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

Thank you for all the great work

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   6
  • Joined:  11/29/13
  • Last Seen:  

Works in rAmod src?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

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. 

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

11 hours ago, Anime s2 said:

Works in rAmod src?

r254? I believe it works

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  153
  • Reputation:   14
  • Joined:  07/07/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

@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!

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

@Cydh

 

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

 

Sz4sEcr.png

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

@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

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   10
  • Joined:  01/13/12
  • Last Seen:  

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))) {

 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  153
  • Reputation:   14
  • Joined:  07/07/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

@Cydh

How disable in-game channels without restarting the server?
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

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?

Link to comment
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...