[Help] 5165 adding music 2 certain maps

12/31/2009 23:02 ASSN9NE#1
i was wondering if any1 knew how 2 add music 2 certain maps that are not allready programed 2 play music? :pimp:
12/31/2009 23:04 ~*NewDuuDe*~#2
Well, as I have allready implented this in my source I have some suggestions for you; make skillbooks that play music. Just use an un-used skill and change the sound of it to some sort of song. It's a good trick.
Adding music to certain maps would be a little more complicated, and I doubt you would be able to do it. So I would reccomend the skillbooks.

Edit: Just remembered, there are items called MusicBook too, use that. Just add a code for it which opens a file in the persons client. (it would of course require a patch.)
01/01/2010 02:21 WHITELIONX#3
For the area needed to change what music is played and how far on the map you want the music to play until well it`s in your client and you would need to go into your ini folder and then into MusicRegion here is an example of mine

//双龙城主城内部音乐配置
[MusicRegion001]
Mapid=1002
Bound_X=10
Bound_Y=10
Bound_CX=999
Bound_CY=999
TitleMusic=sound/CockneyViolin.mp3
TitleMusicTime=150
Amount=4
Music0=sound/music.mp3
MusicTime0=290
Music1=sound/eastjam1.mp3
MusicTime1=235
Music2=sound/Blunt.mp3
MusicTime2=214
Music3=sound/TepWorld1.mp3
MusicTime3=289
DelayTime=3

Then for the songs if I remember correctly you just copy and paste a song into the sounds folder BUT the song can only contain a certain amount of letters such as TepWorld1 in my example is actually "Step into my world"

Music0=sound/music.mp3 <<<----This is the song that will ALWAYS play first when you log on. music.mp3 is not the original file I just placed another mp3 into the sounds folder and then changed the name to music and deleted the older file called music. Music0 is the starting track for any map just what song you put to it because in pc I have a different starting song here is an example of pc

//鸣凤堡翼蛇片区
[MusicRegion006]
Mapid=1011
Bound_X=10
Bound_Y=10
Bound_CX=999
Bound_CY=999
TitleMusic=NULL
TitleMusicTime=0
Amount=2
Music0=sound/eastjam1.mp3
MusicTime0=235
Music1=sound/AllAroundtheWorld1.mp3
MusicTime1=211
DelayTime=3

Also I found that putting a 1 at the end of every song seems to make it actually play?
01/01/2010 18:57 ASSN9NE#4
Well i ty guys very much for replying, but lionx has the best way yet ... change coords in this and relable the region and song titles 2 your music & u can put music anywhere gotta add it 2 source & client.
go into ini \MusicRegion
--------------------------------------------------------------------
only change:
MusicRegion
Mapid
sound/music03.mp3 <--music file number in sound

and change

Ammount=4 to how ever many songs u want

Code:
//双龙城主城内部音乐配置
[MusicRegion197]
Mapid=1099
Bound_X=10
Bound_Y=10
Bound_CX=999
Bound_CY=999
TitleMusic=sound/music06.mp3
TitleMusicTime=150
Amount=4
Music0=sound/music.mp3
MusicTime0=290
Music1=sound/music02.mp3
MusicTime1=235
Music2=sound/music05.mp3
MusicTime2=214
Music3=sound/music07.mp3
MusicTime3=289
DelayTime=3

only 4 songs seem 2 work so no more than 4 songs in one map i got all my maps play dif songs =)
01/02/2010 14:04 Korvacs#5
To be honest theres a better way of doing this using your server and packets.
01/02/2010 18:04 WHITELIONX#6
Please enlighten us Korvacs because it is the client that plays the music and not the source?
01/02/2010 18:35 _tao4229_#7
Theres a string packet to play music I believe.
01/02/2010 19:48 WHITELIONX#8
Ahh thank you tao but you might as well be speaking in another language to me because I have no idea about strings etc lol.

Remember a lot of us here are not coders and have no idea about strings and args etc. I try to give the simplest laymans terms so that everybody can understand it without using words like string etc.

Because most of the time that just confuses people instead of helping them which I have encountered plenty of times when somebody has told me how to fix a problem I am just more confused a lot of the times lol.

I think a lot of people understand the client more than the source? I mean such as me I have not been able to figure the cool or supergem effects out, however I have a different cool for the client itself >.<
01/02/2010 22:26 ~*NewDuuDe*~#9
Google is there for a reason.
01/02/2010 23:18 WHITELIONX#10
Yup I agree Google is there for a reason but if you mean for learning coding then I think I understand "hello world" already lol
01/02/2010 23:34 ~*NewDuuDe*~#11
That doesn't mean you know how to code.
01/03/2010 00:19 WHITELIONX#12
I never said it did?
01/03/2010 01:27 Korvacs#13
Quote:
Originally Posted by ~*NewDuuDe*~ View Post
That doesn't mean you know how to code.
To be honest, knowing how to code doesnt mean shit if you dont have any idea as to how a packet based music player works, i stumbled upon it by accident when i found it, and i knew how to code. :rolleyes: