Jump to content
  • 0

@request song NPC.


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

@request song NPC.


i added my song playlist into BGM folder.. how do i play those song with using NPC and it costs 1 million zeny? my song file is 200, 201, 202, 203, 204, 205, 206, 207, 208, 209 ,210

Link to comment
Share on other sites

24 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

You only hear it and people near to you.

soundeffect "title.wav",0;
 

All people in the map can hear it.

soundeffectall "title.wav",0;
 
Edited by xienne15
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  90
  • Topics Per Day:  0.02
  • Content Count:  361
  • Reputation:   18
  • Joined:  01/09/13
  • Last Seen:  

You only hear it and people near to you.

soundeffect title.wav;
 

All people in the map can hear it.

soundeffectall title.wav;
 

and where I will put the .wav files ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Where should we expect? data/wav folder

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

yes at wav folder and edited my first post.

Edited by xienne15
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Actually, they don't have to be wav files anymore rAthena supports .mp3 files in BGM folder, to be called and played to a player ingame.

*playBGM "<BGM filename>";
*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character
only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.
If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name
is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Actually, they don't have to be wav files anymore rAthena supports .mp3 files in BGM folder, to be called and played to a player ingame.

*playBGM "<BGM filename>";
*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character
only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.
If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name
is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.

Agree with you brother :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

Actually, they don't have to be wav files anymore rAthena supports .mp3 files in BGM folder, to be called and played to a player ingame.

*playBGM "<BGM filename>";
*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character
only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.
If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name
is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.

can u give me a full sample script please.?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

 

Actually, they don't have to be wav files anymore rAthena supports .mp3 files in BGM folder, to be called and played to a player ingame.

*playBGM "<BGM filename>";
*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character
only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.
If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name
is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.

can u give me a full sample script please.?

prontera,198,154,0    script    Singer    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "102"; //BGM number or you can name your BGM.
    close;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

 

 

Actually, they don't have to be wav files anymore rAthena supports .mp3 files in BGM folder, to be called and played to a player ingame.

*playBGM "<BGM filename>";
*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character
only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.
If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name
is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.

can u give me a full sample script please.?

prontera,198,154,0    script    Singer    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "102"; //BGM number or you can name your BGM.
    close;

 how do i play those song with using NPC and it costs 1 million zeny? my song file is 200, 201, 202, 203, 204, 205, 206, 207, 208, 209 ,210

izlude,115,137,2    script    MP3 Player    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "200"; //BGM number or you can name your BGM.
    end;


}
 

this script didnt work.. i have <TAB>

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

 

 

 

Actually, they don't have to be wav files anymore rAthena supports .mp3 files in BGM folder, to be called and played to a player ingame.

*playBGM "<BGM filename>";
*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character
only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.
If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name
is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.

can u give me a full sample script please.?

prontera,198,154,0    script    Singer    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "102"; //BGM number or you can name your BGM.
    close;

 how do i play those song with using NPC and it costs 1 million zeny? my song file is 200, 201, 202, 203, 204, 205, 206, 207, 208, 209 ,210

izlude,115,137,2    script    MP3 Player    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "200"; //BGM number or you can name your BGM.
    end;


}
 

this script didnt work.. i have <TAB>

any error?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

 

 

 

 

Actually, they don't have to be wav files anymore rAthena supports .mp3 files in BGM folder, to be called and played to a player ingame.

*playBGM "<BGM filename>";
*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character
only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.
If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name
is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.

can u give me a full sample script please.?

prontera,198,154,0    script    Singer    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "102"; //BGM number or you can name your BGM.
    close;

 how do i play those song with using NPC and it costs 1 million zeny? my song file is 200, 201, 202, 203, 204, 205, 206, 207, 208, 209 ,210

izlude,115,137,2    script    MP3 Player    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "200"; //BGM number or you can name your BGM.
    end;


}
 

this script didnt work.. i have <TAB>

any error?

both i tried end; and close; also same error.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

 

 

 

 

 

Actually, they don't have to be wav files anymore rAthena supports .mp3 files in BGM folder, to be called and played to a player ingame.

*playBGM "<BGM filename>";
*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character
only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.
If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name
is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.

can u give me a full sample script please.?

prontera,198,154,0    script    Singer    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "102"; //BGM number or you can name your BGM.
    close;

 how do i play those song with using NPC and it costs 1 million zeny? my song file is 200, 201, 202, 203, 204, 205, 206, 207, 208, 209 ,210

izlude,115,137,2    script    MP3 Player    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "200"; //BGM number or you can name your BGM.
    end;


}
 

this script didnt work.. i have <TAB>

any error?

both i tried end; and close; also same error.

What is the error on map-server?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

 

 

 

 

 

 

Actually, they don't have to be wav files anymore rAthena supports .mp3 files in BGM folder, to be called and played to a player ingame.

*playBGM "<BGM filename>";
*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character
only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.
If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name
is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.

can u give me a full sample script please.?

prontera,198,154,0    script    Singer    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "102"; //BGM number or you can name your BGM.
    close;

 how do i play those song with using NPC and it costs 1 million zeny? my song file is 200, 201, 202, 203, 204, 205, 206, 207, 208, 209 ,210

izlude,115,137,2    script    MP3 Player    139,{
    mes "[Singer]";
    mes "I will sing to you a song~!!";
    emotion e_no1;
    next;
    playBGM "200"; //BGM number or you can name your BGM.
    end;


}
 

