Sapito Sucio Posted September 27, 2022 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
Takuyakii Posted September 27, 2022 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
Sapito Sucio Posted September 29, 2022 Author 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
Takuyakii Posted September 29, 2022 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
Hnomkeng Posted September 29, 2022 Posted September 29, 2022 i don't see broadcastWithSoundEffectLatestRathena.diff Quote
Sapito Sucio Posted September 30, 2022 Author 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
Hnomkeng Posted September 30, 2022 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
Sapito Sucio Posted September 30, 2022 Author 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
Hnomkeng Posted September 30, 2022 Posted September 30, 2022 1 minute ago, sapitosucio said: You doing something wrong bro, I'm using the exact build and no problem :( Quote
Sapito Sucio Posted September 30, 2022 Author Posted September 30, 2022 2 minutes ago, Hnomkeng said: Is that your code or mine? You didn't get any compilation error? Quote
Hnomkeng Posted September 30, 2022 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
Bringer Posted October 8, 2022 Posted October 8, 2022 @broadcast sound working but the extension of /nb /b no you need to them Quote
Sallycantdance Posted October 17, 2022 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
Takuyakii Posted October 17, 2022 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
Sallycantdance Posted October 17, 2022 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
Sapito Sucio Posted October 19, 2022 Author 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
Sallycantdance Posted October 19, 2022 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
Sapito Sucio Posted October 19, 2022 Author 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
Gidz Cross Posted October 23, 2022 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
Sallycantdance Posted November 8, 2022 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
Gidz Cross Posted November 8, 2022 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
spinzaku Posted January 4, 2023 Posted January 4, 2023 Latest rAthena, used latest diff. No Compile Errors. Wav file inside data folder. No sound when doing @broadcast / @kami 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.