Cydh Posted October 21, 2016 Posted October 21, 2016 New Config StructureFor 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! Main branch Changes (against my fork master) Diff file Patch file 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 9 Quote
Fratini Posted November 14, 2016 Posted November 14, 2016 (edited) Awesome! Ty, @Cydh Edited November 14, 2016 by Fratini Quote
Cydh Posted November 18, 2016 Author Posted November 18, 2016 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 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 1 Quote
exneval Posted November 18, 2016 Posted November 18, 2016 Hope this can be seen in master branch? Channel System Refactor! Thank you for all the great work Quote
Cydh Posted November 18, 2016 Author Posted November 18, 2016 19 hours ago, exneval said: Hope this can be seen in master branch? Channel System Refactor! Thank you for all the great work one does not simply Quote
Kakaroto Posted November 20, 2016 Posted November 20, 2016 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 This expansion is simply wonderful. Congratulations on the work! 1 Quote
Cydh Posted November 21, 2016 Author Posted November 21, 2016 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) Quote
anacondaq Posted November 21, 2016 Posted November 21, 2016 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. Quote
Cydh Posted November 22, 2016 Author Posted November 22, 2016 11 hours ago, Anime s2 said: Works in rAmod src? r254? I believe it works Quote
Break Posted November 22, 2016 Posted November 22, 2016 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... Quote
Cydh Posted November 23, 2016 Author Posted November 23, 2016 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. Quote
Kakaroto Posted November 27, 2016 Posted November 27, 2016 @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! Quote
Kakaroto Posted December 14, 2016 Posted December 14, 2016 @Cydh Compiling in windows does not appear any error message, however compile in CentOS 7, the following alerts appear in the terminal: Quote
Radian Posted January 7, 2017 Posted January 7, 2017 @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 Quote
a91323 Posted January 8, 2017 Posted January 8, 2017 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))) { 1 Quote
Radian Posted January 8, 2017 Posted January 8, 2017 (edited) 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 January 8, 2017 by Radian Quote
Break Posted January 8, 2017 Posted January 8, 2017 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; } 1 Quote
Kakaroto Posted January 8, 2017 Posted January 8, 2017 (edited) 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 January 8, 2017 by Kakaroto Quote
Kakaroto Posted January 11, 2017 Posted January 11, 2017 @Cydh How disable in-game channels without restarting the server? Quote
Radian Posted January 15, 2017 Posted January 15, 2017 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: I have this kind of warnings how can i fixed this? Quote
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.