this script didnt work.. i have <TAB>

any error?

both i tried end; and close; also same error.

What is the error on map-server?

my bad.. because of the npc sprite 139 (invisible npc) ... btw can i make it can select more songs? and 1 song costs 1 million.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

A question about BGM file. Can we use space on the song file name? Example : Dancing Queen.mp3 or we can only use DancingQueen.mp3 only?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

A question about BGM file. Can we use space on the song file name? Example : Dancing Queen.mp3 or we can only use DancingQueen.mp3 only?

you can ry that out since the bgm name is inside ""

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

A question about BGM file. Can we use space on the song file name? Example : Dancing Queen.mp3 or we can only use DancingQueen.mp3 only?

you can ry that out since the bgm name is inside ""

help me please >,< thanks in advance ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

A question about BGM file. Can we use space on the song file name? Example : Dancing Queen.mp3 or we can only use DancingQueen.mp3 only?

you can ry that out since the bgm name is inside ""

 

Okay. Thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

 

A question about BGM file. Can we use space on the song file name? Example : Dancing Queen.mp3 or we can only use DancingQueen.mp3 only?

you can ry that out since the bgm name is inside ""

 

Okay. Thanks.

mind sharing your script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

It's just for testing purpose. Just now, I knew that mp3 file name must not content any other characters except 0 to 1 and A to Z.


New Edit :

 

Ah~ /panic

 

I've decided to share my script with you. This is my first script for playing song at my server.

 

The script below will randomly play your songs.

 

-	script	nRO#MP3	-1,{
end;
OnMinute03: // For this script, I didn't use array to set the song timer. So, you can just roughly add the timer to play the next song.
OnMinute08:
OnMinute13:
OnMinute18:
OnMinute23:
OnMinute28:
OnMinute33:
OnMinute38:
OnMinute43:
OnMinute48:
OnMinute53:
OnMinute58:


switch(rand(1,3)) { // please edit this line if you're adding more songs. If you have 10 songs, then edit like this >> switch(rand(1,10)) {

case 1: 
announce "[NeutralRO MP3] : Now playing deadmau5 - Raise your weapon. Enjoy!",bc_all,0xDA70D6;
playBGMall "raiseurweapon";
break;

case 2:
announce "[NeutralRO MP3] : Now playing Kidz Bop - Starship. Enjoy!",bc_all,0xFFFF00;
playBGMall "kidzstarship";
break;

case 3:
announce "[NeutralRO MP3] : Now playing Maroon 5 - Payphone. Enjoy!",bc_all,0xDA70D6;
playBGMall "payphone";
break;

//case 4:
//announce "<YOUR ANNOUNCE HERE>",bc_all,0xDA70D6;
//playBGMall "<YOUR MP3 FILENAME>";
//break;

	}
}

The instruction is already on the script. Easy to understand.

 

Of course I've better script than this. But it's for my own server use. /ok

Edited by uDe
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

It's just for testing purpose. Just now, I knew that mp3 file name must not content any other characters except 0 to 1 and A to Z.

New Edit :

 

Ah~ /panic

 

I've decided to share my script with you. This is my first script for playing song at my server.

 

The script below will randomly play your songs.

 

-	script	nRO#MP3	-1,{
end;
OnMinute03: // For this script, I didn't use array to set the song timer. So, you can just roughly add the timer to play the next song.
OnMinute08:
OnMinute13:
OnMinute18:
OnMinute23:
OnMinute28:
OnMinute33:
OnMinute38:
OnMinute43:
OnMinute48:
OnMinute53:
OnMinute58:


switch(rand(1,3)) { // please edit this line if you're adding more songs. If you have 10 songs, then edit like this >> switch(rand(1,10)) {

case 1: 
announce "[NeutralRO MP3] : Now playing deadmau5 - Raise your weapon. Enjoy!",bc_all,0xDA70D6;
playBGMall "raiseurweapon";
break;

case 2:
announce "[NeutralRO MP3] : Now playing Kidz Bop - Starship. Enjoy!",bc_all,0xFFFF00;
playBGMall "kidzstarship";
break;

case 3:
announce "[NeutralRO MP3] : Now playing Maroon 5 - Payphone. Enjoy!",bc_all,0xDA70D6;
playBGMall "payphone";
break;

//case 4:
//announce "<YOUR ANNOUNCE HERE>",bc_all,0xDA70D6;
//playBGMall "<YOUR MP3 FILENAME>";
//break;

	}
}

The instruction is already on the script. Easy to understand.

 

Of course I've better script than this. But it's for my own server use. /ok

can i play it in certain map only? izlude and prontera btw thanks for your scriprt!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

1 map for 1 song only?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

i have script for this song npc list is work 



pm me if you want my script /heh

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

1 map for 1 song only?

the song only play in Prontera town, not dungeons.

i have script for this song npc list is work 

pm me if you want my script /heh

Send me please. thanks!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

As you can see, from my script, I've used playBGMall.

 

playBGMall "raiseurweapon";

So, every map will hear the song.

 

And the most important thing you must know about BGM is, you can't warp to other map while the song is playing. Example, if you start the song at Prontera town, you may warp within Prontera town and prt_in only. If your're warp to other map like Izlude town, dungeons, you can't hear the song anymore. It's because of every official maps got it's own BGM. So, when you're entering other map, the BGM of that map will play automatically and your song will cancelled. Just stay on the same map until the song's finish.

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
Answer this question...

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