ID:262501
 
area
town
Entered(mob/M)
if(ismob(M)&&M.client)
M<<sound('DW2TOWN.MID',1)
cave
Entered(mob/M)
if(ismob(M)&&M.client)
M<<sound('DW1CAVE.MID',1)
worldmap
Entered(mob/M)
if(ismob(M)&&M.client)
M<<sound('DW2WORLD.MID',1)
bar
Entered(mob/M)
if(ismob(M)&&M.client)
M<<sound('DW3TOWN2.MID',1)
login
area



when i go from 1 area to another it lags really bad for 10 seconds
Possibly a computer/internet speed problem, or perhaps you're filling a spot with an area type, rather than making a line where players would cross over.
In response to Sinoflife
The lag might just be because your playing a mid the second they enter the area. there really isnt anything you can do about this to the best of my knowledge.
In response to Reinhartstar
sleep(5)

In response to Sinoflife
I doubt that would work, but whatever.
In response to Reinhartstar
It does.
    worldmap
Entered(mob/M)
if(ismob(M)&&M.client)
sleep(5)
M<<sound('DW2WORLD.MID',1)
In response to Sinoflife
i set it to sleep(5) and i still get lag.
In response to Xx Dark Wizard xX
If I am not mistaken, I believe this is because it is downloading the file to the usr, that is why it is lagging. I assume that if you walk back and forth it will stop lagging, though I could be wrong. A possible solution would be to use browse_rsc(file) at login or elsewhere, so the person downloads the file beforehand, and does not download the possibly large file every time they change areas.

if I am wrong, I apologize :P Just trying to lend a helping hand.