Playing BGM and sfx

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
nmaligec
Warrior
Warrior
Posts: 253
Joined: 08 Apr 2010, 01:55

Playing BGM and sfx

Post by nmaligec »

I noticed that the script command playBGM was not implemented. Is there any way to play looping background music on a map? Stopping the currently playing bgm would be nice too.

I also noticed that soundeffectall was not implemented. If we use the soundeffect command, will it only play for the invoking player, or will it also play for people nearby?
nmaligec
Warrior
Warrior
Posts: 253
Joined: 08 Apr 2010, 01:55

Re: Playing BGM and sfx

Post by nmaligec »

I couldnt find an answer anywhare else so I'll post what I found out. You can either add a music tag manually in the client .tmx map file, or use tiled and add a map property named music with value of the bgm file name.

Of course the player needs to have downloaded the music files and placed them inside the data folder in the client's root directory.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Playing BGM and sfx

Post by Crush »

Yes, the background music is a map property and there is currently no way to change it while the map is loaded.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Post Reply