music npc

forspinki

Legend
Legendary
Oct 23, 2006
3,432
116
190
Handan, China
there a way to make an npc and when you click it it gives you a list of songs and so you can listen to songs while in sz ?
 

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,034
1
276
330
UK
hmmm i would of thought so, i will give you a hand but havnt done any scriptin like this for nearly 4month's

i would thought you would have to make the NPC as normal then go

#ACT
goto @ghthrthgr.wav or summat i cant remember tbh m8 have a search around

/ancient
 

Dave85

LOMCN Veteran
Veteran
Jan 20, 2006
267
2
45
If your using TDs files use this:
=========================================
[@main]
Hello <$USERNAME>\ \
Would you like to listen to some music?\ \ \
<Yes, show me the list/@list> <No thanks/@exit>

[@list]
<Music 1/@music1> - <Music 2/@music2> - <Music 3/@music3>\ \
<Music 4/@music4> - <Music 5/@music5> - <Music 6/@music6>\ \
<Close/@exit>

[@music1]
#ACT
RUNSOUND *number of your music track*
close

[@music2]
#ACT
RUNSOUND *number of your music track*
close

[@music3]
#ACT
RUNSOUND *number of your music track*
close

[@music4]
#ACT
RUNSOUND *number of your music track*
close

[@music5]
#ACT
RUNSOUND *number of your music track*
close

[@music6]
#ACT
RUNSOUND *number of your music track*
close
======================================

the number of the music track is set by putting the music tracks you want in a new created 'Music' folder in the 'Legend of Mir' then you number the music tracks like this:

music1 = 100100
music2 = 100101
etc...

Now you have to edit the 'mirsound.lst' and index the new music tracks. start the music index from 10600, it should look roughly like this...

10600: Music\100100.mp3
10601: Music\100101.mp3
etc...

if this fails you, try convert your mp3s to wav and paste them into the wav folder with the '100100' type names and then edit the mirsound.lst to look like this:

10600: wav\100100.wav
10601: wav\100101.wav
etc...

Hope i explained this well enough for ppl to understand and goodluck :)