Request: Music Script

Join Discord

forspinki

Legend
Legendary
Oct 23, 2006
3,353
82
195
Handan, China
hey im looking for somebody thats good with scripts that can make me a npc script and when i click the npc i want it to say e.g.

Track 1: Never Gonna Give You Up
Track 2: There Will Be Blood

ect and when u click them it plays the track from ure music folder
i will have the tracks named as track1 track2 ect so if somebody could do that it will be much apreciated
 

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
Use the NPC command:

Code:
#IF
#ACT
RUNSOUND <Number>

The number corasponds to the number of the sound in your mirsound.lst

wav->mirsound.lst
Code:
1:	wav\1.wav
2:	wav\2.wav
3:	wav\3.wav
4:	wav\4.wav
5:	wav\5.wav
6:	wav\6.wav
7:	wav\7.wav
8:	wav\8.wav
9:	wav\9.wav
10:	wav\10.wav
11:	wav\11.wav
12:	wav\12.wav
13:	wav\13.wav
14:	wav\14.wav
15:	wav\15.wav
16:	wav\16.wav
17:	wav\17.wav
18:	wav\18.wav
19:	wav\19.wav
20:	wav\20.wav
21:	wav\21.wav
22:	wav\22.wav
23:	wav\23.wav
24:	wav\24.wav
25:	wav\25.wav
26:	wav\26.wav
27:	wav\test.wav
28:	wav\28.wav
29:	wav\29.wav
30:	wav\30.wav
31:	wav\31.wav
32:	wav\32.wav

So if you wanted to run test.wav it would be:
Code:
#IF
#ACT
RUNSOUND 27
BREAK

You will have to add your songs to your mirsound.lst. I suggest overwriting some of the xmas carols that are in there.

p

PS: This is how it works on the set of files i'm using anyway.
 
  • Like
Reactions: mStation
Upvote 0

forspinki

Legend
Legendary
Oct 23, 2006
3,353
82
195
Handan, China
your a legend ill test it out and let you know

when you say mirsound.lst is tht a text file ?

also can u pm me your msn if its not too much trouble just incase i get stuck
 
Last edited:
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
your a legend ill test it out and let you know

when you say mirsound.lst is tht a text file ?

also can u pm me your msn if its not too much trouble just incase i get stuck

No worries. Yea mirsound.lst can be opened and edited with Notepad, it's in the Wav folder of your client.

PM sent.

p
 
Upvote 0

forspinki

Legend
Legendary
Oct 23, 2006
3,353
82
195
Handan, China
Images51.jpg


loving this script u put together for me i spend have my time listening to the music on the npcs instead of workin on server though lol.
 
Upvote 0

jakey92

Dedicated Member
Dedicated Member
Jul 24, 2006
84
0
52
Can someone explain to me how i do this, Like using NPC Commands??

Thanks
 
Upvote 0

akacary2

LOMCN Veteran
Veteran
Loyal Member
Dec 11, 2008
274
1
44
Hartlepool
E.G

[@main]
#SAY
What would you like to listen to <$USERNAME>?\ \


<SongName 1/@track1> <SongName 2/@track2>\
<SongName 3/@track3> <Songname 4/@track4>\

[@track1]
#IF
#ACT
RUNSOUND 27
BREAK

[@track2]
#IF
#ACT
RUNSOUND 28
BREAK

[@track3]
#IF
#ACT
RUNSOUND 29
BREAK

[@track4]
#IF
#ACT
RUNSOUND 30
BREAK

The red numbers correspond to the wav file number in the mirsound.lst file like preacher has already said

1: wav\1.wav
2: wav\2.wav
3: wav\3.wav
4: wav\4.wav
5: wav\5.wav
6: wav\6.wav
7: wav\7.wav
8: wav\8.wav
9: wav\9.wav
10: wav\10.wav
11: wav\11.wav
12: wav\12.wav
13: wav\13.wav
14: wav\14.wav
15: wav\15.wav
16: wav\16.wav
17: wav\17.wav
18: wav\18.wav
19: wav\19.wav
20: wav\20.wav
21: wav\21.wav
22: wav\22.wav
23: wav\23.wav
24: wav\24.wav
25: wav\25.wav
26: wav\26.wav
27: wav\track1.wav
28: wav\track2.wav
29: wav\track3.wav
30: wav\track4.wav
31: wav\31.wav
32: wav\32.wav

Something like that should work :D
 
Last edited:
Upvote 0

Praktica

Dedicated Member
Dedicated Member
Jun 16, 2009
240
1
45
England
Hmm this seems pretty neat!

So if i downloaded a track from LimeWire, added it into my WavSound + renamed it to
'wav200\.wav'

Then made a script E.G

[@Main]
#SAY
Pick a song <$USERNAME>\

<I Will Always Love You/@track1>

[@track1]
#IF
#ACT
RUNSOUND 200
break

It would work?
 
Upvote 0

Praktica

Dedicated Member
Dedicated Member
Jun 16, 2009
240
1
45
England
Right im kinda stuck.
Ive converted my .mp3 song files into .wav

BassHunters - Angel In The Night
KatyPerry - Hot N Cold
KatyPerry - I Kissed A Girl

Ive opened mirsound.list with notepad.
Scrolled to the bottom

20107: wav\BaalTaunt.wav
20108: wav\
20109: wav\

How are you supose to know which number to put on the mirsound to match up with the wav folder? :S
Leaving me slightly confused lol.
Have i gotta rename the name of the file or something to the sound number?
 
Upvote 0

forspinki

Legend
Legendary
Oct 23, 2006
3,353
82
195
Handan, China
best off nameing them something simpe like angel.wav ect then this is what i did i replaced 146: wav\carol-song01.wav with 146: wav\angel.wav then you put in the script runround 146 if you understand what i meen
 
Upvote 0

Praktica

Dedicated Member
Dedicated Member
Jun 16, 2009
240
1
45
England
Ahh yeah thats cleared the mind!

EDIT - Got it working, gave a 'Thanks' to u forspinki, great help!

Cheers :D
 
Last edited:
Upvote 0

Orphanmaker1

Dedicated Member
Dedicated Member
Jun 9, 2009
161
0
42
Thought this was old news lol?


hey im looking for somebody thats good with scripts that can make me a npc script and when i click the npc i want it to say e.g.

Track 1: Never Gonna Give You Up
Track 2: There Will Be Blood

ect and when u click them it plays the track from ure music folder
i will have the tracks named as track1 track2 ect so if somebody could do that it will be much apreciated

Funny thing is I can actually imagine you being a diehard fan of Rick Astley, poor taste 'n' all.
 
Upvote 0

akacary2

LOMCN Veteran
Veteran
Loyal Member
Dec 11, 2008
274
1
44
Hartlepool
Thought this was old news lol?




Funny thing is I can actually imagine you being a diehard fan of Rick Astley, poor taste 'n' all.

It was old news until u revived it with an unnecessary post that had no relevance to the topic whatsoever, his songs were merely examples as it stated in his post :punch:
 
Upvote 0