Sapito Sucio Posted September 27, 2022 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 188 Reputation: 114 Joined: 04/10/12 Last Seen: Thursday at 05:30 PM Share Posted September 27, 2022 View File Broadcast commands with global sound effect This is a very simple and little source mod, it consists on the ability to send a sound effect to every player on the server every time you use @brodcast or @localbroadcast or @kami or @kamic or /b Attention If you have the Fixed some packets for 2022 clients (#7276) commit on your rAthena, then use broadcastWithSoundEffectLatestRathena.diff, otherwise use the broadcastWithSoundEffectOldRathena.diff Apply the diff and put the .wav file on your data folder/grf Command to diff on terminal: git apply --3way broadcastWithSoundEffectLatestRathena.diff Preview Video: https://cdn.lewd.host/yIVy2fAF.mp4 Submitter sapitosucio Submitted 09/27/2022 Category Source Modifications Video https://cdn.lewd.host/yIVy2fAF.mp4 Content Author sapitosucio 1 Quote Link to comment Share on other sites More sharing options...
Takuyakii Posted September 27, 2022 Group: Members Topic Count: 41 Topics Per Day: 0.02 Content Count: 215 Reputation: 11 Joined: 08/30/19 Last Seen: March 6 Share Posted September 27, 2022 (edited) 2 hours ago, sapitosucio said: View File @broadcast with sound effect This is a very simple and little source mod, it consists on the ability to send a sound effect to every player on the server every time you use @brodcast Attention: This was made on latest rathena Git Hash: 47c9a36 Apply the diff and put the .wav file on your data folder/grf Submitter sapitosucio Submitted 09/27/2022 Category Source Modifications Video https://cdn.lewd.host/WB17T61X.mp4 Content Author sapitosucio Nice release !!! btw , any possible to make this run on not latest git? Edited September 27, 2022 by Takuyakii Quote Link to comment Share on other sites More sharing options...
Sapito Sucio Posted September 29, 2022 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 188 Reputation: 114 Joined: 04/10/12 Last Seen: Thursday at 05:30 PM Author Share Posted September 29, 2022 On 9/27/2022 at 11:00 PM, Takuyakii said: Nice release !!! btw , any possible to make this run on not latest git? Sure, I can try when I have free time Added on new version, just waiting for approval Quote Link to comment Share on other sites More sharing options...
Takuyakii Posted September 29, 2022 Group: Members Topic Count: 41 Topics Per Day: 0.02 Content Count: 215 Reputation: 11 Joined: 08/30/19 Last Seen: March 6 Share Posted September 29, 2022 3 hours ago, sapitosucio said: Added on new version, just waiting for approval Thats cool ill wait for new version to be approved. Quote Link to comment Share on other sites More sharing options...
Hnomkeng Posted September 29, 2022 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 99 Reputation: 2 Joined: 02/23/14 Last Seen: 19 hours ago Share Posted September 29, 2022 i don't see broadcastWithSoundEffectLatestRathena.diff Quote Link to comment Share on other sites More sharing options...
Sapito Sucio Posted September 30, 2022 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 188 Reputation: 114 Joined: 04/10/12 Last Seen: Thursday at 05:30 PM Author Share Posted September 30, 2022 8 hours ago, Hnomkeng said: i don't see broadcastWithSoundEffectLatestRathena.diff The post wast updated but the file wasn't approvec yet, it is now, redownload it Quote Link to comment Share on other sites More sharing options...
Hnomkeng Posted September 30, 2022 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 99 Reputation: 2 Joined: 02/23/14 Last Seen: 19 hours ago Share Posted September 30, 2022 15 hours ago, sapitosucio said: The post wast updated but the file wasn't approvec yet, it is now, redownload it testing on client date 20220331 no have sound. Quote Link to comment Share on other sites More sharing options...
Sapito Sucio Posted September 30, 2022 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 188 Reputation: 114 Joined: 04/10/12 Last Seen: Thursday at 05:30 PM Author Share Posted September 30, 2022 Just now, Hnomkeng said: testing on client date 20220331 no have sound. You doing something wrong bro, I'm using the exact build and no problem Quote Link to comment Share on other sites More sharing options...
Hnomkeng Posted September 30, 2022 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 99 Reputation: 2 Joined: 02/23/14 Last Seen: 19 hours ago Share Posted September 30, 2022 1 minute ago, sapitosucio said: You doing something wrong bro, I'm using the exact build and no problem :( Quote Link to comment Share on other sites More sharing options...
Sapito Sucio Posted September 30, 2022 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 188 Reputation: 114 Joined: 04/10/12 Last Seen: Thursday at 05:30 PM Author Share Posted September 30, 2022 2 minutes ago, Hnomkeng said: Is that your code or mine? You didn't get any compilation error? Quote Link to comment Share on other sites More sharing options...
Hnomkeng Posted September 30, 2022 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 99 Reputation: 2 Joined: 02/23/14 Last Seen: 19 hours ago Share Posted September 30, 2022 Just now, sapitosucio said: Is that your code or mine? You didn't get any compilation error? yes, diff patch from you and no have error complie. Quote Link to comment Share on other sites More sharing options...
Bringer Posted October 8, 2022 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: Wednesday at 03:29 PM Share Posted October 8, 2022 @broadcast sound working but the extension of /nb /b no you need to them Quote Link to comment Share on other sites More sharing options...
Sallycantdance Posted October 17, 2022 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 1 hour ago Share Posted October 17, 2022 hello i try this on my rathena but it didnt work Quote ACMD_FUNC(broadcast) { struct map_session_data* pl_sd; struct s_mapiterator* iter; nullpo_retr(-1, sd); memset(atcmd_output, '\0', sizeof(atcmd_output)); if (!message || !*message) { clif_displaymessage(fd, msg_txt(sd,1149)); // Please enter a message (usage: @broadcast <message>). return -1; } iter = mapit_getallusers(); for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) ) { clif_soundeffectall( &pl_sd->bl, "anuncio.wav", 0, SELF ); } sprintf(atcmd_output, "%s: %s", sd->status.name, message); intif_broadcast(atcmd_output, strlen(atcmd_output) + 1, BC_DEFAULT); mapit_free(iter); return 0; } /*========================================== * @localbroadcast by [Valaris] *------------------------------------------*/ ACMD_FUNC(localbroadcast) { struct map_session_data* pl_sd; struct s_mapiterator* iter; nullpo_retr(-1, sd); memset(atcmd_output, '\0', sizeof(atcmd_output)); if (!message || !*message) { clif_displaymessage(fd, msg_txt(sd,1150)); // Please enter a message (usage: @localbroadcast <message>). return -1; } iter = mapit_getallusers(); for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) ) { if (pl_sd->bl.m == sd->bl.m) clif_soundeffectall( &pl_sd->bl, "anuncio.wav", 0, SELF ); } sprintf(atcmd_output, "%s: %s", sd->status.name, message); clif_broadcast(&sd->bl, atcmd_output, strlen(atcmd_output) + 1, BC_DEFAULT, ALL_SAMEMAP); mapit_free(iter); return 0; } Quote Link to comment Share on other sites More sharing options...
Takuyakii Posted October 17, 2022 Group: Members Topic Count: 41 Topics Per Day: 0.02 Content Count: 215 Reputation: 11 Joined: 08/30/19 Last Seen: March 6 Share Posted October 17, 2022 2 hours ago, GM Winter said: hello i try this on my rathena but it didnt work show the error, if you're not using latest git use the olddiff. Quote Link to comment Share on other sites More sharing options...
Sallycantdance Posted October 17, 2022 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 1 hour ago Share Posted October 17, 2022 (edited) 10 hours ago, Takuyakii said: show the error, if you're not using latest git use the olddiff. im using old version and thats the problem i dont have any error in compile also on mapserv i also put the wav inside the data /wav/anuncio.wav i try to use the latest version but i got error in compiling Edited October 18, 2022 by GM Winter Quote Link to comment Share on other sites More sharing options...
Sapito Sucio Posted October 19, 2022 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 188 Reputation: 114 Joined: 04/10/12 Last Seen: Thursday at 05:30 PM Author Share Posted October 19, 2022 On 10/17/2022 at 6:59 PM, GM Winter said: im using old version and thats the problem i dont have any error in compile also on mapserv i also put the wav inside the data /wav/anuncio.wav i try to use the latest version but i got error in compiling How old is your emulator? Quote Link to comment Share on other sites More sharing options...
Sallycantdance Posted October 19, 2022 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 1 hour ago Share Posted October 19, 2022 22 hours ago, sapitosucio said: How old is your emulator? hello i already fix it i just changed the wav file is there anyway to add this command on @kami or /b thanks 5 hours ago, sapitosucio said: Added in next version, waiting for approval nice nice waiting Quote Link to comment Share on other sites More sharing options...
Sapito Sucio Posted October 19, 2022 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 188 Reputation: 114 Joined: 04/10/12 Last Seen: Thursday at 05:30 PM Author Share Posted October 19, 2022 4 hours ago, GM Winter said: is there anyway to add this command on @kami or /b thanks Added in next version, waiting for approval Quote Link to comment Share on other sites More sharing options...
Gidz Cross Posted October 23, 2022 Group: Members Topic Count: 133 Topics Per Day: 0.03 Content Count: 686 Reputation: 89 Joined: 04/07/14 Last Seen: Wednesday at 07:37 PM Share Posted October 23, 2022 The old diff works flawlessly! Just quick question. How do we use this to announce script? Thank you! Oh yeah i discovered a bug using @kami command. The message will be doubled. All kami related. kamia kamib kamic Any follow up with @kami fix? Also the /b. Thaaaaanks! Nevermind. I have fixed it theres no problem with the diff. Mabuhay! Quote Link to comment Share on other sites More sharing options...
Sallycantdance Posted November 8, 2022 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 1 hour ago Share Posted November 8, 2022 33 minutes ago, Gidz Cross said: Any follow up with @kami fix? Also the /b. Thaaaaanks! Nevermind. I have fixed it theres no problem with the diff. Mabuhay! hello how did you apply it on @kami command can you share it sir tia Quote Link to comment Share on other sites More sharing options...
Gidz Cross Posted November 8, 2022 Group: Members Topic Count: 133 Topics Per Day: 0.03 Content Count: 686 Reputation: 89 Joined: 04/07/14 Last Seen: Wednesday at 07:37 PM Share Posted November 8, 2022 1 minute ago, GM Winter said: hello how did you apply it on @kami command can you share it sir tia Oh yeah. I just used the old diff. And viola! I might diffed it the wrong way the first time. I rediff it again just today. Quote Link to comment Share on other sites More sharing options...
spinzaku Posted January 4, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 82 Reputation: 6 Joined: 04/20/16 Last Seen: July 23, 2024 Share Posted January 4, 2023 Latest rAthena, used latest diff. No Compile Errors. Wav file inside data folder. No sound when doing @broadcast / @kami Quote Link to comment Share on other sites More sharing options...
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.