PDA

View Full Version : Music in.. region?



Ryan
June 17th, 2010, 20:58
Hey, Ive made a nice, very simple formula for music in a certain area. Does anyone know if runescape plays music in a area based off of coordinates, or if they do it per region?

Divine
June 17th, 2010, 21:16
It probably wouldn't be too hard...

(Rofl I don't have a source in front of me, but it would probably look something like this...)



*If condition for player being within some coords*
*Play(<-- Something like that...) music.mp3*
*Path to get to the .mp3*


I think that's what it would look like but i's a nub :/

Ryan
June 17th, 2010, 23:54
So divine, your saying your thinking its in a area of coordinates, and not map regions?

Also, thankyou Super. Let me know if you find anything.

Divine
June 18th, 2010, 00:19
So divine, your saying your thinking its in a area of coordinates, and not map regions?

Also, thankyou Super. Let me know if you find anything.

It would probably be easier to just use an if condition..

Sunni
June 18th, 2010, 01:03
They do it in regions, but by coords would be simpler.Also your code wouldn't look like divine, but you have a great concept.



if player within
absX:
absY:
Load.music ./sound.mp3

Divine
June 18th, 2010, 01:07
They do it in regions, but by coords would be simpler.Also your code wouldn't look like divine, but you have a great concept.



if player within
absX:
absY:
Load.music ./sound.mp3


But wouldn't that just work for like... 1 dot???? (Meaning one space)

Wouldn't it be easier to just make the if condition the same as the one for the wildy...?

Sunni
June 18th, 2010, 01:14
No not exactly, using the non wild method, money you do from corner to corner you wouldn't coder just one dot..Basically you doing it like a non wild or safe zone but converting it to load music in that zone.

bloodpk3r
June 18th, 2010, 01:14
just to be specific its from southwest corner to the northeast corner i believe? :)

Sunni
June 18th, 2010, 01:20
Northeast to Southwest, but I just relized on that peace of code right there you'll need two absX absY, So this would be setup just like a non wild code.

Divine
June 18th, 2010, 01:31
No not exactly, using the non wild method, money you do from corner to corner you wouldn't coder just one dot..Basically you doing it like a non wild or safe zone but converting it to load music in that zone.

Gotcha... Lol soz it just looked odd. But hey, if it works it works ;]

Aaron
June 18th, 2010, 01:32
How do people even find stuff that much about Runescape?

Sunni
June 18th, 2010, 01:34
Knowledge my friend :)

Divine
June 18th, 2010, 01:35
How do people even find stuff that much about Runescape?

Cough cough cough stfu spamz0r cough.

Ryan
June 18th, 2010, 01:36
Lawlz, I'm just going to go with regions because its a hella lot easier.

Sunni
June 18th, 2010, 01:37
Haha, hey I'll tell you what, if you get the non wildy code I can whip a code up for you.I don't have a source on my computer anymore due to some recent computer problems and I re did everything.But yea.

Ryan
June 18th, 2010, 01:40
Uhh, I'm taking it I should of read the posts before this, since I have no idea how the wilderness got into this lol. I already have a code for music in region, and its much simpler then you guys think it is.

Sunni
June 18th, 2010, 01:41
Uhh, I'm taking it I should of read the posts before this, since I have no idea how the wilderness got into this lol. I already have a code for music in region, and its much simpler then you guys think it is.

Ok? I was writing my own, just for a sample.

Ryan
June 18th, 2010, 01:48
Oh, sorry, didnt catch that.