turf
arenaentrance
icon = 'invisible.dmi'
Entered()
usr << sound('ff7lb3.mid',1)
Problem description: This song closes out my main song when you log on. It also stops and starts playing all over again when I move.
ID:145530
Feb 22 2006, 4:56 am
|
|
Code:
turf Problem description: This song closes out my main song when you log on. It also stops and starts playing all over again when I move. |
Feb 22 2006, 5:51 am
|
|
I think it would be better as a area... its crazy but maybe. I have no idea about the cutting over main song thing. Try posting that part of the code.
|
In response to RedlineM203
|
|
Well my main so is like a mod login() and then the song plays. Same as the last line of my error. And i'll try the thing you sed to me.
|
In response to Lummox JR
|
|
What? What does put usr in proc sopose to mean?
|
In response to Bamrulez
|
|
Bamrulez wrote:
What? What does put usr in proc sopose to mean? That's not what I said. I said: No put usr in proc. Ungh. Lummox JR |
In response to Lummox JR
|
|
LOL
That was kind of funny. Anyway, as he said, you need to stay away from putting usr in procs. It spawns all sorts of problems. Take a look at this article: Click Here! It's by Lummox Jr and I find this article (like many others by him) quite useful. Anyway, look up Entered(), because you are using it wrong. Entered() is a proc by the way, in case you didn't know, and it has an argument. |
In response to CaptFalcon33035
|
|
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I say its because I'm not a BYOND Member. |
In response to RedlineM203
|
|
Nah. Either me or the CGI system placed a pair of quotes at the end of the link. Just click this. http://www.byondscape.com/ascape.dmb/LummoxJR.2002-1104/
|
In response to CaptFalcon33035
|
|
i looked through the problem...you seem to be activating the sound every time you enter the area...make it so that if you just came from an area wioth the same name then it will do nothing but let you enter the area
|
In response to Bamrulez
|
|
Ok, now I got so the music plays when I enter the arena, and it doesn't inferfear with my main song. Now I have no clue on how to make it that when you exit the arena that it goes back to the main song. Do I have to look up the exit proc?
~Bamrulez |
haha.....um, since we'r talkin about music, can any1 help me. How can i turn of the song im playin? cause some1 wants to turn off the song, how does he do it?
mob verb music() usr << 'song.mid' How can he/she turn it off wen he gets tired of the song? |
Bamrulez wrote:
Code: > turf Problem description: This song closes out my main song when you log on. It also stops and starts playing all over again when I move. First of all, you need an argument for Entered(). Perhaps Entered(mob/M). Then to be safe, you want to check if the atom that has entered the turf is a mob with a client, so do if(ismob(M)&&M.client). Also, the reason it plays everytime you move is because you set the Entered() directly under turf. Try doing turf/MusicTurf instead. |
dont know if this has been solved yet but here goes ^_^
this basic system stops it from restarting the same music file if you keep going onto the same turf (thou I think a area would be better for this ^_^) it does some basic checks on what its playing the music to. mob |