ID:268217
 
When a player warps I want it to change the music for it.Here's my code.


turf/stairs
icon='stairs.dmi'
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(1,1,2)

turf/stairs
icon='stairs.dmi'
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(1,1,2)
M << sound('music.midi',1)

That will continually repeat until you make it stop (To make it stop just do a sound(null).

Also, if you want it to just play once then replace the 1 with a 0.
In response to RVegeta
Ok thanks a lot. <edit> and it worked :)</edit>