how to use -music command.

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Fukki
Old Wrinkly Member
Posts: 226
Joined: April 19th, 2010, 1:48 pm
Location: In The World

how to use -music command.

Post by Fukki »

I want to use -music command for JJ CP's.
I import file mp3 in map and fix script this line
local sound Music=CreateSound("cool.mp3",false,false,false,10,10,"DefaultEAXON")
to
local sound Music=CreateSound("magia.mp3",false,false,false,10,10,"")
This music can not play when i use -music.

help me please.

I'm sorry my english language is bad.
Image
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: how to use -music command.

Post by owner123 »

There is no -music for jjcp.
User avatar
UndeadxAssassin
Grammar King
Posts: 2116
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: how to use -music command.

Post by UndeadxAssassin »

elseif SubString(s2s,0,6)=="-music"then
call SetSoundDuration(Music,47334)
call SetSoundChannel(Music,0)
call SetSoundVolume(Music,127)
call SetSoundPitch(Music,1.)
call PlaySoundBJ(Music)

Yes there is.

To the music thing, I believe there's a compression problem when you import using MPQMaster, but I don't have MPQ on me at the moment, so I can't tell you for sure.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: how to use -music command.

Post by owner123 »

Really? I did a search on the JJCP thread and there was no -music listed.
User avatar
Fukki
Old Wrinkly Member
Posts: 226
Joined: April 19th, 2010, 1:48 pm
Location: In The World

Re: how to use -music command.

Post by Fukki »

owner123 wrote:Really? I did a search on the JJCP thread and there was no -music listed.
This command is hide in endglobals script, you can find and read other command in this script.
Image
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: how to use -music command.

Post by owner123 »

Fukki wrote:
owner123 wrote:Really? I did a search on the JJCP thread and there was no -music listed.
This command is hide in endglobals script, you can find and read other command in this script.
Yes, but it just seems kind of stupid that he would make commands then leave them out of his list... >.<